Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Integration testing in Travis CI #353

Merged
merged 22 commits into from
Feb 12, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix serverspec to properly detect services
It has trouble finding services.  Just use ps instead
  • Loading branch information
tas50 committed Feb 12, 2016
commit 30da4b17d77db2b538a2117d36c3e753eb1fa561
5 changes: 2 additions & 3 deletions test/integration/service_init/serverspec/service_init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

set :backend, :exec

# the service check in serverspec fails if the service command isn't available
describe command('/etc/init.d/chef-client status | grep running') do
its(:exit_status) { should eq 0 }
describe command('ps aux | grep che[f]') do
its(:stdout) { should match /chef-client/ }
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

set :backend, :exec

describe service('chef-client') do
it { should be_running }
describe command('ps aux | grep che[f]') do
its(:stdout) { should match /chef-client/ }
end

describe file('/etc/service/chef-client/run') do
Expand Down