We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fd2a90 commit 7f5f52bCopy full SHA for 7f5f52b
spec/acceptance/pip_spec.rb
@@ -0,0 +1,26 @@
1
+require 'spec_helper_acceptance'
2
+
3
+describe 'python::pip defined resource' do
4
+ context 'install package with custom name' do
5
+ it 'works with no errors' do
6
+ pp = <<-PUPPET
7
+ class { 'python':
8
+ version => '3',
9
+ dev => 'present',
10
+ }
11
12
+ python::pip { 'agent package':
13
+ pkgname => 'agent'
14
+ ensure => '0.1.2'
15
16
+ PUPPET
17
18
+ apply_manifest(pp, catch_failures: true)
19
+ apply_manifest(pp, catch_changes: true)
20
+ end
21
+ describe command('/opt/agent/venv/bin/pip list') do
22
+ its(:exit_status) { is_expected.to eq 0 }
23
+ its(:stdout) { is_expected.to match %r{agent.* 0\.1\.2} }
24
25
+end
26
0 commit comments