Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a basic integration test for the RDS client.

  • Loading branch information...
commit 69c332ca221796234a7e36270ca5531a73244435 1 parent c34c6e8
@trevorrowe trevorrowe authored
View
31 features/rds/client.feature
@@ -14,30 +14,13 @@
# language: en
@rds @client
-Feature: Route 53 Client
+Feature: RDS Client
- Scenario: CreateHostedZone
- When I call #create_hosted_zone on the client
+ Scenario: DescribeEvents
+ When I call #describe_events on the client
Then a request should have been made like:
- | TYPE | NAME | VALUE |
- | http | verb | POST |
- | http | uri | /2012-02-29/hostedzone |
-
- Scenario: DeleteHostedZone
- Given I call #create_hosted_zone on the client
- When I call #delete_hosted_zone on the client with the zone id
- Then #get_hosted_zone should raise "AWS::Route53::Errors::NoSuchHostedZone"
-
- Scenario: GetHostedZone
- Given I call #create_hosted_zone on the client
- When I call #get_hosted_zone on the client with the zone id
- Then a request should have been made like:
- | TYPE | NAME | VALUE |
- | http | verb | GET |
- | http | uri_match | ^\/2012-02-29\/hostedzone\/.+ |
-
- Scenario: ListHostedZones
- Given I call #create_hosted_zone on the client 3 times
- When I call #list_hosted_zone on the client
- Then the response should contain the created hosted zone ids
+ | TYPE | NAME | VALUE |
+ | http | verb | POST |
+ | http | uri | / |
+ | param | Action | DescribeEvents |
View
17 features/rds/step_definitions/client.rb
@@ -0,0 +1,17 @@
+# Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"). You
+# may not use this file except in compliance with the License. A copy of
+# the License is located at
+#
+# http://aws.amazon.com/apache2.0/
+#
+# or in the "license" file accompanying this file. This file is
+# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
+# ANY KIND, either express or implied. See the License for the specific
+# language governing permissions and limitations under the License.
+
+
+When /^I call \#(\w+) on the client$/ do |operation|
+ @response = @rds.client.send(operation, {})
+end
Please sign in to comment.
Something went wrong with that request. Please try again.