Skip to content

Commit acd1b10

Browse files
committed
enhance acceptance tests
1 parent afa201d commit acd1b10

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

spec/acceptance/class_spec.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ class { '::vault':
107107
describe port(8200) do
108108
it { is_expected.to be_listening.on('127.0.0.1').with('tcp') }
109109
end
110+
describe command('vault version') do
111+
its(:stdout) { is_expected.to match %r{v0\.10\.1} }
112+
end
110113
end
111114

112115
# we will test if we can update vault to another version
@@ -132,5 +135,16 @@ class { 'vault':
132135
apply_manifest(pp, catch_failures: true)
133136
apply_manifest(pp, catch_changes: true)
134137
end
138+
describe service('vault') do
139+
it { is_expected.to be_enabled }
140+
it { is_expected.to be_running }
141+
end
142+
143+
describe port(8200) do
144+
it { is_expected.to be_listening.on('127.0.0.1').with('tcp') }
145+
end
146+
describe command('vault version') do
147+
its(:stdout) { is_expected.to match %r{v0\.10\.1} }
148+
end
135149
end
136150
end

0 commit comments

Comments
 (0)