Browse Source

Update sts_service_test.go

pull/7160/head
chrislu 1 month ago
parent
commit
43d3ece832
  1. 5
      weed/iam/sts/sts_service_test.go

5
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)

Loading…
Cancel
Save