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(schema): improve test clarity with null byte comments
Dmitry Ng930830e74214
diff --git a/backend/pkg/schema/schema_test.go b/backend/pkg/schema/schema_test.goindex 43b301b8..3252c05b 100644--- a/backend/pkg/schema/schema_test.go+++ b/backend/pkg/schema/schema_test.go@@ -57,7 +57,8 @@ func TestSchemaValid(t *testing.T) {wantErr: false,},{- name: "invalid schema with bad ref",+ name: "invalid schema with bad ref containing null byte",+ // Null byte (\x00) in URI should be rejected by gojsonschema validatorschema: Schema{Type: Type{Ref: "not-a-valid-ref-uri\x00"}},wantErr: true,},@@ -100,8 +101,9 @@ func TestSchemaGetValidator(t *testing.T) {assert.NotNil(t, v)})- t.Run("invalid schema with bad ref fails", func(t *testing.T) {+ t.Run("invalid schema with bad ref (null byte) fails", func(t *testing.T) {t.Parallel()+ // Null byte in URI should be rejected by the validators := Schema{Type: Type{Ref: "not-a-valid-ref-uri\x00"},}