github.com/webdestroya/awsmocker@v0.2.6/mocks_sts.go (about) 1 package awsmocker 2 3 import ( 4 "fmt" 5 "net/http" 6 ) 7 8 var ( 9 MockStsGetCallerIdentityValid = &MockedEndpoint{ 10 Request: &MockedRequest{ 11 Service: "sts", 12 Action: "GetCallerIdentity", 13 }, 14 Response: &MockedResponse{ 15 StatusCode: http.StatusOK, 16 Encoding: ResponseEncodingXML, 17 Body: map[string]interface{}{ 18 "Account": DefaultAccountId, 19 "Arn": fmt.Sprintf("arn:aws:iam::%s:user/fakeuser", DefaultAccountId), 20 "UserId": "AKIAI44QH8DHBEXAMPLE", 21 }, 22 }, 23 } 24 )