-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
233 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"version": 2, | ||
"testCases": [ | ||
{ | ||
"id": "FailureExample", | ||
"operationName": "TestOperation", | ||
"input": { | ||
"message": "foo" | ||
}, | ||
"expectation": {"failure": {}}, | ||
"config": { | ||
"region": "moon-dark-1" | ||
}, | ||
"tags": ["connection"] | ||
}, | ||
{ | ||
"id": "ErrorExample", | ||
"operationName": "TestOperation", | ||
"input": { | ||
"message": "föö" | ||
}, | ||
"expectation": {"failure": {"errorId": "InvalidMessageError"}}, | ||
"config": { | ||
"region": "eu-central-1" | ||
} | ||
}, | ||
{ | ||
"id": "SuccessExample", | ||
"operationName": "TestOperation", | ||
"input": { | ||
"message": "bar" | ||
}, | ||
"expectation": {"success": {}}, | ||
"config": { | ||
"region": "eu-central-1" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
...ws-sdk-code-generator/lib/aws-sdk-code-generator/views/features/smoke_step_definitions.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 11 additions & 15 deletions
26
build_tools/aws-sdk-code-generator/templates/features/smoke.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
{{#generated_src_warning}} | ||
{{generated_src_warning}} | ||
{{/generated_src_warning}} | ||
Feature: Smoke tests for {{service}} | ||
|
||
Background: | ||
{{#client_endpoint}} | ||
Given I create a client with endpoint '{{client_endpoint}}' | ||
{{/client_endpoint}} | ||
{{^client_endpoint}} | ||
Given I create a client in region '{{client_region}}' | ||
{{/client_endpoint}} | ||
Feature: Smoke tests for {{service_name}} | ||
{{#smoke_tests}} | ||
|
||
{{smoke_test_tags}} | ||
Scenario: {{scenario_string}} | ||
When I call the operation '{{operation}}' with params: | ||
""" | ||
{{tags}} | ||
Scenario: {{id}} | ||
Given I create a '{{service_module}}' client with config: | ||
""" | ||
{{&config_hash}} | ||
""" | ||
When I call the operation '{{operation_name}}' with params: | ||
""" | ||
{{¶m_hash}} | ||
""" | ||
Then {{error_expectation}} | ||
""" | ||
Then {{&expectation}} | ||
{{/smoke_tests}} |
31 changes: 0 additions & 31 deletions
31
build_tools/aws-sdk-code-generator/templates/features/smoke_step_definitions.mustache
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
build_tools/aws-sdk-code-generator/templates/features/step_definitions.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.