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 all current validation errors #149

Merged
merged 3 commits into from
May 6, 2021
Merged

Fix all current validation errors #149

merged 3 commits into from
May 6, 2021

Conversation

nward
Copy link
Collaborator

@nward nward commented Feb 8, 2021

This PR fixes all outstanding pdk validate errors, so now all pdk tests etc. pass.

There are no functionality changes here, only test + code style.

@djjudas21 djjudas21 self-requested a review February 8, 2021 09:04
@nward
Copy link
Collaborator Author

nward commented Feb 10, 2021

Marking as WIP as there's some unresolved testing issues here - for some reason travis is failing this test where it succeeds for me locally. "it works on my machine" :-)

@nward nward force-pushed the validation_fixes branch 2 times, most recently from b0b574d to 6a45fed Compare May 6, 2021 11:34
@nward nward changed the title Fix all current validation errors WIP: Fix all current validation errors May 6, 2021
@nward nward force-pushed the validation_fixes branch 2 times, most recently from 9d4f9b9 to dab9e3a Compare May 6, 2021 13:16
nward added 2 commits May 7, 2021 01:23
Only capture the exec for `radiusd -v`, as facter etc. runs `uname -s` and whatever else. Mock Facter.value for things in os_facts, so we return the value from os_facts rather than the actual value from the system running the tests.
…ol cache size in to puppet, rather than in ERB
@nward nward changed the title WIP: Fix all current validation errors Fix all current validation errors May 6, 2021
@nward
Copy link
Collaborator Author

nward commented May 6, 2021

@djjudas21 this should be ready to go, I believe. I've rebased this on master from earlier today, and fixed the earlier issues with the freeradius_version fact rspec - it turns out if you have a fact which calls Facter.value for something, it runs whatever commands it needs, rather than using whatever comes from rspec-puppet-facts.

I think there are probably more modern ways to handle this - using confine or similar - but that's thing for another day.

@djjudas21
Copy link
Owner

Woo, the checks passed for the first time in years! Great work, thanks very much. I'm happy to merge this 😄

@djjudas21 djjudas21 merged commit c2d1984 into master May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants