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

Introduce rspec-puppet-facts for some tests #218

Merged
merged 12 commits into from
May 13, 2016

Conversation

bastelfreak
Copy link
Member

No description provided.

@bastelfreak
Copy link
Member Author

this should get green except for:

  • rubocop issues. will be fixed in Fix216 #217
  • 4 spec tests

can somebody review this please? (/me looks at @jyaworski) I've no clue why these for tests fail. Maybe sientifix linux has the wrong osfamily fact.

@bastelfreak
Copy link
Member Author

ha awesome... I did the local tests withour STRICT_VARIABLES=yes... is there a nice way to automate the lsb* fact mocking? I would like to get rid of the manual style. Also what is the correct way to deal with the is_pe fact?


case $::operatingsystemrelease {
/\/sid$/ : { $releasename = regsubst($::operatingsystemrelease, '/sid$', '') }
default : { $releasename = $::lsbdistcodename }
Copy link
Member

Choose a reason for hiding this comment

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

Is lsbdistcodename a thing on newer facter? I seem to recall the lsb* facts being deprecated.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ionly know that it requires the lsb-release package installed and in general the facts are only present on Debian based systems. I was looking for alternative core facts but didn't find any :(

@jyaworski jyaworski merged commit 881440d into voxpupuli:master May 13, 2016
@bastelfreak bastelfreak deleted the enhancetests branch May 13, 2016 20:02
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