Improve auth tests #11

Open
opened 2025-03-21 23:43:40 +13:00 by greenart7c3 · 2 comments
greenart7c3 commented 2025-03-21 23:43:40 +13:00 (Migrated from github.com)

Add more tests to the auth flow like:

  • Sending a auth event with a different kind
  • Without challenge tag
  • Without relay tag
  • With a invalid relay url
  • createdAt > 10 minutes
  • createdAt < 10 minutes
  • Challenge tag different from what the relay asked
Add more tests to the auth flow like: * Sending a auth event with a different kind * Without challenge tag * Without relay tag * With a invalid relay url * createdAt > 10 minutes * createdAt < 10 minutes * Challenge tag different from what the relay asked
mikedilger commented 2025-03-28 10:43:11 +13:00 (Migrated from github.com)

I just added 4 new tests to test (kind, relay tag, challenge tag, created_at). It doesn't test every variation you list, but you can submit a PR if you want to add more (should be easy now that you can copy an existing test).

I just added 4 new tests to test (kind, relay tag, challenge tag, created_at). It doesn't test every variation you list, but you can submit a PR if you want to add more (should be easy now that you can copy an existing test).
greenart7c3 commented 2025-03-28 10:51:23 +13:00 (Migrated from github.com)

Thank you

Thank you
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nostr/relay-tester#11
No description provided.