Skip to content

Commit

Permalink
More spec fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
alvagante committed Sep 25, 2024
1 parent 38cee59 commit 4283bac
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion spec/defines/check_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/deploy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/netinstall_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
let(:params) {
{
'url' => 'test',
'destination_url' => '/tmp',
'destination_dir' => '/tmp',
}
}
it { is_expected.to compile }
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

describe 'Test puppi report step file creation' do
it 'should create a puppi::report step file' do

Check failure on line 20 in spec/defines/project_spec.rb

View workflow job for this annotation

GitHub Actions / Unit tests

puppi::project on redhat-8-x86_64 Test puppi report step file creation should create a puppi::report step file Failure/Error: should contain_file('/etc/puppi/projects/myapp/report/50-get').with_ensure('present') expected that the catalogue would contain File[/etc/puppi/projects/myapp/report/50-get]

Check failure on line 20 in spec/defines/project_spec.rb

View workflow job for this annotation

GitHub Actions / Unit tests

puppi::project on redhat-8-x86_64 Test puppi report step file creation should create a puppi::report step file Failure/Error: should contain_file('/etc/puppi/projects/myapp/report/50-get').with_ensure('present') expected that the catalogue would contain File[/etc/puppi/projects/myapp/report/50-get]
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

Check failure on line 23 in spec/defines/project_spec.rb

View workflow job for this annotation

GitHub Actions / Unit tests

puppi::project on redhat-8-x86_64 Test puppi report step file creation should populate correctly the puppi::report step file Failure/Error: should contain_file('/etc/puppi/projects/myapp/report/50-get').with_content("su - root -c \"export project=myapp && /etc/puppi/scripts/echo \"\n") expected that the catalogue would contain File[/etc/puppi/projects/myapp/report/50-get]

Check failure on line 23 in spec/defines/project_spec.rb

View workflow job for this annotation

GitHub Actions / Unit tests

puppi::project on redhat-8-x86_64 Test puppi report step file creation should populate correctly the puppi::report step file Failure/Error: should contain_file('/etc/puppi/projects/myapp/report/50-get').with_content("su - root -c \"export project=myapp && /etc/puppi/scripts/echo \"\n") expected that the catalogue would contain File[/etc/puppi/projects/myapp/report/50-get]
should contain_file('/etc/puppi/projects/myapp/report/50-get').with_content("su - root -c \"export project=myapp && /etc/puppi/scripts/echo \"\n")
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/rollback_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/ze_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4283bac

Please sign in to comment.