Skip to content

Commit

Permalink
Fix schemas validation in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Nov 19, 2024
1 parent f4d2270 commit 5cf74d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/security/tests/schemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ var upstreamEventSchema = getUpstreamEventSchema()
//nolint:deadcode,unused
func validateActivityDumpProtoSchema(t *testing.T, ad string) bool {
t.Helper()
return validateUrlSchema(t, ad, "file:///activity_dump_proto.schema.json")
return validateStringSchema(t, ad, "file:///activity_dump_proto.schema.json")
}

//nolint:deadcode,unused
func validateMessageSchema(t *testing.T, msg string) bool {
t.Helper()
if !validateUrlSchema(t, msg, "file:///message.schema.json") {
if !validateStringSchema(t, msg, "file:///message.schema.json") {
return false
}
return validateUrlSchema(t, msg, upstreamEventSchema)
Expand Down

0 comments on commit 5cf74d8

Please sign in to comment.