Skip to content

[IAC-1735] - update spec tests #1289

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

Closed
wants to merge 2 commits into from
Closed

[IAC-1735] - update spec tests #1289

wants to merge 2 commits into from

Conversation

adrianiurca
Copy link
Contributor

The tests related to classes or defines which are using ensure_packages function from stdlib needs to be updated accordingly to this PR puppetlabs/puppetlabs-stdlib#1196

@adrianiurca adrianiurca requested a review from a team as a code owner August 11, 2021 13:00
@adrianiurca adrianiurca changed the title update spec tests [IAC-1735] - update spec tests Aug 11, 2021
Copy link
Collaborator

@smortex smortex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I am confused about this new function 🤔

Comment on lines 47 to 50
def postgresql_version
'9.6'
end

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function does not seem to be used in the rest of the changes of this PR. Was it added by mistake?

Copy link
Collaborator

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the additional method. Will squash on merge.

@ekohl
Copy link
Collaborator

ekohl commented Aug 15, 2021

Ah, I now see this was added because it's actually used in spec/unit/defines/server/default_privileges_spec.rb. https://github.com/puppetlabs/puppetlabs-postgresql/pull/1267/files#r689125725 was wrong to begin with.

@ekohl ekohl mentioned this pull request Aug 15, 2021
@ekohl
Copy link
Collaborator

ekohl commented Aug 15, 2021

I opened #1291 which takes most of this commit, but fixes the broken unit test separately with let blocks.

@rajat-puppet rajat-puppet deleted the repair-spec-tests branch June 6, 2024 14:45
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