second first commit

This commit is contained in:
Zakaria
2026-09-22 08:57:00 -04:00
parent e88d7e2ff3
commit 0aef7fb2d8
4766 changed files with 1236986 additions and 0 deletions
@@ -0,0 +1,26 @@
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))
})
}