Skip to content

Commit

Permalink
pyvenv: Verify that latest works
Browse files Browse the repository at this point in the history
This test currently fails because of #586
  • Loading branch information
bastelfreak committed Dec 23, 2020
1 parent 911daa0 commit 0c7d1bf
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions spec/acceptance/pyvenv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ class { 'python':
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

describe command('/opt/agent/venv/bin/pip list') do
its(:exit_status) { is_expected.to eq 0 }
its(:stdout) { is_expected.to match %r{agent} }
end
end

context 'with python::pip' do
Expand Down Expand Up @@ -70,6 +75,11 @@ class { 'python':
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

describe command('/opt/agent/venv/bin/pip list') do
its(:exit_status) { is_expected.to eq 0 }
its(:stdout) { is_expected.to match %r{agent} }
end
end

context 'with minimal python::pip' do
Expand Down Expand Up @@ -106,6 +116,11 @@ class { 'python':
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

describe command('/opt/agent/venv/bin/pip list') do
its(:exit_status) { is_expected.to eq 0 }
its(:stdout) { is_expected.to match %r{agent} }
end
end

context 'with minimal python::pip and without systempkgs' do
Expand Down Expand Up @@ -142,6 +157,11 @@ class { 'python':
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

describe command('/opt/agent/venv/bin/pip list') do
its(:exit_status) { is_expected.to eq 0 }
its(:stdout) { is_expected.to match %r{agent} }
end
end

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

0 comments on commit 0c7d1bf

Please sign in to comment.