Skip to content

Commit a7016fd

Browse files
committed
test journald output
1 parent 3e0e468 commit a7016fd

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

spec/acceptance/dynflow_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,14 @@ class { 'foreman':
8181
it { is_expected.not_to be_running }
8282
it { is_expected.not_to be_enabled }
8383
end
84+
describe command('journalctl -xeu dynflow-sidekiq@orchestrator') do
85+
its(:stdout) { should match /dynflow-sidekiq@orchestrator/ }
86+
end
87+
describe command('journalctl -xeu dynflow-sidekiq@worker-1') do
88+
its(:stdout) { should match /dynflow-sidekiq@worker-1/ }
89+
end
90+
describe command('journalctl -xeu dynflow-sidekiq@worker-2') do
91+
its(:stdout) { should match /dynflow-sidekiq@worker-2/ }
92+
end
8493
end
8594
end

spec/support/acceptance/examples.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
it { is_expected.to be_running }
1111
end
1212
end
13+
describe command('journalctl -xeu foreman') do
14+
its(:stdout) { should match /foreman/ }
15+
end
16+
17+
describe command('journalctl -xeu dynflow-sidekiq@orchestrator') do
18+
its(:stdout) { should match /dynflow/ }
19+
end
20+
21+
describe command('dynflow-sidekiq@worker-1') do
22+
its(:stdout) { should match /dynflow/ }
23+
end
1324

1425
describe port(80) do
1526
it { is_expected.to be_listening }

0 commit comments

Comments
 (0)