lib/brightbox-cli/vendor/fog/tests/aws/requests/elb/policy_tests.rb in brightbox-cli-0.17.1 vs lib/brightbox-cli/vendor/fog/tests/aws/requests/elb/policy_tests.rb in brightbox-cli-0.17.2

- old
+ new

@@ -19,9 +19,22 @@ tests("#create_lb_cookie_stickiness_policy without expiry").formats(AWS::ELB::Formats::BASIC) do policy = 'fog-lb-no-expiry' Fog::AWS[:elb].create_lb_cookie_stickiness_policy(@load_balancer_id, policy).body end + tests("#describe_load_balancer_policy_types").formats(AWS::ELB::Formats::DESCRIBE_LOAD_BALANCER_POLICY_TYPES) do + @policy_types = Fog::AWS[:elb].describe_load_balancer_policy_types.body + end + + tests("#create_load_balancer_policy").formats(AWS::ELB::Formats::BASIC) do + policy = 'fog-policy' + Fog::AWS[:elb].create_load_balancer_policy(@load_balancer_id, policy, 'PublicKeyPolicyType', {'PublicKey' => AWS::IAM::SERVER_CERT_PUBLIC_KEY}).body + end + + tests("#describe_load_balancer_policies").formats(AWS::ELB::Formats::DESCRIBE_LOAD_BALANCER_POLICIES) do + Fog::AWS[:elb].describe_load_balancer_policies(@load_balancer_id).body + end + tests("#delete_load_balancer_policy").formats(AWS::ELB::Formats::BASIC) do policy = 'fog-lb-no-expiry' Fog::AWS[:elb].delete_load_balancer_policy(@load_balancer_id, policy).body end