Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a2148176
Commit
a2148176
authored
May 11, 2020
by
Desiree Chevalier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix group audit log spec operator
parent
8f803264
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
qa/qa/specs/features/ee/browser_ui/1_manage/group/group_audit_logs_1_spec.rb
...s/ee/browser_ui/1_manage/group/group_audit_logs_1_spec.rb
+1
-7
No files found.
qa/qa/specs/features/ee/browser_ui/1_manage/group/group_audit_logs_1_spec.rb
View file @
a2148176
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment