-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix/#16981 wakeup chef script status (#71)
rb_wakeup_chef test by @ljblancoredborder
- Loading branch information
1 parent
0527951
commit 6af0190
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
set :os, family: 'redhat', release: '9', arch: 'x86_64' | ||
|
||
describe file('/usr/lib/redborder/bin/rb_wakeup_chef.sh'), :rb_wakeup_chef do | ||
it { should exist } | ||
it { should be_file } | ||
it { should be_executable.by_user('webui') } | ||
end | ||
|
||
describe 'Checking WakeUpClusterJob' do | ||
query_psql = "echo \"SELECT * FROM stored_delayed_jobs WHERE job='RbWakeupChefClusterJob';\" | rb_psql redborder" | ||
describe command(query_psql) do | ||
its(:exit_status) { should eq 0 } | ||
its(:stdout) { should_not match(/Errno::EACCES: Permission denied/) } | ||
end | ||
end |