Skip to content

Commit

Permalink
Merge pull request #361 from bskarda/fix_tests
Browse files Browse the repository at this point in the history
Fix chefspec tests
  • Loading branch information
michaelklishin authored Sep 28, 2017
2 parents 27e6e2d + 904cefa commit a2dbd63
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spec/opscenter_agent_datastax_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
end

it 'installs the agent package' do
expect(chef_run).to install_package('datastax-agent').with(options: ['--always-have-options'])
expect(chef_run).to install_package('datastax-agent').with(options: '--always-have-options')
end

it 'starts & enables the service' do
Expand Down
1 change: 1 addition & 0 deletions spec/rendered_templates/cassandra-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ JVM_OPTS="$JVM_OPTS -XX:+CMSClassUnloadingEnabled"




JVM_OPTS="$JVM_OPTS $MX4J_ADDRESS"
JVM_OPTS="$JVM_OPTS $MX4J_PORT"
JVM_OPTS="$JVM_OPTS $JVM_EXTRA_OPTS"
1 change: 0 additions & 1 deletion templates/default/logback.xml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
<pattern><%= node['cassandra']['logback']['debug']['pattern'] %></pattern>
</encoder>
</appender>
<% end -%>

<!-- ASYNCLOG assynchronous appender to debug.log (all levels) -->

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
require 'spec_helper'

describe 'opscenter-datastax-agent' do
it 'installs, enables & runs the agent' do
context 'installs, enables & runs the agent' do
describe package('datastax-agent') do
it { should be_installed }
end

describe service('datastax-agent') do
it { should be_enabled }
end

describe service('datastax-agent') do
it { should be_running }
end
end
Expand Down

0 comments on commit a2dbd63

Please sign in to comment.