Skip to content

Commit 8564e71

Browse files
committed
1 parent 6ca453b commit 8564e71

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

spec/classes/python_spec.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@
5050
{
5151
manage_pip_package: true,
5252
manage_venv_package: true,
53-
pip: 'present',
54-
venv: 'present'
53+
pip: 'installed',
54+
venv: 'installed'
5555
}
5656
end
5757

5858
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') }
6060

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'
6262
end
6363

6464
case facts[:os]['family']
@@ -86,10 +86,10 @@
8686
# rubocop:disable RSpec/RepeatedExampleGroupDescription
8787
describe 'with python::dev' do
8888
context 'true' do
89-
let(:params) { { dev: 'present' } }
89+
let(:params) { { dev: 'installed' } }
9090

9191
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') }
9393
end
9494

9595
context 'empty/default' do
@@ -233,9 +233,9 @@
233233

234234
describe 'with python::dev' do
235235
context 'true' do
236-
let(:params) { { dev: 'present' } }
236+
let(:params) { { dev: 'installed' } }
237237

238-
it { is_expected.to contain_package('python-dev').with_ensure('present') }
238+
it { is_expected.to contain_package('python-dev').with_ensure('installed') }
239239
end
240240

241241
context 'default/empty' do
@@ -417,9 +417,9 @@
417417

418418
describe 'with python::dev' do
419419
context 'true' do
420-
let(:params) { { dev: 'present' } }
420+
let(:params) { { dev: 'installed' } }
421421

422-
it { is_expected.to contain_package('python-dev').with_ensure('present') }
422+
it { is_expected.to contain_package('python-dev').with_ensure('installed') }
423423
end
424424

425425
context 'empty/default' do
@@ -467,9 +467,9 @@
467467

468468
describe 'with python::dev' do
469469
context 'true' do
470-
let(:params) { { dev: 'present' } }
470+
let(:params) { { dev: 'installed' } }
471471

472-
it { is_expected.to contain_package('python-dev').with_ensure('present') }
472+
it { is_expected.to contain_package('python-dev').with_ensure('installed') }
473473
end
474474

475475
context 'default/empty' do

types/package/ensure.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# @summary Match all valid package ensures for python
22
#
3-
type Python::Package::Ensure = Enum['absent', 'present', 'latest']
3+
type Python::Package::Ensure = Enum['absent', 'present', 'installed', 'latest']

0 commit comments

Comments
 (0)