github.com/aavshr/aws-sdk-go@v1.41.3/service/finspacedata/cust_integ_test.go (about)

     1  //go:build go1.7 && integration
     2  // +build go1.7,integration
     3  
     4  package finspacedata
     5  
     6  import (
     7  	"os"
     8  	"testing"
     9  
    10  	"github.com/aavshr/aws-sdk-go/aws"
    11  	"github.com/aavshr/aws-sdk-go/awstesting/integration"
    12  )
    13  
    14  func TestInteg_GetWorkingLocation(t *testing.T) {
    15  	if v := os.Getenv("AWS_SDK_GO_MANUAL_TESTS"); len(v) == 0 {
    16  		t.Skip("manual test")
    17  	}
    18  	sess := integration.SessionWithDefaultRegion("us-west-2")
    19  
    20  	client := New(sess)
    21  	_, err := client.GetWorkingLocation(&GetWorkingLocationInput{
    22  		LocationType: aws.String("INGESTION"),
    23  	})
    24  	if err != nil {
    25  		t.Fatalf("expect API call, got %v, %#v", err, err)
    26  	}
    27  }