Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modernize test framework and add ci workflow #385

Merged
merged 10 commits into from
Jan 31, 2024

Conversation

h0tw1r3
Copy link
Contributor

@h0tw1r3 h0tw1r3 commented Jan 29, 2024

  • squashed in Update the module using the PDK #344
  • pdk templates updated to 3.0.1
  • pin fixtures for modules where latest is not supported yet
  • 100% test unit coverage with action workflow

aside from syntax, there are no puppet code changes

supersedes #382

smortex and others added 7 commits February 9, 2022 09:52
* Fix acceptance tests to work with Litmus
* Fix acceptance test installation path of puppet modules
* update/add dependencies to fixtures
* Fix CI failures related to legacy facts
* More CI fixes with latest posgresql module
* Remove local facts overrides
  They break adding facts from a context.
* Match the ensure value of the manifest
  This was changed in 68d8c64 to fix
  puppet lint issues, but as the test suite was not run it passed through.
* Match owner / mode of the manifest
  This was changed in 010bf13 to match
  best practice, but as the test suite was not run it passed through.
* Add path to the custom facts
  The systemd module use this to run `systemctl daemon-reload`.  Set an
  arbitrary value to avoid:
  > Validation of Exec[systemd-postgresql.service-systemctl-daemon-reload] failed: 'systemctl' is not qualified and no path was specified. Please qualify the command or specify a path.
For now we want to have running CI.  We do not care about the module
being fully documented.
@h0tw1r3 h0tw1r3 requested review from bastelfreak, smortex and a team as code owners January 29, 2024 21:52
.fixtures.yml Outdated Show resolved Hide resolved
.fixtures.yml Outdated Show resolved Hide resolved
leaving firewall and postgres pinned for now because they are a
hard requirement until the code is updated.
@bastelfreak bastelfreak merged commit 8aaf63c into puppetlabs:main Jan 31, 2024
4 checks passed
@h0tw1r3 h0tw1r3 deleted the unit-testing branch January 31, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants