Skip to content

Commit

Permalink
enhance acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed May 30, 2018
1 parent afa201d commit 0ecd92f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ class { '::vault':
describe port(8200) do
it { is_expected.to be_listening.on('127.0.0.1').with('tcp') }
end
describe command('vault version') do
its(:stdout) { is_expected.to match %r{v0\.10\.0} }
end
end

# we will test if we can update vault to another version
Expand All @@ -132,5 +135,16 @@ class { 'vault':
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end
describe service('vault') do
it { is_expected.to be_enabled }
it { is_expected.to be_running }
end

describe port(8200) do
it { is_expected.to be_listening.on('127.0.0.1').with('tcp') }
end
describe command('vault version') do
its(:stdout) { is_expected.to match %r{v0\.10\.1} }
end
end
end

0 comments on commit 0ecd92f

Please sign in to comment.