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

Fix tests by using a better IPv6 check #544

Merged
merged 4 commits into from
Nov 24, 2019
Merged

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Nov 23, 2019

7dff714 More robust check for IPv6

rspec-puppet 2.7.8 has started to always set an ipaddress6 fact and deleting no longer works. Setting it to nil does work. The fact() function returns a fact or undef if it can't be found which means it's still a valid way to check if IPv6 is present.

0c5514c Unpin facterdb

The latest version has ArchLinux facts with legacy facts.

@mmoll
Copy link
Contributor

mmoll commented Nov 24, 2019

Almost there :)

rspec-puppet 2.7.8 has started to always set an ipaddress6 fact and
deleting no longer works. Setting it to nil does work. The fact()
function returns a fact or undef if it can't be found which means it's
still a valid way to check if IPv6 is present.
The latest version has ArchLinux facts with legacy facts. This also
brings in facts for Red Hat 7.5+ so the tests need to be modified for
that.
@ekohl
Copy link
Member Author

ekohl commented Nov 24, 2019

New attempt. Let's see if it does work now.

@ekohl
Copy link
Member Author

ekohl commented Nov 24, 2019

💚 finally!

@mmoll mmoll merged commit adc9f3d into theforeman:master Nov 24, 2019
@mmoll
Copy link
Contributor

mmoll commented Nov 24, 2019

merged, bedankt @ekohl!

@ekohl ekohl deleted the fix-tests branch November 24, 2019 16:06
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