Commit a2148176 authored by Desiree Chevalier's avatar Desiree Chevalier

Fix group audit log spec operator

parent 8f803264
......@@ -141,20 +141,14 @@ module QA
def get_audit_event_count(group)
response = get Runtime::API::Request.new(api_client, "/groups/#{group.id}/audit_events").url
puts response
parse_body(response).length
end
def wait_for_audit_events(expected_events, group)
new_event_count = @event_count + expected_events.length
puts "****************"
puts "New event count #{new_event_count}"
Support::Retrier.retry_until(max_duration: QA::Support::Repeater::DEFAULT_MAX_WAIT_TIME, sleep_interval: 1) do
current_event_count = get_audit_event_count(group)
puts "Current event count #{current_event_count}"
current_event_count == new_event_count
get_audit_event_count(group) >= new_event_count
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment