Skip to content

Commit ec9c98f

Browse files
FeandilGreg Dubicki
authored and
Greg Dubicki
committed
Acceptance test: Install pip
First part of regression test for PR#418
1 parent ff5301a commit ec9c98f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

spec/acceptance/virtualenv_spec.rb

+25
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,30 @@ class { 'python' :
2929
apply_manifest(pp, catch_failures: true)
3030
apply_manifest(pp, catch_changes: true)
3131
end
32+
it 'maintains pip version' do
33+
pp = <<-EOS
34+
class { 'python' :
35+
version => 'system',
36+
pip => 'present',
37+
virtualenv => 'present',
38+
}
39+
->
40+
python::virtualenv { 'venv' :
41+
ensure => 'present',
42+
systempkgs => false,
43+
venv_dir => '/opt/venv2',
44+
owner => 'root',
45+
group => 'root',
46+
}
47+
->
48+
python::pip { 'pip' :
49+
ensure => '18.0',
50+
virtualenv => '/opt/venv2',
51+
}
52+
EOS
53+
54+
# Run it twice and test for idempotency
55+
apply_manifest(pp, catch_failures: true)
56+
end
3257
end
3358
end

0 commit comments

Comments
 (0)