Commit 5ba19a58 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Test that only an enabled admin can set a canonical-name aux-item on

the system.
parent c40d9bed
......@@ -22,6 +22,7 @@
# Please report bugs at http://bugzilla.lysator.liu.se/.
# Test inheritance of aux items.
# Test who can add a canonical-name item on the server.
#
# Persons:
# 5: admin
......@@ -241,10 +242,29 @@ client_expect 8 ":18 15 6 $any_time 7 0 6 0 3 { 0 1 6 2 2 5 } 1 { 1 10203 7 $any
client_expect 9 ":18 15 6 $any_time 7 0 6 0 3 { 0 1 6 2 2 5 } 1 { 1 10203 7 $any_time 01000000 0 [holl "forever more"] }"
simple_expect "=1040 6"
# Kalle attempts to add a canonical-name aux item on the server.
talk_to client 6
send "1041 95 0 { } 1 { 31 00000000 1 [holl "kom.lysator.liu.se:4444"] }\n"
simple_expect "%1041 12 0"
# admin attempts to add a canonical-name aux item on the server,
# without enabling.
talk_to client 5
send "1042 42 0\n"
simple_expect "=1042"
send "1043 95 0 { } 1 { 31 00000000 1 [holl "kom.lysator.liu.se:4444"] }\n"
simple_expect "%1043 12 0"
# admin succeeds once he has enabled.
send "1044 42 255\n"
simple_expect "=1044"
send "1045 95 0 { } 1 { 31 00000000 1 [holl "kom.lysator.liu.se:4444"] }\n"
simple_expect "=1045"
# Shut down.
talk_to client 5
send "1041 44 0\n"
simple_expect "=1041"
send "1046 44 0\n"
simple_expect "=1046"
client_death 5
client_death 6
client_death 7
......
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