diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-01-25 12:01:28 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-01-25 12:01:28 +0000 |
commit | 7ea8ea8e1a214bf622b27867300ffb25887d2b7f (patch) | |
tree | 38c7d3bc17109dcbd5e499cfadecaf917a231be5 /qa/spec | |
parent | 60f372859d0771d7a6f484d64649e9f250699225 (diff) | |
parent | 5e911c5d2c18b5f909f2072cc97bb75704496ea1 (diff) | |
download | gitlab-ce-7ea8ea8e1a214bf622b27867300ffb25887d2b7f.tar.gz |
Merge branch 'qa-deploy-key-scenario' into 'master'
Generate ssh key on the fly for QA
See merge request gitlab-org/gitlab-ce!16562
Diffstat (limited to 'qa/spec')
-rw-r--r-- | qa/spec/runtime/rsa_key.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qa/spec/runtime/rsa_key.rb b/qa/spec/runtime/rsa_key.rb new file mode 100644 index 00000000000..ff277b9077b --- /dev/null +++ b/qa/spec/runtime/rsa_key.rb @@ -0,0 +1,9 @@ +describe QA::Runtime::RSAKey do + describe '#public_key' do + subject { described_class.new.public_key } + + it 'generates a public RSA key' do + expect(subject).to match(/\Assh\-rsa AAAA[0-9A-Za-z+\/]+={0,3}\z/) + end + end +end |