aboutsummaryrefslogtreecommitdiff
path: root/spec
AgeCommit message (Collapse)Author
2023-09-19(maint) - Update default_facts.yml to structured factsjordanbreen28
2023-02-14(MODULES-11371) Add Vox Beaker gemMichael Hashizume
In 24d2929, we updated the module according to PDK template 7.2.1, which updated puppetlabs_spec_helper. The updated version of puppetlabs_spec_helper removed the Beaker rake task, which we use for acceptance testing. This commit adds the voxpupuli-acceptance gem, which re-adds the Beaker rake task.
2022-09-06(maint) Fix Augeas testing failure for fedora36Christopher Thorn
Fedora36 has a services file with a misconfigured alias. This causes Augeas to fail to read the file. Until this is fixed upstream lets patch around it.
2022-03-21(maint) Update spec helper for solaris fixChristopher Thorn
2022-03-19(maint) Fix up pre-suite for beaker testsChristopher Thorn
Solaris packing was updated that requires a newer cert in the keychain of the VMs that we use. However for the older version of Solaris the cert is not on the keychain. This PR calls a beaker-puppet script that will add the required cert to the keychain of the VM. Also follow redirects when downloading agent.
2021-09-30(MODULES-11197) Rubocop fixesBobosila Victor
2021-09-30(MODULES-11197) Update puppetlabs-augeas_core to latest pdk templateBobosila Victor
Also updated `.sync` file to include the `auto_release.yml` workflow
2021-03-12(maint) Switch to rspec-mocksGabriel Nagy
2021-02-22(MODULES-10950) Infer application name from run modeGabriel Nagy
Fix a regression introduced by MODULES-7397[1] which incorrectly assumed that the application name can be queried through `Puppet::Application.name`, causing lenses that are pluginsynced not to be loaded. Since we only need to find out whether or not we're running as part of `puppet agent`, it should be enough to use `Puppet.run_mode.name`, which returns `:agent` in this case, and `:user` otherwise. [1] https://github.com/puppetlabs/puppetlabs-augeas_core/pull/27
2020-09-03(MODULES-7397) Load Augeas lenses from modulesLuchian Nemes
When creating the load path for Augeas, the module directories are now also searched for lenses and their folder path is added accordingly. This happens in every context except `agent` application. Through plugin syncing (and later cached lenses) it does not need these extra paths.
2019-10-23(maint) Update module using pdk 1.14.0Josh Cooper
2019-01-08(maint) update PDK to 1.8.0; update all templatesMelissa Stone
2018-09-25(MODULES-7814) Ignore nil values when parsing commands. Fix for: Could not ↵Lavinia Foldenyi
evaluate: undefined method strip! for nil:NilClass
2018-07-17Include puppet 6 and remove default roleJosh Cooper
* bump max version to 7 * install module on all hosts, not just those with the default role * point project URL to module's README
2018-07-16(maint) Move array parser logic into a util moduleJacob Helwig
2018-07-12(MODULE-7443) Safely deserialize stringified arrayJacob Helwig
This ports PUP-8974, and the related follow-up maintenance commits from the Puppet repo. The augeas provider used Kernel#eval to convert stringified arrays to Ruby arrays. For example, it extracted the array part of the "clause" below: onlyif => 'values HostKey == ["/etc/ssh/ssh_host_rsa_key"]' and called Kernel#eval with '["/etc/ssh/ssh_host_rsa_key"]'. Using eval is bad because it executes arbitrary code. This commit changes the provider to convert the comma delimited string to a Ruby array. This mostly maintains the functionality of the original Kernel#eval (minus running arbitrary code) except for no longer handling the \M-x, \M-\C-x, \M-\cx, \c\M-x, \c?, and \C-? escape sequences in double-quoted strings, and \u{nnnn ...} is more lenient about whitespace.
2018-06-28pdk update using 1.6.0Josh Cooper
2018-06-28Convert beaker tests to rspecJosh Cooper
Add default nodeset for ubuntu 16.04
2018-06-27Use guard clause and avoid assignment in conditionalJosh Cooper
2018-06-27Use rspec let instead of instance variablesJosh Cooper
Also remove shebang line, as they are not executable via ruby.
2018-06-27Automatic update of rubocop violationsJosh Cooper
Add exclusions for: Layout/IndentHeredoc, Metrics/BlockNesting: Metrics/LineLength: Style/AccessorMethodName: Style/DoubleNegation: Style/MultipleComparison: Style/NumericPredicate: Style/PredicateName: Style/SignalException: Style/VariableName: SignalException is disabled because Puppet::Type#fail overrides Kernel#fail, and we really do want fail and not raise.
2018-06-27Update for pdk test unitJosh Cooper
Add tmpfile helper
2018-06-27Initial augeas import from puppet#2b83deb189Josh Cooper
2018-06-27Module creation using pdk 1.5Josh Cooper