Commit 2155780e authored by Robert Czechowski's avatar Robert Czechowski

Fix tests after changes in cleanup functions

parent e13a9c1d
Pipeline #1180 passed with stages
in 23 minutes and 44 seconds
......@@ -935,11 +935,11 @@ fn check_cleanup() {
let csrf = &content[pos + 39..pos + 49];
let params = [("csrf_token", csrf)];
let mut resp =
client.post("http://localhost:8091/admin/cleanup").form(&params).send().unwrap();
client.post("http://localhost:8091/admin/cleanup/hard").form(&params).send().unwrap();
assert_eq!(resp.status(), StatusCode::OK);
let content = resp.text().unwrap();
assert_eq!(content, "{\"status\":\"ok\",\"n_users\":1,\"n_groups\":0,\"n_teachers\":0,\"n_other\":0}\n");
assert_eq!(content, "{\"status\":\"ok\",\"n_user\":1,\"n_group\":0,\"n_teacher\":0,\"n_other\":0}\n");
// Check old account no longer existing
let mut resp = client.get("http://localhost:8091/admin/user/2").send().unwrap();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment