mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 14:30:28 -05:00
* test: move compatibility tests into this repo * fix: add StatisticValues parsing to CloudWatchMetricsJsonHandler * fix: add missing required abstract methods to EmulatorConfig in EventBridgeSchedulerIntegrationTest * test: add sdk tests for multipart S3 copy coverage * fix: cover and fix smithy cbor and multipart s3 copy regressions * test: migrate more test coverage to new folder * test: add missing ec2 expectation in healthcheck test * docs: update READMEs in `./compatibility-tests`
27 lines
619 B
Go
27 lines
619 B
Go
package tests
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"floci-sdk-test-go/internal/testutil"
|
|
|
|
"github.com/aws/aws-sdk-go-v2/aws"
|
|
"github.com/aws/aws-sdk-go-v2/service/sts"
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestSTS(t *testing.T) {
|
|
ctx := context.Background()
|
|
svc := testutil.STSClient()
|
|
|
|
t.Run("GetCallerIdentity", func(t *testing.T) {
|
|
r, err := svc.GetCallerIdentity(ctx, &sts.GetCallerIdentityInput{})
|
|
require.NoError(t, err)
|
|
assert.NotEmpty(t, aws.ToString(r.Account))
|
|
assert.NotEmpty(t, aws.ToString(r.Arn))
|
|
assert.NotEmpty(t, aws.ToString(r.UserId))
|
|
})
|
|
}
|