diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-05-21 16:41:28 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-05-21 16:41:28 +0800 |
commit | bc535d4f885e41ec7069325bb198767770fefbb8 (patch) | |
tree | 915f9033e445d89f9fb78c893ac7d4b3112d5ed6 /qa | |
parent | b113330fab21d3da547cbee057b825f2225676c6 (diff) | |
download | gitlab-ce-bc535d4f885e41ec7069325bb198767770fefbb8.tar.gz |
Generate the key while running the tests
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/specs/features/project/deploy_key_clone_spec.rb | 12 |
1 files changed, 7 insertions, 5 deletions
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 bf8fa230244..442ac312b4d 100644 --- a/qa/qa/specs/features/project/deploy_key_clone_spec.rb +++ b/qa/qa/specs/features/project/deploy_key_clone_spec.rb @@ -33,13 +33,15 @@ module QA end keys = [ - Runtime::Key::RSA.new(8192), - Runtime::Key::ECDSA.new(521), - Runtime::Key::ED25519.new + [Runtime::Key::RSA, 8192], + [Runtime::Key::ECDSA, 521], + [Runtime::Key::ED25519] ] - keys.each do |key| - scenario "user sets up a deploy key with #{key.name}(#{key.bits}) to clone code using pipelines" do + keys.each do |(key_class, bits)| + scenario "user sets up a deploy key with #{key_class}(#{bits}) to clone code using pipelines" do + key = key_class.new(*bits) + login Factory::Resource::DeployKey.fabricate! do |resource| |