mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #299 from ktheory/aws_key_pairs
[compute|aws] Add failing tests for keypair parsing.
This commit is contained in:
commit
37499d7c65
1 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,11 @@ Shindo.tests('AWS::Compute | key pair requests', ['aws']) do
|
|||
@public_key_material = 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA1SL+kgze8tvSFW6Tyj3RyZc9iFVQDiCKzjgwn2tS7hyWxaiDhjfY2mBYSZwFdKN+ZdsXDJL4CPutUg4DKoQneVgIC1zuXrlpPbaT0Btu2aFd4qNfJ85PBrOtw2GrWZ1kcIgzZ1mMbQt6i1vhsySD2FEj+5kGHouNxQpI5dFR5K+nGgcTLFGnzb/MPRBk136GVnuuYfJ2I4va/chstThoP8UwnoapRHcBpwTIfbmmL91BsRVqjXZEUT73nxpxFeXXidYwhHio+5dXwE0aM/783B/3cPG6FVoxrBvjoNpQpAcEyjtRh9lpwHZtSEW47WNzpIW3PhbQ8j4MryznqF1Rhw=='
|
||||
|
||||
tests("#create_key_pair('#{@key_pair_name}')").formats(@keypair_format.merge({'keyMaterial' => String})) do
|
||||
AWS[:compute].create_key_pair(@key_pair_name).body
|
||||
body = AWS[:compute].create_key_pair(@key_pair_name).body
|
||||
tests("private key is valid RSA key").returns(OpenSSL::PKey::RSA) do
|
||||
OpenSSL::PKey::RSA.new(body['keyMaterial']).class
|
||||
end
|
||||
body
|
||||
end
|
||||
|
||||
tests('#describe_key_pairs').formats(@keypairs_format) do
|
||||
|
|
Loading…
Reference in a new issue