diff options
Diffstat (limited to 'packages/meshbay-hub/tests/test_account_deletion.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_account_deletion.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/meshbay-hub/tests/test_account_deletion.py b/packages/meshbay-hub/tests/test_account_deletion.py index b97417d..4cbca8b 100644 --- a/packages/meshbay-hub/tests/test_account_deletion.py +++ b/packages/meshbay-hub/tests/test_account_deletion.py @@ -135,7 +135,10 @@ async def test_deletion_clears_device_keys_and_swarm_sources(client, db_session) """ The privacy statement says every account row goes but the IP log. Swarm sources are keyed by the *user* id despite the column's name, and carry the - node's ip:port. + node's transport and port — `webrtc:<port>`, which is what `daemon.py` + actually sends. This asked with `192.0.2.7:4433`, from the days when the + field was free text documented as "ip:port": a shape no node has ever + produced, and one that let a caller name a third party's address. """ from meshbay_hub.db.models import SwarmSource, UserDevice @@ -148,7 +151,7 @@ async def test_deletion_clears_device_keys_and_swarm_sources(client, db_session) json={"pk_auth_ed25519": _device_pk(), "label": "desktop"}) assert r.status_code == 201, r.text r = await client.post("/v1/swarm/register", headers=headers, - json={"content_hash": "ab" * 32, "endpoint": "192.0.2.7:4433"}) + json={"content_hash": "ab" * 32, "endpoint": "webrtc:4433"}) assert r.status_code == 201, r.text # Present before, or the emptiness asserted below proves nothing. |