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 Apr 2, 2021
1 parent 737c841 commit 8822378
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 @@ -32,6 +32,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 @@ -72,6 +77,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 @@ -109,6 +119,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 @@ -146,6 +161,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 8822378

Please sign in to comment.