Skip to content

Commit 0ba2b12

Browse files
committed
pyvenv: Verify that latest works
This test currently fails because of #586
1 parent cf322be commit 0ba2b12

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

spec/acceptance/pyvenv_spec.rb

+20
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ class { 'python':
3232
apply_manifest(pp, catch_failures: true)
3333
apply_manifest(pp, catch_changes: true)
3434
end
35+
36+
describe command('/opt/agent/venv/bin/pip list') do
37+
its(:exit_status) { is_expected.to eq 0 }
38+
its(:stdout) { is_expected.to match %r{agent} }
39+
end
3540
end
3641

3742
context 'with python::pip' do
@@ -72,6 +77,11 @@ class { 'python':
7277
apply_manifest(pp, catch_failures: true)
7378
apply_manifest(pp, catch_changes: true)
7479
end
80+
81+
describe command('/opt/agent/venv/bin/pip list') do
82+
its(:exit_status) { is_expected.to eq 0 }
83+
its(:stdout) { is_expected.to match %r{agent} }
84+
end
7585
end
7686

7787
context 'with minimal python::pip' do
@@ -109,6 +119,11 @@ class { 'python':
109119
apply_manifest(pp, catch_failures: true)
110120
apply_manifest(pp, catch_changes: true)
111121
end
122+
123+
describe command('/opt/agent/venv/bin/pip list') do
124+
its(:exit_status) { is_expected.to eq 0 }
125+
its(:stdout) { is_expected.to match %r{agent} }
126+
end
112127
end
113128

114129
context 'with minimal python::pip and without systempkgs' do
@@ -146,6 +161,11 @@ class { 'python':
146161
apply_manifest(pp, catch_failures: true)
147162
apply_manifest(pp, catch_changes: true)
148163
end
164+
165+
describe command('/opt/agent/venv/bin/pip list') do
166+
its(:exit_status) { is_expected.to eq 0 }
167+
its(:stdout) { is_expected.to match %r{agent} }
168+
end
149169
end
150170

151171
context 'with versioned minimal python::pip and without systempkgs' do

0 commit comments

Comments
 (0)