tests/aws/requests/iam/server_certificate_tests.rb in fog-1.14.0 vs tests/aws/requests/iam/server_certificate_tests.rb in fog-1.15.0
- old
+ new
@@ -23,11 +23,11 @@
@list_format = {
'Certificates' => [@certificate_format]
}
tests('#upload_server_certificate') do
- public_key = AWS::IAM::SERVER_CERT_PUBLIC_KEY
+ public_key = AWS::IAM::SERVER_CERT
private_key = AWS::IAM::SERVER_CERT_PRIVATE_KEY
private_key_pkcs8 = AWS::IAM::SERVER_CERT_PRIVATE_KEY_PKCS8
private_key_mismatch = AWS::IAM::SERVER_CERT_PRIVATE_KEY_MISMATCHED
tests('empty public key').raises(Fog::AWS::IAM::ValidationError) do
@@ -66,10 +66,10 @@
Fog::AWS::IAM.new.upload_server_certificate(public_key, private_key, @key_name)
end
end
tests('#update_server_certificate') do
- public_key = AWS::IAM::SERVER_CERT_PUBLIC_KEY
+ public_key = AWS::IAM::SERVER_CERT
private_key = AWS::IAM::SERVER_CERT_PRIVATE_KEY
key_name = "update-key"
Fog::AWS::IAM.new.upload_server_certificate(public_key, private_key, key_name)