diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-02-09 22:25:08 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-02-09 22:46:27 +0800 |
commit | 75984534f80b97d2bc7f05c24ce3e0cadb5b85a3 (patch) | |
tree | 3b0fbad163e925906590385f4eb27bf77313c5db /qa/qa/specs/features | |
parent | 578a98fb447b2c98763c09b51d38d50c895ec925 (diff) | |
download | gitlab-ce-75984534f80b97d2bc7f05c24ce3e0cadb5b85a3.tar.gz |
Cleanup codes and address feedback
Diffstat (limited to 'qa/qa/specs/features')
-rw-r--r-- | qa/qa/specs/features/cicd/pull_with_deploy_key_spec.rb | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/qa/qa/specs/features/cicd/pull_with_deploy_key_spec.rb b/qa/qa/specs/features/cicd/pull_with_deploy_key_spec.rb index 91ade2649ac..39c600aee87 100644 --- a/qa/qa/specs/features/cicd/pull_with_deploy_key_spec.rb +++ b/qa/qa/specs/features/cicd/pull_with_deploy_key_spec.rb @@ -8,7 +8,7 @@ module QA Service::Runner.new(runner_name).remove! end - scenario 'user pushes .gitlab-ci.yml to the repository' do + scenario 'user setup a deploy key and use it to pull from CI job' do Runtime::Browser.visit(:gitlab, Page::Main::Login) Page::Main::Login.act { sign_in_using_credentials } @@ -52,7 +52,7 @@ module QA cat-config: script: - mkdir -p ~/.ssh - - ssh-keyscan -p #{repository_uri.port} #{repository_uri.host} >> ~/.ssh/known_hosts + - ssh-keyscan -p #{repository_uri.port || 22} #{repository_uri.host} >> ~/.ssh/known_hosts - eval $(ssh-agent -s) - echo "$DEPLOY_KEY" | ssh-add - - git clone #{repository_url} @@ -73,15 +73,8 @@ module QA Page::Project::Show.act { wait_for_push } Page::Menu::Side.act { click_ci_cd_pipelines } - - Page::Project::Pipeline::Index.act do - wait_for_latest_pipeline - go_to_latest_pipeline - end - - Page::Project::Pipeline::Show.act do - go_to_first_job - end + Page::Project::Pipeline::Index.act { go_to_latest_pipeline } + Page::Project::Pipeline::Show.act { go_to_first_job } Page::Project::Job::Show.perform do |job| expect(job.output).to include(sha1sum) |