Skip to content

Create the key when running the tests

In qa/qa/specs/features/project/deploy_key_clone_spec.rb we create the key while loading the test:

keys = [
  Runtime::Key::RSA.new(8192),
  Runtime::Key::ECDSA.new(521),
  Runtime::Key::ED25519.new
]

We should create them when running the tests instead. So maybe like:

keys = [
  [Runtime::Key::RSA, 8192],
  [Runtime::Key::ECDSA, 521],
  [Runtime::Key::ED25519]
]

keys.each do |(key, bits)|
  scenario "user sets up a deploy key with #{key}(#{bits}) to clone code using pipelines" do
    key = Key.new(*bits)
  end
end

/cc @grzesiek

Edited by Martin Wortschack