added an admin test

This commit is contained in:
jusax23 2023-03-29 13:12:39 +02:00
parent 0ac84da902
commit 3a6280ceca
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41

View file

@ -138,6 +138,30 @@ const list = [
server: "localhost:7224",
accountKey: accountKey + "lol"
}, "error", "auth");
}], ["admin", async (req) => {
await req({
"authorization": `Digest name=${name1} server=localhost:7224 accountKey=${accountKey}`
}, "getAccounts", {}, "ok", [
{
accID: 1,
rights: 65535,
name: "testUser1",
viewable: true,
deleted: false,
maxRooms: 2,
maxRoomSize: 10,
maxUsersPerRoom: 2
}, {
accID: null,
rights: 3,
name: "testUser2",
viewable: true,
deleted: true,
maxRooms: 2,
maxRoomSize: 10,
maxUsersPerRoom: 2
}
]);
}], ["room Owner", async (req) => {
await req({
"authorization": `Digest name=${name1} server=localhost:7224 accountKey=${accountKey}`