Skip to content

Commit 558f8b5

Browse files
committed
Updated tests for usage without replicas
1 parent 4981c40 commit 558f8b5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spec/classes/init_spec.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,19 @@
157157
}
158158
}
159159
end
160+
160161
it 'creates gluster::volume' do
161162
is_expected.to contain_gluster__volume('data1').with(
162163
name: 'data1',
163-
replica: false,
164+
replica: nil,
164165
bricks: ['srv1.local:/brick1/brick', 'srv2.local:/brick1/brick']
165166
)
166167
end
168+
it 'executes command without replica' do
169+
is_expected.not_to contain_exec('gluster create volume data1').with(
170+
command: %r{.* replica .*}
171+
)
172+
end
167173
end
168174

169175
context 'when volumes incorrectly defined' do

0 commit comments

Comments
 (0)