Skip to content
Snippets Groups Projects
Commit a54393f6 authored by Désirée Chevalier's avatar Désirée Chevalier
Browse files

Audit event test debugging

parent 5c8c8db5
No related branches found
No related tags found
3 merge requests!31734Update stable branch 13-0-stable-ee for automatic RC 13.0.0-rc20200512114055,!31464WIP: Resolve "Ability to create an iteration",!31389Add more logging to group audit event test
......@@ -141,14 +141,20 @@ def sign_in(as_admin: false)
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
get_audit_event_count(group) == new_event_count
current_event_count = get_audit_event_count(group)
puts "Current event count #{current_event_count}"
current_event_count == new_event_count
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment