Cleanup integ. tests, remove Debug()
This commit is contained in:
@@ -98,7 +98,6 @@ func TestChartUpdateForbidden(t *testing.T) {
|
||||
m := h.repoMakeChart(ns, "some-chart")
|
||||
|
||||
h.apiInit().
|
||||
Debug().
|
||||
Post(fmt.Sprintf("/namespace/%d/chart/%d", ns.ID, m.ID)).
|
||||
FormData("name", "changed-name").
|
||||
Expect(t).
|
||||
|
||||
@@ -98,7 +98,6 @@ func TestModuleUpdateForbidden(t *testing.T) {
|
||||
m := h.repoMakeModule(ns, "some-module")
|
||||
|
||||
h.apiInit().
|
||||
Debug().
|
||||
Post(fmt.Sprintf("/namespace/%d/module/%d", ns.ID, m.ID)).
|
||||
FormData("name", "changed-name").
|
||||
Expect(t).
|
||||
|
||||
@@ -85,7 +85,6 @@ func TestNamespaceUpdateForbidden(t *testing.T) {
|
||||
ns := h.repoMakeNamespace("some-namespace")
|
||||
|
||||
h.apiInit().
|
||||
Debug().
|
||||
Post(fmt.Sprintf("/namespace/%d", ns.ID)).
|
||||
FormData("name", "changed-name").
|
||||
Expect(t).
|
||||
|
||||
@@ -98,7 +98,6 @@ func TestPageUpdateForbidden(t *testing.T) {
|
||||
m := h.repoMakePage(ns, "some-page")
|
||||
|
||||
h.apiInit().
|
||||
Debug().
|
||||
Post(fmt.Sprintf("/namespace/%d/page/%d", ns.ID, m.ID)).
|
||||
FormData("title", "changed-name").
|
||||
Expect(t).
|
||||
|
||||
@@ -102,7 +102,6 @@ func TestRoleUpdate(t *testing.T) {
|
||||
newName := "updated-" + string(rand.Bytes(10))
|
||||
|
||||
h.apiInit().
|
||||
Debug().
|
||||
Put(fmt.Sprintf("/roles/%d", u.ID)).
|
||||
FormData("name", newName).
|
||||
Expect(t).
|
||||
|
||||
@@ -106,7 +106,6 @@ func TestUserUpdate(t *testing.T) {
|
||||
newEmail := "updated-" + u.Email
|
||||
|
||||
h.apiInit().
|
||||
Debug().
|
||||
Put(fmt.Sprintf("/users/%d", u.ID)).
|
||||
FormData("email", newEmail).
|
||||
Expect(t).
|
||||
|
||||
Reference in New Issue
Block a user