diff --git a/cmdeploy/src/cmdeploy/tests/plugin.py b/cmdeploy/src/cmdeploy/tests/plugin.py index 98db6049..943a0dd4 100644 --- a/cmdeploy/src/cmdeploy/tests/plugin.py +++ b/cmdeploy/src/cmdeploy/tests/plugin.py @@ -240,7 +240,10 @@ def gencreds(chatmail_config): user = "".join( random.choices(alphanumeric, k=chatmail_config.username_max_length) ) - user = f"ac{num}_{user}"[: chatmail_config.username_max_length] + if domain == "nine.testrun.org": + user = f"ac{num}_{user}"[:9] + else: + user = f"ac{num}_{user}"[: chatmail_config.username_max_length] password = "".join( random.choices(alphanumeric, k=chatmail_config.password_min_length) )