moving parameters into appropriate place, adding meaning unit test, first pass on reference file, expanding acceptance test to include meaningful example

using codename as release
This commit is contained in:
Bram Vogelaar 2021-01-13 17:07:37 +01:00
parent 46678ae310
commit ea3e115bd0
No known key found for this signature in database
GPG key ID: 02374F82C00E4984
6 changed files with 108 additions and 12 deletions

View file

@ -6,12 +6,12 @@ describe 'hashi_stack::repo class' do
# Using puppet_apply as a helper
it 'should work with no errors based on the example' do
pp = <<-EOS
class { 'hashi_stack::repo': }
class { 'hashi_stack::repo': } -> package { 'packer': ensure => installed }
EOS
# Run it twice and test for idempotency
expect(apply_manifest(pp).exit_code).to_not eq(1)
expect(apply_manifest(pp).exit_code).to eq(0)
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end
end
end