From bdefcd025604f2c3009fe5e0cc01213c2ba62a6a Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Tue, 15 Sep 2026 02:16:39 +0200 Subject: feat(hub): usernames are at least 8 characters at registration Existing shorter accounts keep signing in. Test usernames padded to match. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01XuNrwLf5EFWCMHzfoEvnpm --- packages/meshbay-hub/tests/test_federation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/meshbay-hub/tests/test_federation.py') diff --git a/packages/meshbay-hub/tests/test_federation.py b/packages/meshbay-hub/tests/test_federation.py index 17d4161..6303799 100644 --- a/packages/meshbay-hub/tests/test_federation.py +++ b/packages/meshbay-hub/tests/test_federation.py @@ -65,7 +65,7 @@ def _auth_key(password: str, username: str) -> str: hashlib.pbkdf2_hmac("sha512", password.encode(), salt, 600_000, 32)).decode() -async def _admin(client, username="root"): +async def _admin(client, username="root_test"): pw = "a-long-enough-passphrase" await client.post("/v1/users/register", json={ "username": username, "email": f"{username}@example.com", @@ -158,7 +158,7 @@ async def test_a_federated_id_cannot_shadow_a_local_group(client): peer = Peer("peer-a.example") await _register_peer(client, admin, peer) - owner = await _admin(client, "owner") + owner = await _admin(client, "owner_test") r = await client.post("/v1/groups", headers=owner, json={ "name": "mine", "visibility": "public", "join_policy": "open"}) local_id = r.json()["group_id"] -- cgit v1.2.3