Skip to content

Commit

Permalink
starting rabbitmq in before script on travis
Browse files Browse the repository at this point in the history
updated spec to use sudo in case rake spec is not being run as root
  • Loading branch information
koglinjg committed Apr 2, 2014
1 parent 61183f0 commit 6ef76dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ bundler_args: --without development
before_script:
- sudo service rabbitmq-server start
- sudo rabbitmqctl status
- exit 1
script: bundle exec rake spec SPEC_OPTS='--format documentation'
rvm:
- 1.8.7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
@resource = Puppet::Type::Rabbitmq_user.new(
{:name => 'foo', :password => 'bar'}
)
Kernel.system 'rabbitmqctl stop_app 2>&1 > /dev/null'
Kernel.system 'rabbitmqctl reset 2>&1 > /dev/null'
Kernel.system 'rabbitmqctl start_app 2>&1 > /dev/null'
Kernel.system 'sudo rabbitmqctl stop_app 2>&1 > /dev/null'
Kernel.system 'sudo rabbitmqctl reset 2>&1 > /dev/null'
Kernel.system 'sudo rabbitmqctl start_app 2>&1 > /dev/null'
@provider = provider_class.new(@resource)
end
it 'should create user and set password' do
Expand Down

0 comments on commit 6ef76dc

Please sign in to comment.