mirror of
https://github.com/progval/irctest.git
synced 2025-04-06 23:39:46 +00:00
Bump UnrealIRCd to v6.0.7 (#192)
This commit is contained in:
2
.github/workflows/test-stable.yml
vendored
2
.github/workflows/test-stable.yml
vendored
@ -347,7 +347,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: unrealircd
|
path: unrealircd
|
||||||
ref: cedd23ae9cdd5985ce16e9869cbdb808479c3fc4
|
ref: da3c1c654481a33035b9c703957e1c25d0158259
|
||||||
repository: unrealircd/unrealircd
|
repository: unrealircd/unrealircd
|
||||||
- name: Build UnrealIRCd 6
|
- name: Build UnrealIRCd 6
|
||||||
run: |
|
run: |
|
||||||
|
@ -100,7 +100,7 @@ set {{
|
|||||||
}}
|
}}
|
||||||
modes-on-join "+H 100:1d"; // Enables CHATHISTORY
|
modes-on-join "+H 100:1d"; // Enables CHATHISTORY
|
||||||
|
|
||||||
{set_extras}
|
{set_v6only}
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
@ -123,6 +123,24 @@ oper "operuser" {{
|
|||||||
}}
|
}}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
SET_V6ONLY = """
|
||||||
|
// Remove RPL_WHOISSPECIAL used to advertise security groups
|
||||||
|
whois-details {
|
||||||
|
security-groups { everyone none; self none; oper none; }
|
||||||
|
}
|
||||||
|
|
||||||
|
plaintext-policy {
|
||||||
|
server warn; // https://www.unrealircd.org/docs/FAQ#server-requires-tls
|
||||||
|
oper warn; // https://www.unrealircd.org/docs/FAQ#oper-requires-tls
|
||||||
|
}
|
||||||
|
|
||||||
|
anti-flood {
|
||||||
|
everyone {
|
||||||
|
connect-flood 255:10;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
def _filelock(path: Path) -> Callable[[], ContextManager]:
|
def _filelock(path: Path) -> Callable[[], ContextManager]:
|
||||||
"""Alternative to :cls:`multiprocessing.Lock` that works with pytest-xdist"""
|
"""Alternative to :cls:`multiprocessing.Lock` that works with pytest-xdist"""
|
||||||
@ -206,20 +224,10 @@ class UnrealircdController(BaseServerController, DirectoryBasedController):
|
|||||||
loadmodule "cloak_md5";
|
loadmodule "cloak_md5";
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
set_extras = textwrap.indent(
|
set_v6only = SET_V6ONLY
|
||||||
textwrap.dedent(
|
|
||||||
"""
|
|
||||||
// Remove RPL_WHOISSPECIAL used to advertise security groups
|
|
||||||
whois-details {
|
|
||||||
security-groups { everyone none; self none; oper none; }
|
|
||||||
}
|
|
||||||
"""
|
|
||||||
),
|
|
||||||
" ",
|
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
extras = ""
|
extras = ""
|
||||||
set_extras = ""
|
set_v6only = ""
|
||||||
|
|
||||||
with self.open_file("empty.txt") as fd:
|
with self.open_file("empty.txt") as fd:
|
||||||
fd.write("\n")
|
fd.write("\n")
|
||||||
@ -253,8 +261,8 @@ class UnrealircdController(BaseServerController, DirectoryBasedController):
|
|||||||
key_path=self.key_path,
|
key_path=self.key_path,
|
||||||
pem_path=self.pem_path,
|
pem_path=self.pem_path,
|
||||||
empty_file=self.directory / "empty.txt",
|
empty_file=self.directory / "empty.txt",
|
||||||
|
set_v6only=set_v6only,
|
||||||
extras=extras,
|
extras=extras,
|
||||||
set_extras=set_extras,
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -100,8 +100,13 @@ class NoticeTestCase(cases.BaseServerTestCase):
|
|||||||
|
|
||||||
class TagsTestCase(cases.BaseServerTestCase):
|
class TagsTestCase(cases.BaseServerTestCase):
|
||||||
@cases.mark_capabilities("message-tags")
|
@cases.mark_capabilities("message-tags")
|
||||||
@cases.xfailIfSoftware(
|
@cases.xfailIf(
|
||||||
["UnrealIRCd"], "https://bugs.unrealircd.org/view.php?id=5947"
|
lambda self: bool(
|
||||||
|
self.controller.software_name == "UnrealIRCd"
|
||||||
|
and self.controller.software_version == 5
|
||||||
|
),
|
||||||
|
"UnrealIRCd <6.0.7 dropped messages with excessively large tags: "
|
||||||
|
"https://bugs.unrealircd.org/view.php?id=5947",
|
||||||
)
|
)
|
||||||
def testLineTooLong(self):
|
def testLineTooLong(self):
|
||||||
self.connectClient("bar", capabilities=["message-tags"], skip_if_cap_nak=True)
|
self.connectClient("bar", capabilities=["message-tags"], skip_if_cap_nak=True)
|
||||||
|
@ -268,8 +268,8 @@ software:
|
|||||||
name: UnrealIRCd 6
|
name: UnrealIRCd 6
|
||||||
repository: unrealircd/unrealircd
|
repository: unrealircd/unrealircd
|
||||||
refs:
|
refs:
|
||||||
stable: cedd23ae9cdd5985ce16e9869cbdb808479c3fc4 # 6.0.3
|
stable: da3c1c654481a33035b9c703957e1c25d0158259 # 6.0.7
|
||||||
release: cedd23ae9cdd5985ce16e9869cbdb808479c3fc4 # 6.0.3
|
release: da3c1c654481a33035b9c703957e1c25d0158259 # 6.0.7
|
||||||
devel: unreal60_dev
|
devel: unreal60_dev
|
||||||
devel_release: null
|
devel_release: null
|
||||||
path: unrealircd
|
path: unrealircd
|
||||||
|
Reference in New Issue
Block a user