From 4283bacd601cbc5262ee0b93291be3fcf44a03be Mon Sep 17 00:00:00 2001 From: Alessandro Franceschi Date: Wed, 25 Sep 2024 18:14:38 +0200 Subject: [PATCH] More spec fixing --- spec/defines/check_spec.rb | 2 +- spec/defines/deploy_spec.rb | 2 +- spec/defines/helper_spec.rb | 2 +- spec/defines/netinstall_spec.rb | 2 +- spec/defines/project_spec.rb | 2 +- spec/defines/rollback_spec.rb | 2 +- spec/defines/ze_spec.rb | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/defines/check_spec.rb b/spec/defines/check_spec.rb index 2fcbf41..fc9c5d0 100644 --- a/spec/defines/check_spec.rb +++ b/spec/defines/check_spec.rb @@ -21,7 +21,7 @@ it { is_expected.to compile } describe 'Test puppi check step file creation' do it 'should create a puppi::check step file' do - should contain_file('Puppi_check_myapp_50_get').with_ensure('file') + should contain_file('Puppi_check_myapp_50_get').with_ensure('present') end it 'should populate correctly the puppi::check step file' do should contain_file('Puppi_check_myapp_50_get').with_content(/\/usr\/lib64\/nagios\/plugins\/echo/) diff --git a/spec/defines/deploy_spec.rb b/spec/defines/deploy_spec.rb index d55866e..78e0117 100644 --- a/spec/defines/deploy_spec.rb +++ b/spec/defines/deploy_spec.rb @@ -20,7 +20,7 @@ describe 'Test puppi deploy step file creation' do it 'should create a puppi::deploy step file' do - should contain_file('/etc/puppi/projects/myapp/deploy/50-get').with_ensure('file') + should contain_file('/etc/puppi/projects/myapp/deploy/50-get').with_ensure('present') end it 'should populate correctly the puppi::deploy step file' do should contain_file('/etc/puppi/projects/myapp/deploy/50-get').with_content("su - root -c \"export project=myapp && /etc/puppi/scripts/echo \"\n") diff --git a/spec/defines/helper_spec.rb b/spec/defines/helper_spec.rb index 162e896..2573c49 100644 --- a/spec/defines/helper_spec.rb +++ b/spec/defines/helper_spec.rb @@ -15,7 +15,7 @@ describe 'Test puppi helper file creation' do it 'should create a puppi helper file' do - should contain_file('puppi_helper_spec').with_ensure('file') + should contain_file('puppi_helper_spec').with_ensure('present') end it 'should populate correctly the helper file' do should contain_file('puppi_helper_spec').with_content(/info/) diff --git a/spec/defines/netinstall_spec.rb b/spec/defines/netinstall_spec.rb index 5e941b8..1619765 100644 --- a/spec/defines/netinstall_spec.rb +++ b/spec/defines/netinstall_spec.rb @@ -12,7 +12,7 @@ let(:params) { { 'url' => 'test', - 'destination_url' => '/tmp', + 'destination_dir' => '/tmp', } } it { is_expected.to compile } diff --git a/spec/defines/project_spec.rb b/spec/defines/project_spec.rb index 6e3b9c1..933ca97 100644 --- a/spec/defines/project_spec.rb +++ b/spec/defines/project_spec.rb @@ -18,7 +18,7 @@ describe 'Test puppi report step file creation' do it 'should create a puppi::report step file' do - should contain_file('/etc/puppi/projects/myapp/report/50-get').with_ensure('file') + should contain_file('/etc/puppi/projects/myapp/report/50-get').with_ensure('present') end it 'should populate correctly the puppi::report step file' do should contain_file('/etc/puppi/projects/myapp/report/50-get').with_content("su - root -c \"export project=myapp && /etc/puppi/scripts/echo \"\n") diff --git a/spec/defines/rollback_spec.rb b/spec/defines/rollback_spec.rb index af7283b..617a648 100644 --- a/spec/defines/rollback_spec.rb +++ b/spec/defines/rollback_spec.rb @@ -20,7 +20,7 @@ describe 'Test puppi rollback step file creation' do it 'should create a puppi::rollback step file' do - should contain_file('/etc/puppi/projects/myapp/rollback/50-get').with_ensure('file') + should contain_file('/etc/puppi/projects/myapp/rollback/50-get').with_ensure('present') end it 'should populate correctly the puppi::rollback step file' do should contain_file('/etc/puppi/projects/myapp/rollback/50-get').with_content("su - root -c \"export project=myapp && /etc/puppi/scripts/echo \"\n") diff --git a/spec/defines/ze_spec.rb b/spec/defines/ze_spec.rb index e327d97..cb6773c 100644 --- a/spec/defines/ze_spec.rb +++ b/spec/defines/ze_spec.rb @@ -18,7 +18,7 @@ describe 'Test puppi ze data file creation' do it 'should create a puppi::ze step file' do - should contain_file('puppize_sample').with_ensure('file') + should contain_file('puppize_sample').with_ensure('present') end end