-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: strange behavior with nip 33 parameterized replacable events and…
… nip 40 expiration tag (#316) * fix: fix content-type on GetInvoiceStatusController * test: fix flaky tests * test: remove cache client from intg tests * chore: lint fix * test: add intg tests for nip-33 events w/ expiration tag
- Loading branch information
Showing
8 changed files
with
113 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,32 @@ | ||
Feature: NIP-33 Parameterized replaceable events | ||
Scenario: Alice sends a parameterized replaceable event | ||
Given someone called Alice | ||
And Alice subscribes to author Alice | ||
When Alice sends a parameterized_replaceable_event_0 event with content "1" and tag d containing "variable" | ||
Then Alice receives a parameterized_replaceable_event_0 event from Alice with content "1" and tag d containing "variable" | ||
When Alice sends a parameterized_replaceable_event_0 event with content "2" and tag d containing "variable" | ||
Then Alice receives a parameterized_replaceable_event_0 event from Alice with content "2" and tag d containing "variable" | ||
Then Alice unsubscribes from author Alice | ||
When Alice subscribes to author Alice | ||
Then Alice receives 1 parameterized_replaceable_event_0 event from Alice with content "2" and EOSE | ||
Then Alice receives a parameterized_replaceable_event_0 event from Alice with content "2" and tag d containing "variable" | ||
|
||
Scenario: Alice adds an expiration tag to a parameterized replaceable event | ||
Given someone called Alice | ||
And someone called Bob | ||
When Alice sends a parameterized_replaceable_event_1 event with content "woot" and tag d containing "stuff" | ||
And Alice sends a parameterized_replaceable_event_1 event with content "nostr.watch" and tag d containing "stuff" and expiring in the future | ||
And Bob subscribes to author Alice | ||
Then Bob receives a parameterized_replaceable_event_1 event from Alice with content "nostr.watch" and tag d containing "stuff" | ||
|
||
Scenario: Alice removes an expiration tag to a parameterized replaceable event | ||
Given someone called Alice | ||
And someone called Bob | ||
When Alice sends a parameterized_replaceable_event_1 event with content "nostr.watch" and tag d containing "hey" and expiring in the future | ||
And Alice sends a parameterized_replaceable_event_1 event with content "woot" and tag d containing "hey" | ||
And Bob subscribes to author Alice | ||
Then Bob receives a parameterized_replaceable_event_1 event from Alice with content "woot" and tag d containing "hey" | ||
|
||
Scenario: Alice adds and removes an expiration tag to a parameterized replaceable event | ||
Given someone called Alice | ||
And someone called Bob | ||
When Alice sends a parameterized_replaceable_event_1 event with content "first" and tag d containing "friends" | ||
And Alice sends a parameterized_replaceable_event_1 event with content "second" and tag d containing "friends" and expiring in the future | ||
And Alice sends a parameterized_replaceable_event_1 event with content "third" and tag d containing "friends" | ||
And Bob subscribes to author Alice | ||
Then Bob receives a parameterized_replaceable_event_1 event from Alice with content "third" and tag d containing "friends" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters