|
50 | 50 | {
|
51 | 51 | manage_pip_package: true,
|
52 | 52 | manage_venv_package: true,
|
53 |
| - pip: 'present', |
54 |
| - venv: 'present' |
| 53 | + pip: 'installed', |
| 54 | + venv: 'installed' |
55 | 55 | }
|
56 | 56 | end
|
57 | 57 |
|
58 | 58 | it { is_expected.to compile.with_all_deps }
|
59 |
| - it { is_expected.to contain_package('pip').with(ensure: 'present') } |
| 59 | + it { is_expected.to contain_package('pip').with(ensure: 'installed') } |
60 | 60 |
|
61 |
| - it { is_expected.to contain_package('python-venv').with(ensure: 'present') } unless facts[:os]['name'] == 'CentOS' |
| 61 | + it { is_expected.to contain_package('python-venv').with(ensure: 'installed') } unless facts[:os]['name'] == 'CentOS' |
62 | 62 | end
|
63 | 63 |
|
64 | 64 | case facts[:os]['family']
|
|
86 | 86 | # rubocop:disable RSpec/RepeatedExampleGroupDescription
|
87 | 87 | describe 'with python::dev' do
|
88 | 88 | context 'true' do
|
89 |
| - let(:params) { { dev: 'present' } } |
| 89 | + let(:params) { { dev: 'installed' } } |
90 | 90 |
|
91 | 91 | it { is_expected.to compile.with_all_deps }
|
92 |
| - it { is_expected.to contain_package('python-dev').with_ensure('present') } |
| 92 | + it { is_expected.to contain_package('python-dev').with_ensure('installed') } |
93 | 93 | end
|
94 | 94 |
|
95 | 95 | context 'empty/default' do
|
|
233 | 233 |
|
234 | 234 | describe 'with python::dev' do
|
235 | 235 | context 'true' do
|
236 |
| - let(:params) { { dev: 'present' } } |
| 236 | + let(:params) { { dev: 'installed' } } |
237 | 237 |
|
238 |
| - it { is_expected.to contain_package('python-dev').with_ensure('present') } |
| 238 | + it { is_expected.to contain_package('python-dev').with_ensure('installed') } |
239 | 239 | end
|
240 | 240 |
|
241 | 241 | context 'default/empty' do
|
|
417 | 417 |
|
418 | 418 | describe 'with python::dev' do
|
419 | 419 | context 'true' do
|
420 |
| - let(:params) { { dev: 'present' } } |
| 420 | + let(:params) { { dev: 'installed' } } |
421 | 421 |
|
422 |
| - it { is_expected.to contain_package('python-dev').with_ensure('present') } |
| 422 | + it { is_expected.to contain_package('python-dev').with_ensure('installed') } |
423 | 423 | end
|
424 | 424 |
|
425 | 425 | context 'empty/default' do
|
|
467 | 467 |
|
468 | 468 | describe 'with python::dev' do
|
469 | 469 | context 'true' do
|
470 |
| - let(:params) { { dev: 'present' } } |
| 470 | + let(:params) { { dev: 'installed' } } |
471 | 471 |
|
472 |
| - it { is_expected.to contain_package('python-dev').with_ensure('present') } |
| 472 | + it { is_expected.to contain_package('python-dev').with_ensure('installed') } |
473 | 473 | end
|
474 | 474 |
|
475 | 475 | context 'default/empty' do
|
|
0 commit comments