forked from dragonfax/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
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
107 changed files
with
456 additions
and
220 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
internal/features/customizations/machinelearning/client.go
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,30 @@ | ||
//Package machinelearning provides gucumber integration tests suppport. | ||
package machinelearning | ||
|
||
import ( | ||
"github.com/aws/aws-sdk-go/internal/features/shared" | ||
"github.com/aws/aws-sdk-go/service/machinelearning" | ||
. "github.com/lsegal/gucumber" | ||
) | ||
|
||
var _ = shared.Imported | ||
|
||
func init() { | ||
Before("@machinelearning", func() { | ||
World["client"] = machinelearning.New(nil) | ||
}) | ||
|
||
When(`^I attempt to call the "(.+?)" API without the "(.+?)" parameter$`, func(s1 string, s2 string) { | ||
// call(s1, nil, true) | ||
T.Skip() // pending | ||
}) | ||
|
||
When(`^I attempt to call the "(.+?)" API with "(.+?)" parameter$`, func(s1 string, s2 string) { | ||
// call(s1, nil, true) | ||
T.Skip() // pending | ||
}) | ||
|
||
Then(`^the hostname should equal the "(.+?)" parameter$`, func(s1 string) { | ||
T.Skip() // pending | ||
}) | ||
} |
21 changes: 21 additions & 0 deletions
21
internal/features/customizations/machinelearning/machinelearning.feature
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,21 @@ | ||
# language: en | ||
@machinelearning | ||
Feature: Amazon Machine Learning | ||
|
||
I want to use Amazon Machine Learning | ||
|
||
|
||
Scenario: Predict API endpoint | ||
When I attempt to call the "Predict" API without the "PredictEndpoint" parameter | ||
Then the request should fail | ||
|
||
Scenario: Predict API endpoint | ||
When I attempt to call the "Predict" API with "PredictEndpoint" parameter | ||
Then the hostname should equal the "PredictEndpoint" parameter | ||
|
||
Scenario: Predict API endpoint error handling | ||
When I attempt to call the "Predict" API with JSON: | ||
""" | ||
{ "MLModelId": "fake-id", Record: {}, PredictEndpoint: "realtime.machinelearning.us-east-1.amazonaws.com" } | ||
""" | ||
Then the error code should be "PredictorNotMountedException" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
internal/features/cloudwatch/client.feature → ...tures/smoke/cloudwatch/cloudwatch.feature
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
File renamed without changes.
12 changes: 6 additions & 6 deletions
12
...al/features/cloudwatchlogs/client.feature → ...oke/cloudwatchlogs/cloudwatchlogs.feature
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
File renamed without changes.
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,16 @@ | ||
# language: en | ||
@codecommit @client | ||
Feature: Amazon CodeCommit | ||
|
||
Scenario: Making a request | ||
When I call the "ListRepositories" API | ||
Then the value at "repositories" should be a list | ||
|
||
Scenario: Handling errors | ||
When I attempt to call the "ListBranches" API with: | ||
| repositoryName | fake-repo | | ||
Then I expect the response error code to be "RepositoryDoesNotExistException" | ||
And I expect the response error message to include: | ||
""" | ||
fake-repo does not exist | ||
""" |
File renamed without changes.
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,16 @@ | ||
# language: en | ||
@codedeploy @client | ||
Feature: Amazon CodeDeploy | ||
|
||
Scenario: Making a request | ||
When I call the "ListApplications" API | ||
Then the value at "applications" should be a list | ||
|
||
Scenario: Handling errors | ||
When I attempt to call the "GetDeployment" API with: | ||
| deploymentId | d-USUAELQEX | | ||
Then I expect the response error code to be "DeploymentDoesNotExistException" | ||
And I expect the response error message to include: | ||
""" | ||
The deployment d-USUAELQEX could not be found | ||
""" |
File renamed without changes.
Oops, something went wrong.