fix: harden auth flows and align api contracts
This commit is contained in:
@@ -663,7 +663,7 @@ func TestPermissionHandler_DeletePermission_Success(t *testing.T) {
|
||||
|
||||
// If creation succeeded, try to delete
|
||||
if permID > 0 {
|
||||
resp2, _ := doDelete(server.URL + "/api/v1/permissions/" + strconv.Itoa(permID), token)
|
||||
resp2, _ := doDelete(server.URL+"/api/v1/permissions/"+strconv.Itoa(permID), token)
|
||||
defer resp2.Body.Close()
|
||||
assert.Equal(t, http.StatusOK, resp2.StatusCode, "should delete permission")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user