added an admin test
This commit is contained in:
parent
0ac84da902
commit
3a6280ceca
1 changed files with 24 additions and 0 deletions
|
@ -138,6 +138,30 @@ const list = [
|
||||||
server: "localhost:7224",
|
server: "localhost:7224",
|
||||||
accountKey: accountKey + "lol"
|
accountKey: accountKey + "lol"
|
||||||
}, "error", "auth");
|
}, "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) => {
|
}], ["room Owner", async (req) => {
|
||||||
await req({
|
await req({
|
||||||
"authorization": `Digest name=${name1} server=localhost:7224 accountKey=${accountKey}`
|
"authorization": `Digest name=${name1} server=localhost:7224 accountKey=${accountKey}`
|
||||||
|
|
Loading…
Reference in a new issue