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
3ed0da89
Commit
3ed0da89
authored
Nov 02, 2021
by
Tiffany Rea
Committed by
Dan Davison
Nov 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix nil pipeline status error
parent
49d462f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
qa/qa/specs/features/ee/browser_ui/4_verify/pipeline_subscription_with_group_owned_project_spec.rb
...fy/pipeline_subscription_with_group_owned_project_spec.rb
+8
-5
No files found.
qa/qa/specs/features/ee/browser_ui/4_verify/pipeline_subscription_with_group_owned_project_spec.rb
View file @
3ed0da89
...
@@ -63,15 +63,18 @@ module QA
...
@@ -63,15 +63,18 @@ module QA
downstream_project
.
visit!
downstream_project
.
visit!
# Wait for upstream new tag pipeline to succeed
Support
::
Waiter
.
wait_until
(
sleep_interval:
3
)
do
# And downstream project to have 2 pipelines
QA
::
Runtime
::
Logger
.
info
'Waiting for upstream pipeline to succeed.'
Support
::
Waiter
.
wait_until
do
new_pipeline
=
upstream_project
.
pipelines
.
find
{
|
pipeline
|
pipeline
[
:ref
]
==
tag_name
}
new_pipeline
=
upstream_project
.
pipelines
.
find
{
|
pipeline
|
pipeline
[
:ref
]
==
tag_name
}
new_pipeline
[
:status
]
==
'success'
&&
downstream_project
.
pipelines
.
size
==
2
new_pipeline
&
.
dig
(
:status
)
==
'success'
end
end
# expect new downstream pipeline to also succeed
Page
::
Project
::
Menu
.
perform
(
&
:click_ci_cd_pipelines
)
Page
::
Project
::
Menu
.
perform
(
&
:click_ci_cd_pipelines
)
# Downstream project must have 2 pipelines at this time
expect
(
downstream_project
.
pipelines
.
size
).
to
eq
(
2
),
"There are currently
#{
downstream_project
.
pipelines
.
size
}
pipelines in downstream project."
# expect new downstream pipeline to also succeed
Page
::
Project
::
Pipeline
::
Index
.
perform
do
|
index
|
Page
::
Project
::
Pipeline
::
Index
.
perform
do
|
index
|
expect
(
index
.
wait_for_latest_pipeline_succeeded
).
to
be_truthy
,
'Downstream pipeline did not succeed as expected.'
expect
(
index
.
wait_for_latest_pipeline_succeeded
).
to
be_truthy
,
'Downstream pipeline did not succeed as expected.'
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