Skip to content

Commit

Permalink
Acceptance test: works with == in pkgname
Browse files Browse the repository at this point in the history
  • Loading branch information
mlow committed Jun 9, 2019
1 parent 7ec1f5f commit 040e65b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions spec/acceptance/virtualenv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,29 @@ class { 'python' :
}
EOS

# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end
it 'works with == in pkgname' do
pp = <<-EOS
'python' :
version => 'system',
pip => 'present',
virtualenv => 'present',
}
-> python::virtualenv { 'venv' :
ensure => 'present',
systempkgs => false,
venv_dir => '/opt/venv6',
owner => 'root',
group => 'root',
}
-> python::pip { 'rpyc==4.1.0' :
virtualenv => '/opt/venv6',
}
EOS

# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
Expand Down

0 comments on commit 040e65b

Please sign in to comment.