summaryrefslogtreecommitdiff
path: root/qa/spec/runtime/key/dsa_spec.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-03-09 11:50:21 +0000
committerLin Jen-Shin <godfat@godfat.org>2018-03-29 19:40:32 +0800
commit211b2f390c3311f5880b3de6a2fb16f7865ebaae (patch)
tree4e087ba5278183dfa128728a33931f3d5334b551 /qa/spec/runtime/key/dsa_spec.rb
parent9a538b9eebd6aed362c6ed86445d96c8e06ffdf2 (diff)
downloadgitlab-ce-211b2f390c3311f5880b3de6a2fb16f7865ebaae.tar.gz
Implement other ssh keys and use ssh-keygen instead
Diffstat (limited to 'qa/spec/runtime/key/dsa_spec.rb')
-rw-r--r--qa/spec/runtime/key/dsa_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/qa/spec/runtime/key/dsa_spec.rb b/qa/spec/runtime/key/dsa_spec.rb
new file mode 100644
index 00000000000..600e7ce4ee6
--- /dev/null
+++ b/qa/spec/runtime/key/dsa_spec.rb
@@ -0,0 +1,9 @@
+describe QA::Runtime::Key::DSA do
+ describe '#public_key' do
+ subject { described_class.new.public_key }
+
+ it 'generates a public DSA key' do
+ expect(subject).to match(%r{\Assh\-dss AAAA[0-9A-Za-z+/]+={0,3}})
+ end
+ end
+end