Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
test: shadow loop variable to prevent parallel subtest capture
mason50521b2681cd9959
diff --git a/backend/pkg/server/models/api_tokens_test.go b/backend/pkg/server/models/api_tokens_test.goindex a2dcf16a..0b9d8116 100644--- a/backend/pkg/server/models/api_tokens_test.go+++ b/backend/pkg/server/models/api_tokens_test.go@@ -24,6 +24,7 @@ func TestTokenStatusValid(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := tt.status.Valid()diff --git a/backend/pkg/server/models/assistants_test.go b/backend/pkg/server/models/assistants_test.goindex 80c4e66a..0a8c0527 100644--- a/backend/pkg/server/models/assistants_test.go+++ b/backend/pkg/server/models/assistants_test.go@@ -25,6 +25,7 @@ func TestAssistantStatusValid(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := tt.status.Valid()diff --git a/backend/pkg/server/models/flows_test.go b/backend/pkg/server/models/flows_test.goindex 7ce908d2..ace56c2e 100644--- a/backend/pkg/server/models/flows_test.go+++ b/backend/pkg/server/models/flows_test.go@@ -25,6 +25,7 @@ func TestFlowStatusValid(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := tt.status.Valid()@@ -146,6 +147,7 @@ func TestTaskStatusValid(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := tt.status.Valid()@@ -183,6 +185,7 @@ func TestSubtaskStatusValid(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := tt.status.Valid()@@ -220,6 +223,7 @@ func TestContainerStatusValid(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := tt.status.Valid()@@ -248,6 +252,7 @@ func TestContainerTypeValid(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := tt.ct.Valid()diff --git a/backend/pkg/server/models/init_test.go b/backend/pkg/server/models/init_test.goindex dee34153..b9eaf6de 100644--- a/backend/pkg/server/models/init_test.go+++ b/backend/pkg/server/models/init_test.go@@ -35,6 +35,7 @@ func TestStrongPasswordValidator(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := GetValidator().Var(tt.pw, "stpass")@@ -65,6 +66,7 @@ func TestEmailValidator(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := GetValidator().Var(tt.email, "vmail")@@ -94,6 +96,7 @@ func TestOAuthMinScopeValidator(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := GetValidator().Var(tt.scope, "oauth_min_scope")@@ -125,6 +128,7 @@ func TestSolidValidator(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := GetValidator().Var(tt.input, "solid")@@ -155,6 +159,7 @@ func TestSemverValidator(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := GetValidator().Var(tt.input, "semver")@@ -185,6 +190,7 @@ func TestSemverExValidator(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := GetValidator().Var(tt.input, "semverex")diff --git a/backend/pkg/server/models/prompts_test.go b/backend/pkg/server/models/prompts_test.goindex 8aa55b15..e954c6ec 100644--- a/backend/pkg/server/models/prompts_test.go+++ b/backend/pkg/server/models/prompts_test.go@@ -26,6 +26,7 @@ func TestPromptTypeValid(t *testing.T) {}for _, tt := range validTypes {+ tt := ttt.Run("valid_"+tt.name, func(t *testing.T) {t.Parallel()assert.NoError(t, tt.pt.Valid())@@ -42,6 +43,7 @@ func TestPromptTypeValid(t *testing.T) {}for _, tt := range invalidTypes {+ tt := ttt.Run("invalid_"+tt.name, func(t *testing.T) {t.Parallel()err := tt.pt.Valid()diff --git a/backend/pkg/server/models/providers_test.go b/backend/pkg/server/models/providers_test.goindex 3f79eea9..ceea628d 100644--- a/backend/pkg/server/models/providers_test.go+++ b/backend/pkg/server/models/providers_test.go@@ -27,6 +27,7 @@ func TestProviderTypeValid(t *testing.T) {}for _, tt := range validTypes {+ tt := ttt.Run("valid_"+tt.name, func(t *testing.T) {t.Parallel()assert.NoError(t, tt.pt.Valid())@@ -44,6 +45,7 @@ func TestProviderTypeValid(t *testing.T) {}for _, tt := range invalidTypes {+ tt := ttt.Run("invalid_"+tt.name, func(t *testing.T) {t.Parallel()err := tt.pt.Valid()diff --git a/backend/pkg/server/models/users_test.go b/backend/pkg/server/models/users_test.goindex 5d8a8c47..7c6fde29 100644--- a/backend/pkg/server/models/users_test.go+++ b/backend/pkg/server/models/users_test.go@@ -24,6 +24,7 @@ func TestUserStatusValid(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := tt.status.Valid()@@ -62,6 +63,7 @@ func TestUserTypeValid(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := tt.userType.Valid()@@ -119,6 +121,7 @@ func TestLoginValid(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := tt.login.Valid()@@ -196,6 +199,7 @@ func TestPasswordValid(t *testing.T) {}for _, tt := range tests {+ tt := ttt.Run(tt.name, func(t *testing.T) {t.Parallel()err := tt.pw.Valid()