diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-03-28 14:47:49 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-03-29 14:40:32 +0300 |
commit | 4e712f766fb893705816fe199b1225460dd451b2 (patch) | |
tree | 5b6ec22fd852094c80a372b96bd8164899622005 /qa | |
parent | ae0c7af2f8bf023f69c384ca6cba4a3a101613ad (diff) |
Introduce repository_ssh_uri as a project product
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/factory/resource/project.rb | 7 | ||||
-rw-r--r-- | qa/qa/specs/features/project/deploy_key_clone_spec.rb | 5 |
2 files changed, 8 insertions, 4 deletions
diff --git a/qa/qa/factory/resource/project.rb b/qa/qa/factory/resource/project.rb index 7df2dc6618c..857d8c98626 100644 --- a/qa/qa/factory/resource/project.rb +++ b/qa/qa/factory/resource/project.rb @@ -17,6 +17,13 @@ module QA Page::Project::Show.act { project_name } end + product :repository_ssh_uri do + Page::Project::Show.act do + choose_repository_clone_ssh + repository_location_uri + end + end + def fabricate! group.visit! diff --git a/qa/qa/specs/features/project/deploy_key_clone_spec.rb b/qa/qa/specs/features/project/deploy_key_clone_spec.rb index cbb383f9291..706a39a5331 100644 --- a/qa/qa/specs/features/project/deploy_key_clone_spec.rb +++ b/qa/qa/specs/features/project/deploy_key_clone_spec.rb @@ -46,10 +46,7 @@ module QA project.visit! - repository_uri = Page::Project::Show.act do - choose_repository_clone_ssh - repository_location_uri - end + repository_uri = project.repository_ssh_uri gitlab_ci = <<~YAML cat-config: |