Skip to content

Commit 6263c4e

Browse files
committed
Correct mongos spec
1 parent 5e96da9 commit 6263c4e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

spec/classes/mongos_spec.rb

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
let(:facts) { facts }
77

88
context 'with defaults' do
9-
let(:params) do
10-
{
11-
configdb: ['127.0.0.1:27019']
12-
}
13-
end
14-
159
it { is_expected.to compile.with_all_deps }
1610

1711
# install
@@ -46,25 +40,25 @@
4640
it { is_expected.to contain_service('mongos') }
4741
end
4842

49-
context 'service_manage => false' do
43+
context 'package_name => mongo-foo' do
5044
let(:params) do
5145
{
52-
configdb: ['127.0.0.1:27019'],
5346
package_name: 'mongo-foo'
5447
}
5548
end
5649

50+
it { is_expected.to compile.with_all_deps }
5751
it { is_expected.to contain_package('mongodb_mongos').with_name('mongo-foo') }
5852
end
5953

6054
context 'service_manage => false' do
6155
let(:params) do
6256
{
63-
configdb: ['127.0.0.1:27019'],
6457
service_manage: false
6558
}
6659
end
6760

61+
it { is_expected.to compile.with_all_deps }
6862
it { is_expected.not_to contain_file('/etc/sysconfig/mongos') }
6963
it { is_expected.not_to contain_file('/etc/init.d/mongos') }
7064
it { is_expected.not_to contain_service('mongos') }

0 commit comments

Comments
 (0)