Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qa/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2018-01-25 15:01:28 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-01-25 15:01:28 +0300
commit7ea8ea8e1a214bf622b27867300ffb25887d2b7f (patch)
tree38c7d3bc17109dcbd5e499cfadecaf917a231be5 /qa/spec
parent60f372859d0771d7a6f484d64649e9f250699225 (diff)
parent5e911c5d2c18b5f909f2072cc97bb75704496ea1 (diff)
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.rb9
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