permission_tests.io 1.18 KB
Newer Older
uhflp's avatar
uhflp committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Tests for errors in the permission system
> add-olympic-sport eishockey;eishockey
Error, ...
> list-olympic-sports
Error, ...
> add-ioc-code 111;arg;argentinien;1920
Error, ...
> login-admin tester;123123123
Error, ...
> logout-admin
Error, ...
> add-admin Vorname;Nachname;kur;123123123
Error, ...
> add-admin Vorname;Nachname;tester;zuKurz
Error, ...
> add-admin Vorname;Nachname;tester;123123123
OK
> login-admin kur;123123123
Error, ...
> login-admin tester;zuKurz
Error, ...
> login-admin tester;123123120
Error, ...
> login-admin teste;123123123
Error, ...
> login-admin tester;123123123
OK
> login-admin tester;123123123
Error, ...
> add-olympic-sport eishockey;eishockey
OK
> list-olympic-sports
eishockey eishockey
> add-ioc-code 111;arg;argentinien;1920
OK
> list-ioc-codes
1920 111 arg argentinien
> logout-admin
OK
> logout-admin
Error, ...
> add-athlete 0001;max;mustermann;argentinien;eishockey;eishockey
Error, ...
> login-admin tester;123123123
OK
> add-athlete 0001;max;mustermann;argentinien;eishockey;eishockey
OK
uhflp's avatar
uhflp committed
48
49
50
51
52
53
54
55
56
57
58
59
> reset
OK
> logout
Error, ...
> login-admin tester;123123123
Error, ...
> add-admin Vorname;Nachname;tester;123123123
OK
> login-admin tester;123123123
OK
> list-ioc-codes