Commit bc535d4f authored by Lin Jen-Shin's avatar Lin Jen-Shin

Generate the key while running the tests

parent b113330f
...@@ -33,13 +33,15 @@ module QA ...@@ -33,13 +33,15 @@ module QA
end end
keys = [ keys = [
Runtime::Key::RSA.new(8192), [Runtime::Key::RSA, 8192],
Runtime::Key::ECDSA.new(521), [Runtime::Key::ECDSA, 521],
Runtime::Key::ED25519.new [Runtime::Key::ED25519]
] ]
keys.each do |key| keys.each do |(key_class, bits)|
scenario "user sets up a deploy key with #{key.name}(#{key.bits}) to clone code using pipelines" do scenario "user sets up a deploy key with #{key_class}(#{bits}) to clone code using pipelines" do
key = key_class.new(*bits)
login login
Factory::Resource::DeployKey.fabricate! do |resource| 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