Commit 04068880 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'qa-247-generate-key-in-the-tests' into 'master'

Generate the key while running the tests

Closes gitlab-qa#247

See merge request gitlab-org/gitlab-ce!19059
parents 3540254e bc535d4f
......@@ -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|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment