Commit 8e1b282b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Don't expect to be able to create a person with an faq-text. Add the

faq-text using a modify-conf-info request instead.  Test that creation
of a new person with a faq-text item really fails.
parent 8fc9c250
......@@ -209,9 +209,10 @@ simple_expect "=1028 11 { 0 5 6 7 8 9 11 12 13 14 15 }"
# AUXITEM: All aux-items that can be set on letterboxes should be set
# on person 8, unless the aux-item has semantics that would interfere
# with the tests below.
send "1029 89 [holl "Kelly Talisman"] [holl "the stars"] 00000000 11 { 3 00000000 0 [holl "C6 My Creator"] 3 00000000 0 [holl "C7 Slightly offensive name, huh"] 8 00000000 0 [holl "E-mail:kelly@hotbox.com"] 9 00000000 0 [holl "compface must die"] 10 00000000 0\n"
send "[holl "Air"] 12 00000000 0 [holl "PGP public key"] 13 00000000 0 [holl "kelly@hotbox.com"] 30 00000000 0 [holl "2 text/plain"] 30 00000000 0 [holl "2 x-kom/basic"] 33 00000000 1 1H0 14 00000000 0 [holl "3"] }\n"
# with the tests below. Some items must be added once the person is created.
# Do that below.
send "1029 89 [holl "Kelly Talisman"] [holl "the stars"] 00000000 10 { 3 00000000 0 [holl "C6 My Creator"] 3 00000000 0 [holl "C7 Slightly offensive name, huh"] 8 00000000 0 [holl "E-mail:kelly@hotbox.com"] 9 00000000 0 [holl "compface must die"] 10 00000000 0\n"
send "[holl "Air"] 12 00000000 0 [holl "PGP public key"] 13 00000000 0 [holl "kelly@hotbox.com"] 30 00000000 0 [holl "2 text/plain"] 30 00000000 0 [holl "2 x-kom/basic"] 33 00000000 1 1H0 }\n"
simple_expect "=1029 8"
send "1030 62 8 [holl "the stars"] 0\n"
simple_expect ":2 9 8 2"
......@@ -220,6 +221,13 @@ talk_to client 0
simple_expect ":2 9 8 2"
talk_to client 1
# AUXITEM: Add items that cannot be added at the time of creation.
# (indent to avoid renumbering)
if {1} {
send "990 93 8 0 { } 1 { 14 00000000 0 [holl "3"] }\n"
simple_expect "=990"
}
send "1031 86 [holl "New-style text 4"] 2 { 0 7 15 6 } 0 { }\n"
# No async message; person 8 isn't a member of the conferences this
# text goes to.
......@@ -1562,15 +1570,25 @@ simple_expect "%1432 2 0"
send "1433 124\n"
simple_expect "%1433 2 0"
# Disconnect all but the first session
# Test creation of a person with a faq-text aux-item. This should fail
# when you are not logged on.
talk_to client 2
send "1434 55 4\n"
send "1434 1\n"
simple_expect "=1434"
send "1435 89 [holl "Kelly Talisman II"] [holl "the stars"] 00000000 11 { 3 00000000 0 [holl "C6 My Creator"] 3 00000000 0 [holl "C7 Slightly offensive name, huh"] 8 00000000 0 [holl "E-mail:kelly@hotbox.com"] 9 00000000 0 [holl "compface must die"] 10 00000000 0\n"
send "[holl "Air"] 12 00000000 0 [holl "PGP public key"] 13 00000000 0 [holl "kelly@hotbox.com"] 30 00000000 0 [holl "2 text/plain"] 30 00000000 0 [holl "2 x-kom/basic"] 33 00000000 1 1H0 14 00000000 0 [holl "3"] }\n"
simple_expect "%1435 48 10"
# Disconnect all but the first session
talk_to client 2
send "1436 55 4\n"
simple_expect "=1436"
client_death 2
talk_to client 1
send "1435 55 2\n"
simple_expect "=1435"
send "1437 55 2\n"
simple_expect "=1437"
simple_expect ":2 13 8 2"
client_death 1
......@@ -1578,20 +1596,20 @@ client_death 1
talk_to client 0
simple_expect ":2 13 8 2"
send "1436 62 5 [holl "bar"] 0\n"
send "1438 62 5 [holl "bar"] 0\n"
simple_expect ":2 13 6 1"
simple_expect ":2 9 5 1"
simple_expect "=1436"
simple_expect "=1438"
send "1437 42 255\n"
simple_expect "=1437" "42=enable succeeded"
send "1438 43\n"
send "1439 42 255\n"
simple_expect "=1439" "42=enable succeeded"
send "1440 43\n"
simple_expect ":0 7"
simple_expect ":0 7"
simple_expect "=1438"
simple_expect "=1440"
talk_to client 0
send "1439 44 0\n"
simple_expect "=1439" "44=shutdown-kom succeeded"
send "1441 44 0\n"
simple_expect "=1441" "44=shutdown-kom succeeded"
client_death 0
lyskomd_death
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