]> arthur.barton.de Git - ngircd-alex.git/blob - src/testsuite/kick-test.e
Always cloak client hostname, if needed
[ngircd-alex.git] / src / testsuite / kick-test.e
1 spawn telnet localhost 6789
2 expect {
3        timeout { exit 1 }
4        "Connected"
5 }
6
7 send "nick nick\r"
8 send "user user . . :User\r"
9 expect {
10        timeout { exit 1 }
11        "376"
12 }
13
14 send "kick #Channel nick\r"
15 expect {
16        timeout { exit 1 }
17        "403"
18 }
19
20 send "join #Channel\r"
21
22 send "kick #Channel nick\r"
23 expect {
24        timeout { exit 1 }
25        "@* KICK #Channel nick :nick"
26 }
27
28 send "join #Channel\r"
29
30 send "kick #Channel nick :reason\r"
31 expect {
32        timeout { exit 1 }
33        "@* KICK #Channel nick :reason"
34 }
35
36 send "join #Channel,#Channel2\r"
37
38 send "kick #Channel,#Channel2 nick\r"
39 expect {
40        timeout { exit 1 }
41        "461"
42 }
43
44 send "kick #Channel,#Channel2,#NoExists,#NoExists nick1,nick,nick3,nick :reason\r"
45 expect {
46        timeout { exit 1 }
47        "401"
48 }
49 expect {
50        timeout { exit 1 }
51        "@* KICK #Channel2 nick :reason"
52 }
53 expect {
54        timeout { exit 1 }
55        "401"
56 }
57 expect {
58        timeout { exit 1 }
59        "403"
60 }
61
62 send "kick #Channel nick2,nick,nick3\r"
63 expect {
64        timeout { exit 1 }
65        "401"
66 }
67 expect {
68        timeout { exit 1 }
69        "@* KICK #Channel nick :nick"
70 }
71 expect {
72        timeout { exit 1 }
73        "401"
74 }
75
76 send "kick #Channel ,,\r"
77 expect {
78        timeout { exit 1 }
79        "401"
80 }
81 expect {
82        timeout { exit 1 }
83        "401"
84 }
85
86 send "kick ,, ,,,\r"
87 expect {
88        timeout { exit 1 }
89        "461"
90 }
91
92 send "kick ,, ,,\r"
93 expect {
94        timeout { exit 1 }
95        "401"
96 }
97 expect {
98        timeout { exit 1 }
99        "401"
100 }
101 expect {
102        timeout { exit 1 }
103        "401"
104 }
105
106 send "quit\r"
107 expect {
108        timeout { exit 1 }
109        "Connection closed"
110 }
111
112 # -eof-