检查点:保留项目标识失败用例与隔离数据库夹具修正
This commit is contained in:
1 parent
dcca17e371
commit
fd767b23c3
2 files changed
+16
-5
No files matched your search
@@ -102,6 +102,9 @@ func TestProjectLifecycleAPIRejectsInvalidInput(t *testing.T) {
|
||||
{http.MethodPost, "", `{"name":"` + strings.Repeat("a", 129) + `"}`},
|
||||
{http.MethodPut, "/project-b", `{"name":"名称","owner_id":"forged"}`},
|
||||
{http.MethodPut, "/project-b?ignored=1", `{"name":"名称"}`},
|
||||
{http.MethodPut, "/UPPERCASE", `{"name":"名称"}`},
|
||||
{http.MethodPut, "/" + strings.Repeat("a", 37), `{"name":"名称"}`},
|
||||
{http.MethodDelete, "/UPPERCASE", `{"confirmation":"UPPERCASE"}`},
|
||||
{http.MethodPut, "/project-b", strings.Repeat("x", 70*1024)},
|
||||
{http.MethodDelete, "/project-b", `{}`},
|
||||
{http.MethodDelete, "/project-b", `{"confirmation":"project-a"}`},
|
||||
|
||||
Reference in new issue
Block a user