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

(CONT-935) Fix issues with PDK package and tests #1248

Merged
merged 6 commits into from
May 26, 2023
Merged

Conversation

chelnak
Copy link
Contributor

@chelnak chelnak commented May 24, 2023

This PR contains two small fixes for issues discovered while preparing the package for PDK 3.0.

Additionally, there are also some fixes for the unit and acceptance tests to allow this PR to be green.

@chelnak chelnak requested a review from a team as a code owner May 24, 2023 15:51
@chelnak chelnak self-assigned this May 24, 2023
@chelnak chelnak added the bug label May 24, 2023
@chelnak chelnak force-pushed the CONT-935-pdk_fixes branch 2 times, most recently from 6584844 to ce97fae Compare May 25, 2023 08:27
@chelnak chelnak force-pushed the CONT-935-pdk_fixes branch 12 times, most recently from fe53b86 to ffe850a Compare May 25, 2023 21:10
@chelnak chelnak force-pushed the CONT-935-pdk_fixes branch 2 times, most recently from 4a49493 to 23a16a3 Compare May 26, 2023 08:26
Previously, the original initialize method was updated to use super
given tha the same variable declarations were in the parent class.

For some strange reason, this appeared to cause some issues so this
commit reverts that change.
At this point, facter should be already loaded so we don't need it here.

When the require statement is present, the user will see many "ALREADY
INITIALIZED CONSTANT" warnings.
Prior to this commit, there were still references to travis in the
tests. This was causing failures when using the latest pdk-template
versions as trave has now been removed.

This change removes references to travis.
Prior to this change, the example count in a few tests was incorrect.
This was causing the tests to fail.

This change corrects the example count to help the tests pass.
Prior to this change the tests were unable to recognise when Puppet 8
was a requirement.

This change ensures that when Ruby 3 is being used, Puppet 8 is also
used.
@chelnak chelnak changed the title (CONT-935) Package fixes (CONT-935) Fix issues with PDK package and tests May 26, 2023
@GSPatton GSPatton merged commit 1e46f19 into main May 26, 2023
@GSPatton GSPatton deleted the CONT-935-pdk_fixes branch May 26, 2023 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants