Vendor aws-sdk-go (dep ensure) (#178)
This commit is contained in:
29
vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/client.go
generated
vendored
Normal file
29
vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/client.go
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
// +build integration
|
||||
|
||||
//Package iotdataplane provides gucumber integration tests support.
|
||||
package iotdataplane
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/awstesting/integration/smoke"
|
||||
"github.com/aws/aws-sdk-go/service/iot"
|
||||
"github.com/aws/aws-sdk-go/service/iotdataplane"
|
||||
"github.com/gucumber/gucumber"
|
||||
)
|
||||
|
||||
func init() {
|
||||
gucumber.Before("@iotdataplane", func() {
|
||||
svc := iot.New(smoke.Session)
|
||||
result, err := svc.DescribeEndpoint(&iot.DescribeEndpointInput{})
|
||||
if err != nil {
|
||||
gucumber.World["error"] = err
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("IOT Data endpoint:", *result.EndpointAddress)
|
||||
gucumber.World["client"] = iotdataplane.New(smoke.Session, aws.NewConfig().
|
||||
WithEndpoint(*result.EndpointAddress))
|
||||
})
|
||||
}
|
||||
9
vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/iotdataplane.feature
generated
vendored
Normal file
9
vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/iotdataplane.feature
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
# language: en
|
||||
@iotdataplane @client
|
||||
|
||||
Feature: AWS IoT Data Plane
|
||||
|
||||
Scenario: Handling errors
|
||||
When I attempt to call the "GetThingShadow" API with:
|
||||
| thingName | fake-thing |
|
||||
Then I expect the response error code to be "ResourceNotFoundException"
|
||||
Reference in New Issue
Block a user