From 43d3ece8326ef0cb6fe6ed1929233ea7fa12d2af Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 24 Aug 2025 19:32:24 -0700 Subject: [PATCH] Update sts_service_test.go --- weed/iam/sts/sts_service_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/weed/iam/sts/sts_service_test.go b/weed/iam/sts/sts_service_test.go index cbd0ed017..027080845 100644 --- a/weed/iam/sts/sts_service_test.go +++ b/weed/iam/sts/sts_service_test.go @@ -68,7 +68,6 @@ func TestSTSServiceInitialization(t *testing.T) { func TestAssumeRoleWithWebIdentity(t *testing.T) { service := setupTestSTSService(t) - tests := []struct { name string roleArn string @@ -157,7 +156,6 @@ func TestAssumeRoleWithWebIdentity(t *testing.T) { func TestAssumeRoleWithLDAP(t *testing.T) { service := setupTestSTSService(t) - tests := []struct { name string roleArn string @@ -215,7 +213,6 @@ func TestSessionTokenValidation(t *testing.T) { service := setupTestSTSService(t) ctx := context.Background() - // First, create a session request := &AssumeRoleWithWebIdentityRequest{ RoleArn: "arn:seaweed:iam::role/TestRole", @@ -273,7 +270,6 @@ func TestSessionRevocation(t *testing.T) { service := setupTestSTSService(t) ctx := context.Background() - // Create a session first request := &AssumeRoleWithWebIdentityRequest{ RoleArn: "arn:seaweed:iam::role/TestRole", @@ -311,7 +307,6 @@ func setupTestSTSService(t *testing.T) *STSService { MaxSessionLength: time.Hour * 12, Issuer: "test-sts", SigningKey: []byte("test-signing-key-32-characters-long"), - } err := service.Initialize(config)