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