2009-07-06 12:21:21 -04:00
|
|
|
require File.dirname(__FILE__) + '/../../spec_helper'
|
|
|
|
|
|
|
|
describe 'EC2.create_key_pair' do
|
|
|
|
|
2009-08-12 01:18:27 -04:00
|
|
|
before(:all) do
|
|
|
|
@ec2 = Fog::AWS::EC2.gen
|
|
|
|
end
|
|
|
|
|
2009-07-06 12:21:21 -04:00
|
|
|
after(:all) do
|
2009-08-12 01:18:27 -04:00
|
|
|
@ec2.delete_key_pair('fog_key_pair')
|
2009-07-06 12:21:21 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
it "should return proper attributes" do
|
2009-08-12 01:18:27 -04:00
|
|
|
actual = @ec2.create_key_pair('fog_key_pair')
|
2009-08-01 04:15:44 -04:00
|
|
|
actual.body['keyFingerprint'].should be_a(String)
|
|
|
|
actual.body['keyMaterial'].should be_a(String)
|
|
|
|
actual.body['keyName'].should be_a(String)
|
|
|
|
actual.body['requestId'].should be_a(String)
|
2009-07-06 12:21:21 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|