diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-04 21:11:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-04 21:11:05 +0300 |
commit | bbc241ab7fff1f6854a70eb56ee70b0dad2b6144 (patch) | |
tree | 2f3bb5bafed00cdc9a11ea9b5233b7dd6fded70b /qa | |
parent | 714e16b260e01dd316574ab7baf0a73f61547d80 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/resource/events/project.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qa/qa/resource/events/project.rb b/qa/qa/resource/events/project.rb index 410edd417c1..c1bd921c3cf 100644 --- a/qa/qa/resource/events/project.rb +++ b/qa/qa/resource/events/project.rb @@ -7,32 +7,32 @@ module QA include Events::Base def push_events(commit_message) - QA::Runtime::Logger.debug(%Q[#{self.class.name} - wait for and fetch push events"]) + QA::Runtime::Logger.info(%Q[#{self.class.name} - wait for and fetch push events"]) fetch_events do events(action: 'pushed').select { |event| event.dig(:push_data, :commit_title) == commit_message } end end def wait_for_merge(title) - QA::Runtime::Logger.debug(%Q[#{self.class.name} - wait_for_merge with title "#{title}"]) + QA::Runtime::Logger.info(%Q[#{self.class.name} - wait_for_merge with title "#{title}"]) wait_for_event do events(action: 'accepted', target_type: 'merge_request').any? { |event| event[:target_title] == title } end end def wait_for_push(commit_message) - QA::Runtime::Logger.debug(%Q[#{self.class.name} - wait_for_push with commit message "#{commit_message}"]) + QA::Runtime::Logger.info(%Q[#{self.class.name} - wait_for_push with commit message "#{commit_message}"]) wait_for_event do events(action: 'pushed').any? { |event| event.dig(:push_data, :commit_title) == commit_message } end rescue EventNotFoundError - QA::Runtime::Logger.debug("Push events: #{events(action: 'pushed')}") + QA::Runtime::Logger.info("Push events: #{events(action: 'pushed')}") raise end def wait_for_push_new_branch(branch_name = self.default_branch) - QA::Runtime::Logger.debug(%Q[#{self.class.name} - wait_for_push_new_branch with branch_name "#{branch_name}"]) + QA::Runtime::Logger.info(%Q[#{self.class.name} - wait_for_push_new_branch with branch_name "#{branch_name}"]) wait_for_event do events(action: 'pushed').any? { |event| event.dig(:push_data, :ref) == branch_name } end |