Skip to content

Commit e585d65

Browse files
committedMar 25, 2014
Add tests for CloudSearch 2013-01-01 API
1 parent e51210c commit e585d65

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed
 

‎features/cloudsearch/cloudsearch.feature

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# language: en
2-
@cloudsearch
3-
Feature: Amazon CloudSearch
2+
@cloudsearch @cloudsearch-2011-02-01
3+
Feature: Amazon CloudSearch (2011-02-01)
44

55
I want to use Amazon CloudSearch
66

@@ -18,3 +18,17 @@ Feature: Amazon CloudSearch
1818
Scenario: Error handling
1919
Given I create a domain with name prefix ""
2020
Then the error code should be "ValidationError"
21+
22+
@cloudsearch @cloudsearch-2013-01-01
23+
Feature: Amazon CloudSearch (2013-01-01)
24+
25+
I want to use Amazon CloudSearch
26+
27+
Scenario: Domain creation
28+
Given I create a domain with name prefix "aws-js-sdk"
29+
Then DomainStatus should show that Created is true
30+
And I delete the domain
31+
32+
Scenario: Error handling
33+
Given I create a domain with name prefix ""
34+
Then the error code should be "ValidationError"

‎features/cloudsearch/step_definitions/cloudsearch.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
module.exports = function() {
2-
this.Before("@cloudsearch", function (callback) {
3-
this.service = new this.AWS.CloudSearch();
2+
this.Before("@cloudsearch-2011-02-01", function (callback) {
3+
this.service = new this.AWS.CloudSearch({apiVersion: '2011-02-01'});
4+
callback();
5+
});
6+
7+
this.Before("@cloudsearch-2013-01-01", function (callback) {
8+
this.service = new this.AWS.CloudSearch({apiVersion: '2013-01-01'});
49
callback();
510
});
611

0 commit comments

Comments
 (0)
Please sign in to comment.