irctest.server_tests.connection_registration

Tests section 4.1 of RFC 1459. <https://tools.ietf.org/html/rfc1459#section-4.1>

TODO: cross-reference Modern and RFC 2812 too

ConnectionRegistrationTestCase

bahamut
charybdis
ergo
hybrid
inspircd
irc2
ircu2
nefarious
ngircd
plexus4
sable
solanum
unrealircd
testConnectionRegistration.............
testEarlyNickCollision

Two users register simultaneously with the same nick.

.............
testEmptyRealname

Syntax: "<client> <command> :Not enough parameters" -- https://defs.ircdocs.horse/defs/numerics.html#err-needmoreparams-461 -- https://modern.ircdocs.horse/#errneedmoreparams-461

Use of this numeric: "The minimum length of <username> is 1, ie. it MUST not be empty. If it is empty, the server SHOULD reject the command with ERR_NEEDMOREPARAMS (even an empty parameter is provided)" https://github.com/ircdocs/modern-irc/issues/85

......XXX....
testNickCollision
A user connects and requests the same nickname as an already

registered user.

.............
testNonutf8Realname.............
testNonutf8Username.............
testQuitDisconnects
“The server must close the connection to a client which sends a

QUIT message.” -- <https://tools.ietf.org/html/rfc1459#section-4.1.3>

.............
testQuitErrors
“A client session is terminated with a quit message. The server

acknowledges this by sending an ERROR message to the client.” -- <https://tools.ietf.org/html/rfc2812#section-3.1.7>

......XX.....

PasswordedConnectionRegistrationTestCase

bahamut
charybdis
ergo
hybrid
inspircd
irc2
ircu2
nefarious
ngircd
plexus4
sable
solanum
unrealircd
testNoPassword..........s..
testPassAfterNickuser
“The password can and must be set before any attempt to register

the connection is made.” -- <https://tools.ietf.org/html/rfc1459#section-4.1.1>

“The optional password can and MUST be set before any attempt to register the connection is made. Currently this requires that user send a PASS command before sending the NICK/USER combination.” -- <https://tools.ietf.org/html/rfc2812#section-3.1.1>

dd..ddddd.ddd
testPassBeforeNickuser..........s..
testWrongPassword

"If the password supplied does not match the password expected by the server, then the server SHOULD send ERR_PASSWDMISMATCH and MUST close the connection with ERROR." -- https://github.com/ircdocs/modern-irc/pull/172

..........s..