summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/project/add_deploy_key_spec.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-01-25 22:35:56 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-01-25 22:35:56 +0800
commit7d26eddeceb485e0baa2913b01438ae70344b94f (patch)
treee5c250ef6403461b8895d47bf2a9e6cd020ad3ac /qa/qa/specs/features/project/add_deploy_key_spec.rb
parent3d4a7f63cbf197465fa556ece387b57f57176d10 (diff)
parent9df130ff2291849bc345494f78cb239fb300d59d (diff)
downloadgitlab-ce-qa-secret-variables-scenario.tar.gz
Merge remote-tracking branch 'upstream/master' into qa-secret-variables-scenarioqa-secret-variables-scenario
* upstream/master: Make Gitaly RepositoryExists opt-out Fix .batch_lfs_pointers accepting a lazy enumerator Look at notes created just before merge when deciding if an MR can be reverted Update missing paths Default to HTTPS for all Gravatar URLs Add note within ux documentation that further changes should be made within the design.gitlab project Moves status icon into a vue file and adds tests Moves merging component into a vue file, adds i18n and better test cases Prefer local variables instead Add an test for QA::Runtime::RSAKey Move initialize method later. Also test if the fingerprint is correct Generate ssh key on the fly for QA
Diffstat (limited to 'qa/qa/specs/features/project/add_deploy_key_spec.rb')
-rw-r--r--qa/qa/specs/features/project/add_deploy_key_spec.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/qa/qa/specs/features/project/add_deploy_key_spec.rb b/qa/qa/specs/features/project/add_deploy_key_spec.rb
index 7a123e539e1..b9998dda895 100644
--- a/qa/qa/specs/features/project/add_deploy_key_spec.rb
+++ b/qa/qa/specs/features/project/add_deploy_key_spec.rb
@@ -1,18 +1,20 @@
module QA
feature 'deploy keys support', :core do
- given(:deploy_key_title) { 'deploy key title' }
- given(:deploy_key_value) { Runtime::User.ssh_key }
-
scenario 'user adds a deploy key' do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials }
+ key = Runtime::RSAKey.new
+ deploy_key_title = 'deploy key title'
+ deploy_key_value = key.public_key
+
deploy_key = Factory::Resource::DeployKey.fabricate! do |resource|
resource.title = deploy_key_title
resource.key = deploy_key_value
end
expect(deploy_key.title).to eq(deploy_key_title)
+ expect(deploy_key.fingerprint).to eq(key.fingerprint)
end
end
end