Skip to content

Commit d4b5526

Browse files
committed
Adjust test logic for openvox_bootstrap::check behavior
openvox_bootstrap check task fails if puppet is not present, previously puppet_agent::version would succeed and return a nil version.
1 parent 89a8de3 commit d4b5526

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spec/bolt_spec/run_spec.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,10 @@ def root_config
116116

117117
before(:all) do
118118
result = run_task('openvox_bootstrap::check', 'ssh', {}, inventory: conn_inventory, config: root_config)
119-
expect(result.first['status']).to eq('success')
120-
unless result.first['value']['version']
119+
if result.first['status'] != 'success'
121120
result = run_task('openvox_bootstrap::install', 'ssh', {}, inventory: conn_inventory, config: root_config)
121+
expect(result.first['status']).to eq('success')
122122
end
123-
expect(result.first['status']).to eq('success')
124123
end
125124

126125
after(:all) do

0 commit comments

Comments
 (0)