summaryrefslogtreecommitdiff
path: root/qa/spec/runtime/rsa_key.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/spec/runtime/rsa_key.rb')
-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