@@ -27,6 +27,7 @@ class { 'python' :
2727 apply_manifest ( pp , catch_failures : true )
2828 apply_manifest ( pp , catch_changes : true )
2929 end
30+
3031 it 'maintains pip version' do
3132 pp = <<-EOS
3233 class { 'python' :
@@ -51,6 +52,7 @@ class { 'python' :
5152 apply_manifest ( pp , catch_failures : true )
5253 apply_manifest ( pp , catch_changes : true )
5354 end
55+
5456 it 'works with ensure=>latest' do
5557 pp = <<-EOS
5658 class { 'python' :
@@ -77,6 +79,7 @@ class { 'python' :
7779 # but probability of this happening is minimal, so it should be acceptable.
7880 apply_manifest ( pp , catch_changes : true )
7981 end
82+
8083 it 'works with ensure=>latest for package with underscore in its name' do
8184 pp = <<-EOS
8285 class { 'python' :
@@ -103,6 +106,7 @@ class { 'python' :
103106 # but probability of this happening is minimal, so it should be acceptable.
104107 apply_manifest ( pp , catch_changes : true )
105108 end
109+
106110 it 'works with editable=>true' do
107111 pp = <<-EOS
108112 package{ 'git' :
@@ -132,5 +136,29 @@ class { 'python' :
132136 apply_manifest ( pp , catch_failures : true )
133137 apply_manifest ( pp , catch_changes : true )
134138 end
139+
140+ it 'works with == in pkgname' do
141+ pp = <<-EOS
142+ class { 'python' :
143+ version => 'system',
144+ pip => 'present',
145+ virtualenv => 'present',
146+ }
147+ -> python::virtualenv { 'venv' :
148+ ensure => 'present',
149+ systempkgs => false,
150+ venv_dir => '/opt/venv6',
151+ owner => 'root',
152+ group => 'root',
153+ }
154+ -> python::pip { 'rpyc==4.1.0' :
155+ virtualenv => '/opt/venv6',
156+ }
157+ EOS
158+
159+ # Run it twice and test for idempotency
160+ apply_manifest ( pp , catch_failures : true )
161+ apply_manifest ( pp , catch_changes : true )
162+ end
135163 end
136164end
0 commit comments