Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit c851c18

Browse files
committed
Consider agent immutability on Update collection intervals.
1 parent cace16b commit c851c18

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

spec/integration/operations_spec.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -575,13 +575,15 @@ module Hawkular::Operations::RSpec
575575
actual_data[:data] = data
576576
end
577577
on.failure do |error|
578-
actual_data[:data] = {}
579-
puts 'error callback was called, reason: ' + error.to_s
578+
actual_data[:data] = error
579+
puts 'error callback was called, reason: ' + error.to_s unless @agent_immutable
580580
end
581581
end
582582
actual_data = wait_for actual_data
583-
expect(actual_data['status']).to eq('OK')
584-
expect(actual_data['message']).to start_with('Performed [Update Collection Intervals] on')
583+
expect(actual_data['status']).to eq('OK') unless @agent_immutable
584+
expect(
585+
actual_data['message']).to start_with('Performed [Update Collection Intervals] on') unless @agent_immutable
586+
expect(actual_data).to include('Command not allowed because the agent is immutable') if @agent_immutable
585587
end
586588
end
587589
end

0 commit comments

Comments
 (0)