-
-
Notifications
You must be signed in to change notification settings - Fork 374
Improve support for pip on CentOS7/EPEL #347
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -217,6 +217,22 @@ | |
end | ||
end | ||
|
||
context "on a Redhat 7 OS" do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. awesome work, thank you! Would you mind adding a case for RedHat 6, that shows the same thing as this, but with the correct pip package name and update the existing RedHat 5 part with the name attribute. That would give us much better testing for all use cases with EL. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've pushed a change that adds tests for 6 and tests the name on 5 too. I would suggest rewriting the spec tests at some point so there isn't that much divergence between the different operating systems. E.g.
Something for the future. |
||
let :facts do | ||
{ | ||
:id => 'root', | ||
:kernel => 'Linux', | ||
:osfamily => 'RedHat', | ||
:operatingsystem => 'RedHat', | ||
:operatingsystemmajrelease => '7', | ||
:concat_basedir => '/dne', | ||
:path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', | ||
} | ||
end | ||
it { is_expected.to contain_class("python::install") } | ||
it { is_expected.to contain_package("pip").with_name('python2-pip') } | ||
end | ||
|
||
context "on a SLES 11 SP3" do | ||
let :facts do | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disabled use_epel since I have manage it elsewhere, but still would like this case to apply, which is why I like #349 better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I probably misinterpreted
$use_epel
when writing this. I'll remove it.As far as #349 is concerned: it doesn't do any spec tests and uses a regex on a fact that can be done cheaper and more effectively with
versioncmp()
and$::operatingsystemmajrelease
.