mirror of https://github.com/progval/irctest.git
Compare commits
4 Commits
b7402797ef
...
d558690a71
Author | SHA1 | Date | |
---|---|---|---|
Shivaram Lingamneni | d558690a71 | ||
Val Lorentz | f4a01cfe49 | ||
Shivaram Lingamneni | 926592f5ef | ||
Shivaram Lingamneni | ce3ad40298 |
|
@ -1106,7 +1106,7 @@ jobs:
|
|||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: sable
|
||||
ref: dcf8b53cac54f460b86861908d36d67969cf1eb2
|
||||
ref: fe337a036c3ab5f8548e2578b65568e628f4c32f
|
||||
repository: Libera-Chat/sable
|
||||
- name: Install rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
|
|
|
@ -56,10 +56,6 @@ class CapTestCase(cases.BaseServerTestCase):
|
|||
)
|
||||
|
||||
@cases.mark_specifications("IRCv3")
|
||||
@cases.xfailIfSoftware(
|
||||
["Sable"],
|
||||
"does not support multi-prefix",
|
||||
)
|
||||
def testReqOne(self):
|
||||
"""Tests requesting a single capability"""
|
||||
self.addClient(1)
|
||||
|
@ -93,7 +89,7 @@ class CapTestCase(cases.BaseServerTestCase):
|
|||
|
||||
@cases.mark_specifications("IRCv3")
|
||||
@cases.xfailIfSoftware(
|
||||
["ngIRCd", "Sable"],
|
||||
["ngIRCd"],
|
||||
"does not support userhost-in-names",
|
||||
)
|
||||
def testReqTwo(self):
|
||||
|
@ -135,7 +131,7 @@ class CapTestCase(cases.BaseServerTestCase):
|
|||
|
||||
@cases.mark_specifications("IRCv3")
|
||||
@cases.xfailIfSoftware(
|
||||
["ngIRCd", "Sable"],
|
||||
["ngIRCd"],
|
||||
"does not support userhost-in-names",
|
||||
)
|
||||
def testReqOneThenOne(self):
|
||||
|
@ -187,7 +183,7 @@ class CapTestCase(cases.BaseServerTestCase):
|
|||
|
||||
@cases.mark_specifications("IRCv3")
|
||||
@cases.xfailIfSoftware(
|
||||
["ngIRCd", "Sable"],
|
||||
["ngIRCd"],
|
||||
"does not support userhost-in-names",
|
||||
)
|
||||
def testReqPostRegistration(self):
|
||||
|
|
|
@ -59,6 +59,30 @@ class NamesTestCase(cases.BaseServerTestCase):
|
|||
"""
|
||||
self._testNames(symbol=True)
|
||||
|
||||
@cases.mark_specifications("RFC2812", "Modern")
|
||||
def testNames2812Secret(self):
|
||||
"""The symbol sent for a secret channel is `@` instead of `=`:
|
||||
https://datatracker.ietf.org/doc/html/rfc2812#section-3.2.5
|
||||
https://modern.ircdocs.horse/#rplnamreply-353
|
||||
"""
|
||||
self.connectClient("nick1")
|
||||
self.sendLine(1, "JOIN #chan")
|
||||
# enable secret channel mode
|
||||
self.sendLine(1, "MODE #chan +s")
|
||||
self.getMessages(1)
|
||||
self.sendLine(1, "NAMES #chan")
|
||||
messages = self.getMessages(1)
|
||||
self.assertMessageMatch(
|
||||
messages[0],
|
||||
command=RPL_NAMREPLY,
|
||||
params=["nick1", "@", "#chan", StrRe("@nick1 ?")],
|
||||
)
|
||||
self.assertMessageMatch(
|
||||
messages[1],
|
||||
command=RPL_ENDOFNAMES,
|
||||
params=["nick1", "#chan", ANYSTR],
|
||||
)
|
||||
|
||||
def _testNamesMultipleChannels(self, symbol):
|
||||
self.connectClient("nick1")
|
||||
|
||||
|
|
|
@ -249,7 +249,7 @@ software:
|
|||
name: Sable
|
||||
repository: Libera-Chat/sable
|
||||
refs:
|
||||
stable: dcf8b53cac54f460b86861908d36d67969cf1eb2
|
||||
stable: fe337a036c3ab5f8548e2578b65568e628f4c32f
|
||||
release: null
|
||||
devel: master
|
||||
devel_release: null
|
||||
|
|
Loading…
Reference in New Issue