added custom insertion id regex check

This commit is contained in:
Gani Georgiev committed 2022-08-11 10:29:01 +03:00
1 parent ff935a39a1
commit 147344546b
9 files changed
+37 -4

No files matched your search

+7 -1
View File
@@ -412,7 +412,13 @@ func TestAdminUpsertWithCustomId(t *testing.T) {
true,
},
{
"id = 15 chars",
"id = 15 chars (invalid chars)",
`{"id":"a@3456789012345"}`,
&models.Admin{},
true,
},
{
"id = 15 chars (valid chars)",
`{"id":"a23456789012345"}`,
&models.Admin{},
false,