Skip to content

Commit

Permalink
some acceptance testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jordiprats committed Aug 5, 2019
1 parent ded917c commit 8f38cb8
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion spec/acceptance/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,28 @@
class { 'eyplib': }
->
class { 'eyplib::setdescription':
description => 'ACCEPTANCE TESTING',
}
->
class { 'eyplib::autobanner': }
EOF

# Run it twice and test for idempotency
# run several times - expect the 3rd run to be clean
expect(apply_manifest(pp).exit_code).to_not eq(1)
expect(apply_manifest(pp).exit_code).to_not eq(1)
expect(apply_manifest(pp).exit_code).to eq(0)
end

describe file('/opt/eypconf/autobanner') do
it { should be_file }
its(:content) { should match 'ACCEPTANCE TESTING' }
end

end
end

0 comments on commit 8f38cb8

Please sign in to comment.