File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,16 @@ class { 'python' :
32
32
33
33
it 'maintains pip version' do
34
34
pp = <<-EOS
35
+ $version = '3'
36
+
35
37
class { 'python' :
38
+ version => $version,
36
39
pip => 'present',
37
40
virtualenv => 'present',
38
41
}
39
42
-> python::virtualenv { 'venv' :
40
43
ensure => 'present',
44
+ version => $version,
41
45
systempkgs => false,
42
46
venv_dir => '/opt/venv2',
43
47
}
@@ -54,12 +58,16 @@ class { 'python' :
54
58
55
59
it 'works with ensure=>latest' do
56
60
pp = <<-EOS
61
+ $version = '3'
62
+
57
63
class { 'python' :
64
+ version => $version,
58
65
pip => 'present',
59
66
virtualenv => 'present',
60
67
}
61
68
-> python::virtualenv { 'venv' :
62
69
ensure => 'present',
70
+ version => $version,
63
71
systempkgs => false,
64
72
venv_dir => '/opt/venv3',
65
73
}
@@ -78,12 +86,16 @@ class { 'python' :
78
86
79
87
it 'works with ensure=>latest for package with underscore in its name' do
80
88
pp = <<-EOS
89
+ $version = '3'
90
+
81
91
class { 'python' :
92
+ version => $version,
82
93
pip => 'present',
83
94
virtualenv => 'present',
84
95
}
85
96
-> python::virtualenv { 'venv' :
86
97
ensure => 'present',
98
+ version => $version,
87
99
systempkgs => false,
88
100
venv_dir => '/opt/venv4',
89
101
}
@@ -102,15 +114,19 @@ class { 'python' :
102
114
103
115
it 'works with editable=>true' do
104
116
pp = <<-EOS
117
+ $version = '3'
118
+
105
119
package{ 'git' :
106
120
ensure => 'present',
107
121
}
108
122
-> class { 'python' :
123
+ version => $version,
109
124
pip => 'present',
110
125
virtualenv => 'present',
111
126
}
112
127
-> python::virtualenv { 'venv' :
113
128
ensure => 'present',
129
+ version => $version,
114
130
systempkgs => false,
115
131
venv_dir => '/opt/venv5',
116
132
}
@@ -129,12 +145,16 @@ class { 'python' :
129
145
130
146
it 'works with == in pkgname' do
131
147
pp = <<-EOS
148
+ $version = '3'
149
+
132
150
class { 'python' :
151
+ version => $version,
133
152
pip => 'present',
134
153
virtualenv => 'present',
135
154
}
136
155
-> python::virtualenv { 'venv' :
137
156
ensure => 'present',
157
+ version => $version,
138
158
systempkgs => false,
139
159
venv_dir => '/opt/venv6',
140
160
}
You can’t perform that action at this time.
0 commit comments