Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,8 @@ flakes:
bahamut:
$(PYTEST) $(PYTEST_ARGS) \
--controller=irctest.controllers.bahamut \
-m 'not services' \
-n 4 \
-vv -s \
-vv \
-m 'not services and $(BAHAMUT_MARKERS)'
-k '$(BAHAMUT_SELECTORS)'

Expand All @@ -201,6 +200,8 @@ bahamut-atheme:
$(PYTEST) $(PYTEST_ARGS) \
--controller=irctest.controllers.bahamut \
--services-controller=irctest.controllers.atheme_services \
-n 4 \
-vv \
-m 'services and $(BAHAMUT_MARKERS)' \
-k '$(BAHAMUT_SELECTORS)'

Expand All @@ -209,6 +210,8 @@ bahamut-anope:
$(PYTEST) $(PYTEST_ARGS) \
--controller=irctest.controllers.bahamut \
--services-controller=irctest.controllers.anope_services \
-n 4 \
-vv \
-m 'services and $(BAHAMUT_MARKERS)' \
-k '$(BAHAMUT_SELECTORS)'

Expand Down Expand Up @@ -263,30 +266,29 @@ ircu2:
$(PYTEST) $(PYTEST_ARGS) \
--controller=irctest.controllers.ircu2 \
-m 'not services and $(IRCU2_MARKERS)' \
-n 4 \
-k '$(IRCU2_SELECTORS)'
-n 4

.PHONY: nefarious
nefarious:
$(PYTEST) $(PYTEST_ARGS) \
--controller=irctest.controllers.nefarious \
-m 'not services and $(NEFARIOUS_MARKERS)' \
-n 4 \
-k '$(NEFARIOUS_SELECTORS)'
-k '$(NEFARIOUS_SELECTORS)' \
-n 4

.PHONY: snircd
snircd:
$(PYTEST) $(PYTEST_ARGS) \
--controller=irctest.controllers.snircd \
-m 'not services and $(SNIRCD_MARKERS)' \
-n 4 \
-k '$(SNIRCD_SELECTORS)'
-k '$(SNIRCD_MARKERS)'

.PHONY: irc2
irc2:
$(PYTEST) $(PYTEST_ARGS) \
--controller=irctest.controllers.irc2 \
-m 'not services and $(IRCU2_MARKERS)' \
-m 'not services and $(IRC2_MARKERS)' \
-n 4 \
-k '$(IRC2_SELECTORS)'

Expand All @@ -310,31 +312,31 @@ plexus4:
--controller irctest.controllers.plexus4 \
--services-controller=irctest.controllers.anope_services \
-m '$(PLEXUS4_MARKERS)' \
-k "$(PLEXUS4_SELECTORS)"
-k '$(PLEXUS4_SELECTORS)'

.PHONY: ngircd
ngircd:
$(PYTEST) $(PYTEST_ARGS) \
--controller irctest.controllers.ngircd \
-m 'not services and $(NGIRCD_MARKERS)' \
-m "not services and $(NGIRCD_MARKERS)" \
-n 4 \
-k "$(NGIRCD_SELECTORS)"
-k '$(NGIRCD_SELECTORS)'

.PHONY: ngircd-anope
ngircd-anope:
$(PYTEST) $(PYTEST_ARGS) \
--controller irctest.controllers.ngircd \
--services-controller=irctest.controllers.anope_services \
-m 'services and $(NGIRCD_MARKERS)' \
-k "$(NGIRCD_SELECTORS)"
-k '$(NGIRCD_SELECTORS)'

.PHONY: ngircd-atheme
ngircd-atheme:
$(PYTEST) $(PYTEST_ARGS) \
--controller irctest.controllers.ngircd \
--services-controller=irctest.controllers.atheme_services \
-m 'services and $(NGIRCD_MARKERS)' \
-k "$(NGIRCD_SELECTORS)"
-k '$(NGIRCD_SELECTORS)'

.PHONY: sable
sable:
Expand Down
2 changes: 1 addition & 1 deletion irctest/controllers/charybdis.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class "server" {{
}};

connect "My.Little.Services" {{
host = "localhost"; # Used to validate incoming connection
host = "127.0.0.1"; # Used to validate incoming connection
port = 0; # We don't need servers to connect to services
send_password = "password";
accept_password = "password";
Expand Down
5 changes: 5 additions & 0 deletions irctest/controllers/sable.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import time
from typing import Any, Callable, List, Optional, Sequence, Tuple, Type

from irctest import runner
from irctest.basecontrollers import (
BaseServerController,
BaseServicesController,
Expand Down Expand Up @@ -578,6 +579,10 @@ def registerUser(
msg = case.getMessage(client)
except NoMessageException:
continue
if msg.command == "417":
raise runner.NotImplementedByController(
"Passwords longer than allowed with REGISTER command"
)
case.assertMessageMatch(
msg, command="REGISTER", params=["SUCCESS", username, ANYSTR]
)
Expand Down
Loading
Loading