summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil TrzciƄski <ayufan@ayufan.eu>2019-01-09 08:57:01 +0000
committerGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-01-10 21:10:47 +0000
commit41588c6981d30d9ecddba04486187a65680f0e18 (patch)
tree1632e2dc34be4d2aec06205d0ae4ffbf4c13c55e
parent837903bb75b24b1accaf377c2122a1412d4ce536 (diff)
downloadgitlab-ce-41588c6981d30d9ecddba04486187a65680f0e18.tar.gz
Merge branch 'fix-qa-auto-devops-secrets' into 'master'
Fix QA spec flaky for application secret variables Closes gitlab-qa#362 See merge request gitlab-org/gitlab-ce!24210 (cherry picked from commit c8ff16642d447f4123d9a83208853108398897ef) e9cb44e5 Fix QA spec flaky for application secret variables
-rw-r--r--qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb b/qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb
index 5ee8df03d50..5147b17d7ab 100644
--- a/qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb
+++ b/qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb
@@ -98,6 +98,17 @@ module QA
resource.value = 'You can see this application secret'
end
+ # Our current Auto DevOps implementation won't update the production
+ # app if we only update a CI variable with no code change.
+ #
+ # Workaround: push new code and use the resultant pipeline.
+ Resource::Repository::ProjectPush.fabricate! do |push|
+ push.project = @project
+ push.commit_message = 'Force a Deployment change by pushing new code'
+ push.file_name = 'new_file.txt'
+ push.file_content = 'new file contents'
+ end
+
@project.visit!
Page::Project::Menu.act { click_ci_cd_pipelines }
Page::Project::Pipeline::Index.act { go_to_latest_pipeline }