From aa64446186d489e8ba0ba36adfea5a9490966d97 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 15 Sep 2025 23:50:08 +0200 Subject: [PATCH] Add /reconnect testing. --- test.txt | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/test.txt b/test.txt index bb26b26..bf85a8d 100644 --- a/test.txt +++ b/test.txt @@ -25,9 +25,11 @@ 1,2 $ realname set to: [baz] 1,2 $ password set to: [bar] 1,2 $ port set to: [6697] + 1,2 $ connection_state set to: [connecting] 1,2 $ channels cleared 1,2 $ users cleared + 1,2 $ ?!?@? renames ? 1,2 $ users:me:user set to: [plom] 1,2 $ connection_state set to: [connected] @@ -106,6 +108,7 @@ 2 < :foo.bar.baz 372 foo :- Welcome! - 2 < :foo.bar.baz 372 foo :- (to this server) - 2 < :foo.bar.baz 376 foo :End of /MOTD command + 1,2 $ motd set to: 1,2 $ - Howdy! - 1,2 $ - Welcome! - @@ -131,5 +134,87 @@ > /disconnect 1,2 $ requesting disconnect … 2 > QUIT :ircplom says bye +2 < ERROR :Closing link: (plom@baz.bar.foo) [Quit: ircplom says bye] +1,2,3 $ connection_state set to: [Closing link: (plom@baz.bar.foo) [Quit: ircplom says bye]] +1,2,3 $ connection_state set to: [] +1,2 $ isupport cleared +1,2 $ sasl_account set to: [] +1,2 $ sasl_auth_state set to: [] +1,2 $ caps cleared +1,2 $ channels cleared +1,2 $ users cleared + +> /reconnect +1,2,3 $ connection_state set to: [connecting] + +# except for two positions marked with NB comment, exactly same as on 1st time +1,2,3 $ ?!?@? renames ? +1,2 $ users:me:user set to: [plom] +1,2,3 $ connection_state set to: [connected] +1,2 $ caps cleared +2 > CAP LS :302 +2 > USER plom 0 * :baz +2 > NICK :foo +2 < :*.?.net NOTICE * :*** Looking up your ident... +1,2 $$$ *** Looking up your ident... +2 < :*.?.net NOTICE * :*** Looking up your hostname... +1,2 $$$ *** Looking up your hostname... +2 < :*.?.net NOTICE * :*** Found your hostname (baz.bar.foo) +1,2 $$$ *** Found your hostname (baz.bar.foo) +2 < :*.?.net CAP * LS : foo bar sasl=PLAIN,EXTERNAL baz +2 > CAP REQ :sasl +2 > CAP :LIST +# NB: missing are default settings of isupport:CHANTYPES, :PREFIX +2 < PING :? +2 > PONG :? +2 < :*.?.net CAP ? ACK :sasl +2 < :*.?.net CAP ? LIST :cap-notify sasl +1,2 $ caps:bar:data set to: [] +1,2 $ caps:baz:data set to: [] +1,2 $ caps:foo:data set to: [] +1,2 $ caps:sasl:data set to: [] +1,2 $ caps:sasl:data set to: [PLAIN,EXTERNAL] +1,2 $ caps:sasl:enabled set to: [True] +1,2 $ sasl_auth_state set to: [attempting] +2 > AUTHENTICATE :PLAIN +2 < AUTHENTICATE + +2 > AUTHENTICATE :Zm9vAGZvbwBiYXI= +2 < :foo.bar.baz 900 foo foo!plom@baz.bar.foo foo :You are now logged in as foo +1,2,3 $ ?!plom@? renames foo +1,2 $ users:me:host set to: [baz.bar.foo] +1,2 $ sasl_account set to: [foo] +2 < :foo.bar.baz 903 foo :SASL authentication successful +1,2 $ sasl_auth_state set to: [SASL authentication successful] +2 > CAP :END +2 < :foo.bar.baz 001 foo :Welcome to the foo.bar.baz network +2 < :foo.bar.baz 002 foo :Your host is foo.bar.baz +2 < :foo.bar.baz 003 foo :This server was created Jan 1 2020 +2 < :foo.bar.baz 004 foo foo.bar.baz ircserver-1.0 abc def ghi +2 < :foo.bar.baz 005 foo ABC=DEF GHI=JKL :are supported by this server +1,2 $ isupport:ABC set to: [DEF] +1,2 $ isupport:GHI set to: [JKL] +2 < :foo.bar.baz 005 foo MNO=PQR STU=VWX Y=Z :are supported by this server +1,2 $ isupport:MNO set to: [PQR] +1,2 $ isupport:STU set to: [VWX] +1,2 $ isupport:Y set to: [Z] +2 < :foo.bar.baz 251 foo :There are 10 users and 1000 invisible on 5 servers +2 < :foo.bar.baz 252 foo 7 :IRC Operators online +2 < :foo.bar.baz 253 foo 4 :unknown connection(s) +2 < :foo.bar.baz 254 foo 800 :channels formed +2 < :foo.bar.baz 255 foo :I have 100 clients and 1 serveres +2 < :foo.bar.baz 265 foo 100 150 :Current local users 100, max 150 +2 < :foo.bar.baz 266 foo 1010 1050 :Current global users 1010, max 1050 +2 < :foo.bar.baz 250 foo :Highest connection count: 151 (150 clients) (1080 connections received) +2 < :foo.bar.baz 375 foo :- foo.bar.baz Message of the Day - +2 < :foo.bar.baz 372 foo :- Howdy! - +2 < :foo.bar.baz 372 foo :- Welcome! - +2 < :foo.bar.baz 372 foo :- (to this server) - +2 < :foo.bar.baz 376 foo :End of /MOTD command +# NB: missing is (re-)printing of completed MOTD, since same as previous one +2 < :foo MODE foo :+Ziw +1,2 $ users:me:modes set to: [+Ziw] +2 < :SaslServ!SaslServ@services.bar.baz NOTICE foo :Last login from ~plom@foo.bar.baz on Jan 1 22:00:00 2021 +0000. +3 <<< [SaslServ] Last login from ~plom@foo.bar.baz on Jan 1 22:00:00 2021 +0000. + > /quit 0 < -- 2.30.2