summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/test_node_auth.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/tests/test_node_auth.py')
-rw-r--r--packages/meshbay-hub/tests/test_node_auth.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/meshbay-hub/tests/test_node_auth.py b/packages/meshbay-hub/tests/test_node_auth.py
index fb05f9b..7b51d14 100644
--- a/packages/meshbay-hub/tests/test_node_auth.py
+++ b/packages/meshbay-hub/tests/test_node_auth.py
@@ -225,9 +225,11 @@ async def test_node_scope_allows_pubkey_lookup(client):
r = await client.get("/v1/users/op4_test/pubkeys",
headers={"Authorization": f"Bearer {node_token}"})
assert r.status_code == 200
- # An account id and the node's linking key — no user identity keys (H3).
+ # An account id and no user identity keys (H3). Its own latest node key, for
+ # the desktop applications already installed; nobody else sees it.
assert "pk_ed25519" not in r.json()
- assert r.json()["pk_node_ed25519"] is not None
+ assert r.json()["username"] == "op4_test"
+ assert r.json()["pk_node_ed25519"]
@pytest.mark.asyncio