summaryrefslogtreecommitdiff
path: root/qa/spec/runtime/key/rsa_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/spec/runtime/key/rsa_spec.rb')
-rw-r--r--qa/spec/runtime/key/rsa_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/qa/spec/runtime/key/rsa_spec.rb b/qa/spec/runtime/key/rsa_spec.rb
new file mode 100644
index 00000000000..fbcc7ffdcb4
--- /dev/null
+++ b/qa/spec/runtime/key/rsa_spec.rb
@@ -0,0 +1,9 @@
+describe QA::Runtime::Key::RSA do
+ describe '#public_key' do
+ subject { described_class.new.public_key }
+
+ it 'generates a public RSA key' do
+ expect(subject).to match(%r{\Assh\-rsa AAAA[0-9A-Za-z+/]+={0,3}})
+ end
+ end
+end