mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[AWS|ELB] load_balancer_tests cleanup cert from potentially failed previous test run
This commit is contained in:
parent
6dcc7d3e1d
commit
3be707e235
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,10 @@ Shindo.tests('AWS::ELB | load_balancer_tests', ['aws', 'elb']) do
|
|||
@key_name = 'fog-test'
|
||||
|
||||
tests('success') do
|
||||
if (Fog::AWS[:iam].get_server_certificate(@key_name) rescue nil)
|
||||
Fog::AWS[:iam].delete_server_certificate(@key_name)
|
||||
end
|
||||
|
||||
@certificate = Fog::AWS[:iam].upload_server_certificate(AWS::IAM::SERVER_CERT_PUBLIC_KEY, AWS::IAM::SERVER_CERT_PRIVATE_KEY, @key_name).body['Certificate']
|
||||
|
||||
tests("#create_load_balancer").formats(AWS::ELB::Formats::CREATE_LOAD_BALANCER) do
|
||||
|
|
Loading…
Reference in a new issue