aws / aws-sdk-go

AWS SDK for the Go programming language.
http://aws.amazon.com/sdk-for-go/
Apache License 2.0
8.64k stars 2.07k forks source link

Tests failing when run as a module dependency #2813

Closed jamie-digital closed 5 years ago

jamie-digital commented 5 years ago

Please fill out the sections below to help us address your issue.

Version of AWS SDK for Go?

v1.23.15

Version of Go (go version)?

go version go1.13 darwin/amd64

What issue did you see?

Tests fail in the following packages:

Steps to reproduce

$ mkdir /tmp/aws-sdk-go
$ cd /tmp/aws-sdk-go
$ go mod init example.com/foo
go: creating new go.mod: module example.com/foo
$ go get github.com/aws/aws-sdk-go@v1.23.15
$ go test github.com/aws/aws-sdk-go/...
<snip>
sh: /bad/process: No such file or directory
cat: testdata/tmp_expiring.json: No such file or directory
--- FAIL: TestProcessProviderNotExpired (0.01s)
    provider_test.go:392: expected no error, got open testdata/tmp_expiring.json: permission denied
    provider_test.go:403: expected no error, got ProcessProviderExecutionError: error in credential_process
        caused by: exit status 1
    provider_test.go:406: expected not expired, got expired
    provider_test.go:396: expected no error, got remove testdata/tmp_expiring.json: no such file or directory
cat: testdata/tmp_expired.json: No such file or directory
--- FAIL: TestProcessProviderExpired (0.01s)
    provider_test.go:429: expected no error, got open testdata/tmp_expired.json: permission denied
    provider_test.go:440: expected no error, got ProcessProviderExecutionError: error in credential_process
        caused by: exit status 1
    provider_test.go:433: expected no error, got remove testdata/tmp_expired.json: no such file or directory
cat: testdata/tmp_force_expire.json: No such file or directory
cat: testdata/tmp_force_expire.json: No such file or directory
--- FAIL: TestProcessProviderForceExpire (0.02s)
    provider_test.go:467: expected no error, got open testdata/tmp_force_expire.json: permission denied
    provider_test.go:479: expected no error, got ProcessProviderExecutionError: error in credential_process
        caused by: exit status 1
    provider_test.go:482: expected not expired, got expired
    provider_test.go:493: expected no error, got ProcessProviderExecutionError: error in credential_process
        caused by: exit status 1
    provider_test.go:496: expected not expired, got expired
    provider_test.go:471: expected no error, got remove testdata/tmp_force_expire.json: no such file or directory
FAIL
FAIL    github.com/aws/aws-sdk-go/aws/credentials/processcreds  2.136s
<snip>
--- FAIL: TestWriteEncodedFromDecoded (0.00s)
    decode_test.go:21: failed to open "payload_no_headers", open testdata/encoded/positive/payload_no_headers: permission denied
FAIL
FAIL    github.com/aws/aws-sdk-go/private/protocol/eventstream  0.033s
<snip>

Full output:

?       github.com/aws/aws-sdk-go   [no test files]
ok      github.com/aws/aws-sdk-go/aws   (cached)
ok      github.com/aws/aws-sdk-go/aws/arn   (cached)
?       github.com/aws/aws-sdk-go/aws/awserr    [no test files]
ok      github.com/aws/aws-sdk-go/aws/awsutil   (cached)
ok      github.com/aws/aws-sdk-go/aws/client    (cached)
?       github.com/aws/aws-sdk-go/aws/client/metadata   [no test files]
ok      github.com/aws/aws-sdk-go/aws/corehandlers  0.461s
ok      github.com/aws/aws-sdk-go/aws/credentials   10.642s
ok      github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds  0.038s
ok      github.com/aws/aws-sdk-go/aws/credentials/endpointcreds 0.034s
?       github.com/aws/aws-sdk-go/aws/credentials/plugincreds   [no test files]
sh: /bad/process: No such file or directory
cat: testdata/tmp_expiring.json: No such file or directory
--- FAIL: TestProcessProviderNotExpired (0.01s)
    provider_test.go:392: expected no error, got open testdata/tmp_expiring.json: permission denied
    provider_test.go:403: expected no error, got ProcessProviderExecutionError: error in credential_process
        caused by: exit status 1
    provider_test.go:406: expected not expired, got expired
    provider_test.go:396: expected no error, got remove testdata/tmp_expiring.json: no such file or directory
cat: testdata/tmp_expired.json: No such file or directory
--- FAIL: TestProcessProviderExpired (0.01s)
    provider_test.go:429: expected no error, got open testdata/tmp_expired.json: permission denied
    provider_test.go:440: expected no error, got ProcessProviderExecutionError: error in credential_process
        caused by: exit status 1
    provider_test.go:433: expected no error, got remove testdata/tmp_expired.json: no such file or directory
cat: testdata/tmp_force_expire.json: No such file or directory
cat: testdata/tmp_force_expire.json: No such file or directory
--- FAIL: TestProcessProviderForceExpire (0.02s)
    provider_test.go:467: expected no error, got open testdata/tmp_force_expire.json: permission denied
    provider_test.go:479: expected no error, got ProcessProviderExecutionError: error in credential_process
        caused by: exit status 1
    provider_test.go:482: expected not expired, got expired
    provider_test.go:493: expected no error, got ProcessProviderExecutionError: error in credential_process
        caused by: exit status 1
    provider_test.go:496: expected not expired, got expired
    provider_test.go:471: expected no error, got remove testdata/tmp_force_expire.json: no such file or directory
FAIL
FAIL    github.com/aws/aws-sdk-go/aws/credentials/processcreds  2.136s
ok      github.com/aws/aws-sdk-go/aws/credentials/stscreds  (cached)
ok      github.com/aws/aws-sdk-go/aws/crr   (cached)
ok      github.com/aws/aws-sdk-go/aws/csm   (cached)
ok      github.com/aws/aws-sdk-go/aws/defaults  0.031s
ok      github.com/aws/aws-sdk-go/aws/ec2metadata   0.350s
ok      github.com/aws/aws-sdk-go/aws/endpoints (cached)
ok      github.com/aws/aws-sdk-go/aws/request   7.307s
ok      github.com/aws/aws-sdk-go/aws/session   0.435s
ok      github.com/aws/aws-sdk-go/aws/signer/v4 0.036s
ok      github.com/aws/aws-sdk-go/awstesting    (cached)
?       github.com/aws/aws-sdk-go/awstesting/mock   [no test files]
?       github.com/aws/aws-sdk-go/awstesting/unit   [no test files]
?       github.com/aws/aws-sdk-go/example/aws/request/httptrace [no test files]
?       github.com/aws/aws-sdk-go/example/service/s3/loggingUploadObjectReadBehavior    [no test files]
ok      github.com/aws/aws-sdk-go/internal/ini  (cached)
?       github.com/aws/aws-sdk-go/internal/s3err    [no test files]
?       github.com/aws/aws-sdk-go/internal/sdkio    [no test files]
?       github.com/aws/aws-sdk-go/internal/sdkmath  [no test files]
?       github.com/aws/aws-sdk-go/internal/sdkrand  [no test files]
?       github.com/aws/aws-sdk-go/internal/sdktesting   [no test files]
ok      github.com/aws/aws-sdk-go/internal/sdkuri   (cached)
ok      github.com/aws/aws-sdk-go/internal/shareddefaults   0.009s
?       github.com/aws/aws-sdk-go/models/endpoints  [no test files]
?       github.com/aws/aws-sdk-go/private/model/api [no test files]
?       github.com/aws/aws-sdk-go/private/model/api/codegentest/service [no test files]
ok      github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest    (cached)
?       github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/awsendpointdiscoverytestiface  [no test files]
ok      github.com/aws/aws-sdk-go/private/model/api/codegentest/service/restjsonservice 0.053s
?       github.com/aws/aws-sdk-go/private/model/api/codegentest/service/restjsonservice/restjsonserviceiface    [no test files]
ok      github.com/aws/aws-sdk-go/private/model/api/codegentest/service/restxmlservice  0.057s
?       github.com/aws/aws-sdk-go/private/model/api/codegentest/service/restxmlservice/restxmlserviceiface  [no test files]
ok      github.com/aws/aws-sdk-go/private/model/api/codegentest/service/rpcservice  0.062s
?       github.com/aws/aws-sdk-go/private/model/api/codegentest/service/rpcservice/rpcserviceiface  [no test files]
ok      github.com/aws/aws-sdk-go/private/protocol  (cached)
ok      github.com/aws/aws-sdk-go/private/protocol/ec2query (cached)
--- FAIL: TestWriteEncodedFromDecoded (0.00s)
    decode_test.go:21: failed to open "payload_no_headers", open testdata/encoded/positive/payload_no_headers: permission denied
FAIL
FAIL    github.com/aws/aws-sdk-go/private/protocol/eventstream  0.033s
ok      github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi   (cached)
?       github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamtest  [no test files]
ok      github.com/aws/aws-sdk-go/private/protocol/json/jsonutil    (cached)
ok      github.com/aws/aws-sdk-go/private/protocol/jsonrpc  (cached)
ok      github.com/aws/aws-sdk-go/private/protocol/query    (cached)
?       github.com/aws/aws-sdk-go/private/protocol/query/queryutil  [no test files]
ok      github.com/aws/aws-sdk-go/private/protocol/rest (cached)
ok      github.com/aws/aws-sdk-go/private/protocol/restjson (cached)
ok      github.com/aws/aws-sdk-go/private/protocol/restxml  (cached)
ok      github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil  (cached)
ok      github.com/aws/aws-sdk-go/private/signer/v2 (cached)
?       github.com/aws/aws-sdk-go/private/util  [no test files]
?       github.com/aws/aws-sdk-go/service   [no test files]
?       github.com/aws/aws-sdk-go/service/acm   [no test files]
?       github.com/aws/aws-sdk-go/service/acm/acmiface  [no test files]
?       github.com/aws/aws-sdk-go/service/acmpca    [no test files]
?       github.com/aws/aws-sdk-go/service/acmpca/acmpcaiface    [no test files]
?       github.com/aws/aws-sdk-go/service/alexaforbusiness  [no test files]
?       github.com/aws/aws-sdk-go/service/alexaforbusiness/alexaforbusinessifac[no test files]
?       github.com/aws/aws-sdk-go/service/amplify   [no test files]
?       github.com/aws/aws-sdk-go/service/amplify/amplifyiface  [no test files]
?       github.com/aws/aws-sdk-go/service/apigateway    [no test files]
?       github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface    [no test files]
?       github.com/aws/aws-sdk-go/service/apigatewaymanagementapi   [no test files]
?       github.com/aws/aws-sdk-go/service/apigatewaymanagementapi/apigatewaymanagementapiiface  [no test files]
?       github.com/aws/aws-sdk-go/service/apigatewayv2  [no test files]
?       github.com/aws/aws-sdk-go/service/apigatewayv2/apigatewayv2iface    [no test files]
ok      github.com/aws/aws-sdk-go/service/applicationautoscaling    (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/applicationautoscaling/applicationautoscalingiface    [no test files]
?       github.com/aws/aws-sdk-go/service/applicationdiscoveryservice   [no test files]
?       github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/applicationdiscoveryserviceiface  [no test files]
?       github.com/aws/aws-sdk-go/service/applicationinsights   [no test files]
?       github.com/aws/aws-sdk-go/service/applicationinsights/applicationinsightsiface  [no test files]
?       github.com/aws/aws-sdk-go/service/appmesh   [no test files]
?       github.com/aws/aws-sdk-go/service/appmesh/appmeshiface  [no test files]
?       github.com/aws/aws-sdk-go/service/appstream [no test files]
?       github.com/aws/aws-sdk-go/service/appstream/appstreamiface  [no test files]
?       github.com/aws/aws-sdk-go/service/appsync   [no test files]
?       github.com/aws/aws-sdk-go/service/appsync/appsynciface  [no test files]
?       github.com/aws/aws-sdk-go/service/athena    [no test files]
?       github.com/aws/aws-sdk-go/service/athena/athenaiface    [no test files]
ok      github.com/aws/aws-sdk-go/service/autoscaling   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface  [no test files]
?       github.com/aws/aws-sdk-go/service/autoscalingplans  [no test files]
?       github.com/aws/aws-sdk-go/service/autoscalingplans/autoscalingplansifac[no test files]
?       github.com/aws/aws-sdk-go/service/backup    [no test files]
?       github.com/aws/aws-sdk-go/service/backup/backupiface    [no test files]
ok      github.com/aws/aws-sdk-go/service/batch (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/batch/batchiface  [no test files]
?       github.com/aws/aws-sdk-go/service/budgets   [no test files]
?       github.com/aws/aws-sdk-go/service/budgets/budgetsiface  [no test files]
?       github.com/aws/aws-sdk-go/service/chime [no test files]
?       github.com/aws/aws-sdk-go/service/chime/chimeiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/cloud9    (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/cloud9/cloud9iface    [no test files]
?       github.com/aws/aws-sdk-go/service/clouddirectory    [no test files]
?       github.com/aws/aws-sdk-go/service/clouddirectory/clouddirectoryiface    [no test files]
?       github.com/aws/aws-sdk-go/service/cloudformation    [no test files]
?       github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface    [no test files]
ok      github.com/aws/aws-sdk-go/service/cloudfront    (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface    [no test files]
ok      github.com/aws/aws-sdk-go/service/cloudfront/sign   (cached)
?       github.com/aws/aws-sdk-go/service/cloudhsm  [no test files]
?       github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface    [no test files]
?       github.com/aws/aws-sdk-go/service/cloudhsmv2    [no test files]
?       github.com/aws/aws-sdk-go/service/cloudhsmv2/cloudhsmv2iface    [no test files]
?       github.com/aws/aws-sdk-go/service/cloudsearch   [no test files]
?       github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/cloudsearchdomain (cached)
?       github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface  [no test files]
?       github.com/aws/aws-sdk-go/service/cloudtrail    [no test files]
?       github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface    [no test files]
?       github.com/aws/aws-sdk-go/service/cloudwatch    [no test files]
?       github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface    [no test files]
?       github.com/aws/aws-sdk-go/service/cloudwatchevents  [no test files]
?       github.com/aws/aws-sdk-go/service/cloudwatchevents/cloudwatcheventsifac[no test files]
?       github.com/aws/aws-sdk-go/service/cloudwatchlogs    [no test files]
?       github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface    [no test files]
ok      github.com/aws/aws-sdk-go/service/codebuild (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/codebuild/codebuildiface  [no test files]
?       github.com/aws/aws-sdk-go/service/codecommit    [no test files]
?       github.com/aws/aws-sdk-go/service/codecommit/codecommitiface    [no test files]
?       github.com/aws/aws-sdk-go/service/codedeploy    [no test files]
?       github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface    [no test files]
?       github.com/aws/aws-sdk-go/service/codepipeline  [no test files]
?       github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface    [no test files]
?       github.com/aws/aws-sdk-go/service/codestar  [no test files]
?       github.com/aws/aws-sdk-go/service/codestar/codestariface    [no test files]
ok      github.com/aws/aws-sdk-go/service/cognitoidentity   (cached)
?       github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface  [no test files]
?       github.com/aws/aws-sdk-go/service/cognitoidentityprovider   [no test files]
?       github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface  [no test files]
?       github.com/aws/aws-sdk-go/service/cognitosync   [no test files]
?       github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface  [no test files]
?       github.com/aws/aws-sdk-go/service/comprehend    [no test files]
?       github.com/aws/aws-sdk-go/service/comprehend/comprehendiface    [no test files]
?       github.com/aws/aws-sdk-go/service/comprehendmedical [no test files]
?       github.com/aws/aws-sdk-go/service/comprehendmedical/comprehendmedicaliface  [no test files]
?       github.com/aws/aws-sdk-go/service/configservice [no test files]
?       github.com/aws/aws-sdk-go/service/configservice/configserviceiface  [no test files]
?       github.com/aws/aws-sdk-go/service/connect   [no test files]
?       github.com/aws/aws-sdk-go/service/connect/connectiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/costandusagereportservice (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/costandusagereportservice/costandusagereportserviceiface  [no test files]
?       github.com/aws/aws-sdk-go/service/costexplorer  [no test files]
?       github.com/aws/aws-sdk-go/service/costexplorer/costexploreriface    [no test files]
ok      github.com/aws/aws-sdk-go/service/databasemigrationservice  (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/databasemigrationservice/databasemigrationserviceiface    [no test files]
?       github.com/aws/aws-sdk-go/service/datapipeline  [no test files]
?       github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface    [no test files]
?       github.com/aws/aws-sdk-go/service/datasync  [no test files]
?       github.com/aws/aws-sdk-go/service/datasync/datasynciface    [no test files]
?       github.com/aws/aws-sdk-go/service/dax   [no test files]
?       github.com/aws/aws-sdk-go/service/dax/daxiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/devicefarm    (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface    [no test files]
?       github.com/aws/aws-sdk-go/service/directconnect [no test files]
?       github.com/aws/aws-sdk-go/service/directconnect/directconnectiface  [no test files]
?       github.com/aws/aws-sdk-go/service/directoryservice  [no test files]
?       github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceifac[no test files]
?       github.com/aws/aws-sdk-go/service/dlm   [no test files]
?       github.com/aws/aws-sdk-go/service/dlm/dlmiface  [no test files]
?       github.com/aws/aws-sdk-go/service/docdb [no test files]
?       github.com/aws/aws-sdk-go/service/docdb/docdbiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/dynamodb  (cached)
ok      github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute    (cached)
?       github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface    [no test files]
ok      github.com/aws/aws-sdk-go/service/dynamodb/expression   (cached)
ok      github.com/aws/aws-sdk-go/service/dynamodbstreams   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/ec2   (cached)
?       github.com/aws/aws-sdk-go/service/ec2/ec2iface  [no test files]
ok      github.com/aws/aws-sdk-go/service/ec2instanceconnect    (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/ec2instanceconnect/ec2instanceconnectiface    [no test files]
ok      github.com/aws/aws-sdk-go/service/ecr   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/ecr/ecriface  [no test files]
ok      github.com/aws/aws-sdk-go/service/ecs   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/ecs/ecsiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/efs   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/efs/efsiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/eks   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/eks/eksiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/elasticache   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/elasticbeanstalk  (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkifac[no test files]
?       github.com/aws/aws-sdk-go/service/elasticsearchservice  [no test files]
?       github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface    [no test files]
?       github.com/aws/aws-sdk-go/service/elastictranscoder [no test files]
?       github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/elb   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/elb/elbiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/elbv2 (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/elbv2/elbv2iface  [no test files]
?       github.com/aws/aws-sdk-go/service/emr   [no test files]
?       github.com/aws/aws-sdk-go/service/emr/emriface  [no test files]
?       github.com/aws/aws-sdk-go/service/eventbridge   [no test files]
?       github.com/aws/aws-sdk-go/service/eventbridge/eventbridgeiface  [no test files]
?       github.com/aws/aws-sdk-go/service/firehose  [no test files]
?       github.com/aws/aws-sdk-go/service/firehose/firehoseiface    [no test files]
?       github.com/aws/aws-sdk-go/service/fms   [no test files]
?       github.com/aws/aws-sdk-go/service/fms/fmsiface  [no test files]
?       github.com/aws/aws-sdk-go/service/forecastqueryservice  [no test files]
?       github.com/aws/aws-sdk-go/service/forecastqueryservice/forecastqueryserviceiface    [no test files]
?       github.com/aws/aws-sdk-go/service/forecastservice   [no test files]
?       github.com/aws/aws-sdk-go/service/forecastservice/forecastserviceiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/fsx   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/fsx/fsxiface  [no test files]
?       github.com/aws/aws-sdk-go/service/gamelift  [no test files]
?       github.com/aws/aws-sdk-go/service/gamelift/gameliftiface    [no test files]
ok      github.com/aws/aws-sdk-go/service/glacier   (cached)
?       github.com/aws/aws-sdk-go/service/glacier/glacieriface  [no test files]
?       github.com/aws/aws-sdk-go/service/globalaccelerator [no test files]
?       github.com/aws/aws-sdk-go/service/globalaccelerator/globalacceleratoriface  [no test files]
?       github.com/aws/aws-sdk-go/service/glue  [no test files]
?       github.com/aws/aws-sdk-go/service/glue/glueiface    [no test files]
?       github.com/aws/aws-sdk-go/service/greengrass    [no test files]
?       github.com/aws/aws-sdk-go/service/greengrass/greengrassiface    [no test files]
?       github.com/aws/aws-sdk-go/service/groundstation [no test files]
?       github.com/aws/aws-sdk-go/service/groundstation/groundstationiface  [no test files]
?       github.com/aws/aws-sdk-go/service/guardduty [no test files]
?       github.com/aws/aws-sdk-go/service/guardduty/guarddutyiface  [no test files]
?       github.com/aws/aws-sdk-go/service/health    [no test files]
?       github.com/aws/aws-sdk-go/service/health/healthiface    [no test files]
ok      github.com/aws/aws-sdk-go/service/iam   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/iam/iamiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/inspector (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/inspector/inspectoriface  [no test files]
?       github.com/aws/aws-sdk-go/service/iot   [no test files]
?       github.com/aws/aws-sdk-go/service/iot/iotiface  [no test files]
?       github.com/aws/aws-sdk-go/service/iot1clickdevicesservice   [no test files]
?       github.com/aws/aws-sdk-go/service/iot1clickdevicesservice/iot1clickdevicesserviceiface  [no test files]
?       github.com/aws/aws-sdk-go/service/iot1clickprojects [no test files]
?       github.com/aws/aws-sdk-go/service/iot1clickprojects/iot1clickprojectsiface  [no test files]
?       github.com/aws/aws-sdk-go/service/iotanalytics  [no test files]
?       github.com/aws/aws-sdk-go/service/iotanalytics/iotanalyticsiface    [no test files]
ok      github.com/aws/aws-sdk-go/service/iotdataplane  (cached)
?       github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface    [no test files]
?       github.com/aws/aws-sdk-go/service/iotevents [no test files]
?       github.com/aws/aws-sdk-go/service/iotevents/ioteventsiface  [no test files]
?       github.com/aws/aws-sdk-go/service/ioteventsdata [no test files]
?       github.com/aws/aws-sdk-go/service/ioteventsdata/ioteventsdataiface  [no test files]
?       github.com/aws/aws-sdk-go/service/iotjobsdataplane  [no test files]
?       github.com/aws/aws-sdk-go/service/iotjobsdataplane/iotjobsdataplaneifac[no test files]
?       github.com/aws/aws-sdk-go/service/iotthingsgraph    [no test files]
?       github.com/aws/aws-sdk-go/service/iotthingsgraph/iotthingsgraphiface    [no test files]
?       github.com/aws/aws-sdk-go/service/kafka [no test files]
?       github.com/aws/aws-sdk-go/service/kafka/kafkaiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/kinesis   5.822s
?       github.com/aws/aws-sdk-go/service/kinesis/kinesisiface  [no test files]
?       github.com/aws/aws-sdk-go/service/kinesisanalytics  [no test files]
?       github.com/aws/aws-sdk-go/service/kinesisanalytics/kinesisanalyticsifac[no test files]
?       github.com/aws/aws-sdk-go/service/kinesisanalyticsv2    [no test files]
?       github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/kinesisanalyticsv2iface    [no test files]
?       github.com/aws/aws-sdk-go/service/kinesisvideo  [no test files]
?       github.com/aws/aws-sdk-go/service/kinesisvideo/kinesisvideoiface    [no test files]
?       github.com/aws/aws-sdk-go/service/kinesisvideoarchivedmedia [no test files]
?       github.com/aws/aws-sdk-go/service/kinesisvideoarchivedmedia/kinesisvideoarchivedmediaiface  [no test files]
?       github.com/aws/aws-sdk-go/service/kinesisvideomedia [no test files]
?       github.com/aws/aws-sdk-go/service/kinesisvideomedia/kinesisvideomediaiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/kms   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/kms/kmsiface  [no test files]
?       github.com/aws/aws-sdk-go/service/lakeformation [no test files]
?       github.com/aws/aws-sdk-go/service/lakeformation/lakeformationiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/lambda    (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/lambda/lambdaiface    [no test files]
ok      github.com/aws/aws-sdk-go/service/lexmodelbuildingservice   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/lexmodelbuildingservice/lexmodelbuildingserviceiface  [no test files]
?       github.com/aws/aws-sdk-go/service/lexruntimeservice [no test files]
?       github.com/aws/aws-sdk-go/service/lexruntimeservice/lexruntimeserviceiface  [no test files]
?       github.com/aws/aws-sdk-go/service/licensemanager    [no test files]
?       github.com/aws/aws-sdk-go/service/licensemanager/licensemanageriface    [no test files]
?       github.com/aws/aws-sdk-go/service/lightsail [no test files]
?       github.com/aws/aws-sdk-go/service/lightsail/lightsailiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/machinelearning   (cached)
?       github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface  [no test files]
?       github.com/aws/aws-sdk-go/service/macie [no test files]
?       github.com/aws/aws-sdk-go/service/macie/macieiface  [no test files]
?       github.com/aws/aws-sdk-go/service/managedblockchain [no test files]
?       github.com/aws/aws-sdk-go/service/managedblockchain/managedblockchainiface  [no test files]
?       github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics  [no test files]
?       github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface    [no test files]
?       github.com/aws/aws-sdk-go/service/marketplaceentitlementservice [no test files]
?       github.com/aws/aws-sdk-go/service/marketplaceentitlementservice/marketplaceentitlementserviceiface  [no test files]
?       github.com/aws/aws-sdk-go/service/marketplacemetering   [no test files]
?       github.com/aws/aws-sdk-go/service/marketplacemetering/marketplacemeteringiface  [no test files]
?       github.com/aws/aws-sdk-go/service/mediaconnect  [no test files]
?       github.com/aws/aws-sdk-go/service/mediaconnect/mediaconnectiface    [no test files]
?       github.com/aws/aws-sdk-go/service/mediaconvert  [no test files]
?       github.com/aws/aws-sdk-go/service/mediaconvert/mediaconvertiface    [no test files]
?       github.com/aws/aws-sdk-go/service/medialive [no test files]
?       github.com/aws/aws-sdk-go/service/medialive/medialiveiface  [no test files]
?       github.com/aws/aws-sdk-go/service/mediapackage  [no test files]
?       github.com/aws/aws-sdk-go/service/mediapackage/mediapackageiface    [no test files]
?       github.com/aws/aws-sdk-go/service/mediapackagevod   [no test files]
?       github.com/aws/aws-sdk-go/service/mediapackagevod/mediapackagevodiface  [no test files]
?       github.com/aws/aws-sdk-go/service/mediastore    [no test files]
?       github.com/aws/aws-sdk-go/service/mediastore/mediastoreiface    [no test files]
?       github.com/aws/aws-sdk-go/service/mediastoredata    [no test files]
?       github.com/aws/aws-sdk-go/service/mediastoredata/mediastoredataiface    [no test files]
?       github.com/aws/aws-sdk-go/service/mediatailor   [no test files]
?       github.com/aws/aws-sdk-go/service/mediatailor/mediatailoriface  [no test files]
?       github.com/aws/aws-sdk-go/service/migrationhub  [no test files]
?       github.com/aws/aws-sdk-go/service/migrationhub/migrationhubiface    [no test files]
?       github.com/aws/aws-sdk-go/service/mobile    [no test files]
?       github.com/aws/aws-sdk-go/service/mobile/mobileiface    [no test files]
?       github.com/aws/aws-sdk-go/service/mobileanalytics   [no test files]
?       github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface  [no test files]
?       github.com/aws/aws-sdk-go/service/mq    [no test files]
?       github.com/aws/aws-sdk-go/service/mq/mqiface    [no test files]
?       github.com/aws/aws-sdk-go/service/mturk [no test files]
?       github.com/aws/aws-sdk-go/service/mturk/mturkiface  [no test files]
?       github.com/aws/aws-sdk-go/service/neptune   [no test files]
?       github.com/aws/aws-sdk-go/service/neptune/neptuneiface  [no test files]
?       github.com/aws/aws-sdk-go/service/opsworks  [no test files]
?       github.com/aws/aws-sdk-go/service/opsworks/opsworksiface    [no test files]
?       github.com/aws/aws-sdk-go/service/opsworkscm    [no test files]
?       github.com/aws/aws-sdk-go/service/opsworkscm/opsworkscmiface    [no test files]
ok      github.com/aws/aws-sdk-go/service/organizations (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/organizations/organizationsiface  [no test files]
?       github.com/aws/aws-sdk-go/service/personalize   [no test files]
?       github.com/aws/aws-sdk-go/service/personalize/personalizeiface  [no test files]
?       github.com/aws/aws-sdk-go/service/personalizeevents [no test files]
?       github.com/aws/aws-sdk-go/service/personalizeevents/personalizeeventsiface  [no test files]
?       github.com/aws/aws-sdk-go/service/personalizeruntime    [no test files]
?       github.com/aws/aws-sdk-go/service/personalizeruntime/personalizeruntimeiface    [no test files]
?       github.com/aws/aws-sdk-go/service/pi    [no test files]
?       github.com/aws/aws-sdk-go/service/pi/piiface    [no test files]
?       github.com/aws/aws-sdk-go/service/pinpoint  [no test files]
?       github.com/aws/aws-sdk-go/service/pinpoint/pinpointiface    [no test files]
?       github.com/aws/aws-sdk-go/service/pinpointemail [no test files]
?       github.com/aws/aws-sdk-go/service/pinpointemail/pinpointemailiface  [no test files]
?       github.com/aws/aws-sdk-go/service/pinpointsmsvoice  [no test files]
?       github.com/aws/aws-sdk-go/service/pinpointsmsvoice/pinpointsmsvoiceifac[no test files]
ok      github.com/aws/aws-sdk-go/service/polly (cached)
?       github.com/aws/aws-sdk-go/service/polly/pollyiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/pricing   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/pricing/pricingiface  [no test files]
?       github.com/aws/aws-sdk-go/service/quicksight    [no test files]
?       github.com/aws/aws-sdk-go/service/quicksight/quicksightiface    [no test files]
?       github.com/aws/aws-sdk-go/service/ram   [no test files]
?       github.com/aws/aws-sdk-go/service/ram/ramiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/rds   (cached)
?       github.com/aws/aws-sdk-go/service/rds/rdsiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/rds/rdsutils  (cached)
?       github.com/aws/aws-sdk-go/service/rdsdataservice    [no test files]
?       github.com/aws/aws-sdk-go/service/rdsdataservice/rdsdataserviceiface    [no test files]
?       github.com/aws/aws-sdk-go/service/redshift  [no test files]
?       github.com/aws/aws-sdk-go/service/redshift/redshiftiface    [no test files]
ok      github.com/aws/aws-sdk-go/service/rekognition   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/rekognition/rekognitioniface  [no test files]
?       github.com/aws/aws-sdk-go/service/resourcegroups    [no test files]
?       github.com/aws/aws-sdk-go/service/resourcegroups/resourcegroupsiface    [no test files]
?       github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi  [no test files]
?       github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/resourcegroupstaggingapiiface    [no test files]
?       github.com/aws/aws-sdk-go/service/robomaker [no test files]
?       github.com/aws/aws-sdk-go/service/robomaker/robomakeriface  [no test files]
ok      github.com/aws/aws-sdk-go/service/route53   (cached)
?       github.com/aws/aws-sdk-go/service/route53/route53iface  [no test files]
?       github.com/aws/aws-sdk-go/service/route53domains    [no test files]
?       github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface    [no test files]
?       github.com/aws/aws-sdk-go/service/route53resolver   [no test files]
?       github.com/aws/aws-sdk-go/service/route53resolver/route53resolveriface  [no test files]
ok      github.com/aws/aws-sdk-go/service/s3    5.261s
ok      github.com/aws/aws-sdk-go/service/s3/s3crypto   0.043s
?       github.com/aws/aws-sdk-go/service/s3/s3iface    [no test files]
ok      github.com/aws/aws-sdk-go/service/s3/s3manager  3.235s
?       github.com/aws/aws-sdk-go/service/s3/s3manager/s3manageriface   [no test files]
?       github.com/aws/aws-sdk-go/service/s3control [no test files]
?       github.com/aws/aws-sdk-go/service/s3control/s3controliface  [no test files]
?       github.com/aws/aws-sdk-go/service/sagemaker [no test files]
?       github.com/aws/aws-sdk-go/service/sagemaker/sagemakeriface  [no test files]
?       github.com/aws/aws-sdk-go/service/sagemakerruntime  [no test files]
?       github.com/aws/aws-sdk-go/service/sagemakerruntime/sagemakerruntimeifac[no test files]
ok      github.com/aws/aws-sdk-go/service/secretsmanager    (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/secretsmanager/secretsmanageriface    [no test files]
?       github.com/aws/aws-sdk-go/service/securityhub   [no test files]
?       github.com/aws/aws-sdk-go/service/securityhub/securityhubiface  [no test files]
?       github.com/aws/aws-sdk-go/service/serverlessapplicationrepository   [no test files]
?       github.com/aws/aws-sdk-go/service/serverlessapplicationrepository/serverlessapplicationrepositoryiface  [no test files]
?       github.com/aws/aws-sdk-go/service/servicecatalog    [no test files]
?       github.com/aws/aws-sdk-go/service/servicecatalog/servicecatalogiface    [no test files]
?       github.com/aws/aws-sdk-go/service/servicediscovery  [no test files]
?       github.com/aws/aws-sdk-go/service/servicediscovery/servicediscoveryifac[no test files]
?       github.com/aws/aws-sdk-go/service/servicequotas [no test files]
?       github.com/aws/aws-sdk-go/service/servicequotas/servicequotasiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/ses   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/ses/sesiface  [no test files]
?       github.com/aws/aws-sdk-go/service/sfn   [no test files]
?       github.com/aws/aws-sdk-go/service/sfn/sfniface  [no test files]
?       github.com/aws/aws-sdk-go/service/shield    [no test files]
?       github.com/aws/aws-sdk-go/service/shield/shieldiface    [no test files]
?       github.com/aws/aws-sdk-go/service/signer    [no test files]
?       github.com/aws/aws-sdk-go/service/signer/signeriface    [no test files]
ok      github.com/aws/aws-sdk-go/service/simpledb  (cached)
?       github.com/aws/aws-sdk-go/service/simpledb/simpledbiface    [no test files]
?       github.com/aws/aws-sdk-go/service/sms   [no test files]
?       github.com/aws/aws-sdk-go/service/sms/smsiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/snowball  (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/snowball/snowballiface    [no test files]
?       github.com/aws/aws-sdk-go/service/sns   [no test files]
?       github.com/aws/aws-sdk-go/service/sns/snsiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/sqs   (cached)
?       github.com/aws/aws-sdk-go/service/sqs/sqsiface  [no test files]
?       github.com/aws/aws-sdk-go/service/ssm   [no test files]
?       github.com/aws/aws-sdk-go/service/ssm/ssmiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/storagegateway    (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface    [no test files]
ok      github.com/aws/aws-sdk-go/service/sts   (cached)
?       github.com/aws/aws-sdk-go/service/sts/stsiface  [no test files]
?       github.com/aws/aws-sdk-go/service/support   [no test files]
?       github.com/aws/aws-sdk-go/service/support/supportiface  [no test files]
?       github.com/aws/aws-sdk-go/service/swf   [no test files]
?       github.com/aws/aws-sdk-go/service/swf/swfiface  [no test files]
?       github.com/aws/aws-sdk-go/service/textract  [no test files]
?       github.com/aws/aws-sdk-go/service/textract/textractiface    [no test files]
?       github.com/aws/aws-sdk-go/service/transcribeservice [no test files]
?       github.com/aws/aws-sdk-go/service/transcribeservice/transcribeserviceiface  [no test files]
?       github.com/aws/aws-sdk-go/service/transfer  [no test files]
?       github.com/aws/aws-sdk-go/service/transfer/transferiface    [no test files]
?       github.com/aws/aws-sdk-go/service/translate [no test files]
?       github.com/aws/aws-sdk-go/service/translate/translateiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/waf   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/waf/wafiface  [no test files]
ok      github.com/aws/aws-sdk-go/service/wafregional   (cached) [no tests to run]
?       github.com/aws/aws-sdk-go/service/wafregional/wafregionaliface  [no test files]
?       github.com/aws/aws-sdk-go/service/workdocs  [no test files]
?       github.com/aws/aws-sdk-go/service/workdocs/workdocsiface    [no test files]
?       github.com/aws/aws-sdk-go/service/worklink  [no test files]
?       github.com/aws/aws-sdk-go/service/worklink/worklinkiface    [no test files]
?       github.com/aws/aws-sdk-go/service/workmail  [no test files]
?       github.com/aws/aws-sdk-go/service/workmail/workmailiface    [no test files]
?       github.com/aws/aws-sdk-go/service/workspaces    [no test files]
?       github.com/aws/aws-sdk-go/service/workspaces/workspacesiface    [no test files]
?       github.com/aws/aws-sdk-go/service/xray  [no test files]
?       github.com/aws/aws-sdk-go/service/xray/xrayiface    [no test files]
FAIL

Cause

When a Go module's tests are run from outside the module (i.e. as a dependency), the tests run in a read-only directory in the module cache. This breaks tests that try to write files to their current file tree. Tests that need to be able to create files, should do so using os.TempDir or io/ioutil.TempDir.

diehlaws commented 5 years ago

Hi @jamie-digital, thanks for bringing this to our attention. I am able to reproduce the described behavior and have brought this up with the rest of the team, we will work toward resolving this soon.