We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff5301a commit ec9c98fCopy full SHA for ec9c98f
spec/acceptance/virtualenv_spec.rb
@@ -29,5 +29,30 @@ class { 'python' :
29
apply_manifest(pp, catch_failures: true)
30
apply_manifest(pp, catch_changes: true)
31
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
57
58
0 commit comments