Commit 56eb2566 authored by Alexander's avatar Alexander
Browse files

Add error-messages to permission_tests

parent 9d7da3e3
Tests for errors in the permission system
> add-olympic-sport eishockey;eishockey
Error, ...
Error, no one is logged in
> list-olympic-sports
Error, ...
Error, no one is logged in
> add-ioc-code 111;arg;argentinien;1920
Error, ...
Error, no one is logged in
> login-admin tester;123123123
Error, ...
Error, unknown user
> logout-admin
Error, ...
Error, no one to log out
> add-admin vorname;nachname;kur;123123123
Error, ...
Error, user-name is too short
> add-admin vorname;nachname;tester;zukurz
Error, ...
Error, password is too short
> add-admin vorname;nachname;tester;123123123
OK
> login-admin kur;123123123
Error, ...
Error, unknown user
> login-admin tester;zukurz
Error, ...
Error, wrong password
> login-admin tester;123123120
Error, ...
Error, wrong password
> login-admin teste;123123123
Error, ...
Error, unknown user
> login-admin tester;123123123
OK
> login-admin tester;123123123
Error, ...
Error, you are already logged in
> add-olympic-sport eishockey;eishockey
OK
> list-olympic-sports
......@@ -38,9 +38,9 @@ OK
> logout-admin
OK
> logout-admin
Error, ...
Error, no one to log out
> add-athlete 0001;max;mustermann;argentinien;eishockey;eishockey
Error, ...
Error, no one is logged in
> login-admin tester;123123123
OK
> add-athlete 0001;max;mustermann;argentinien;eishockey;eishockey
......
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