-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle exception on history unencrypted message (#175)
* Handle exception on history unencrypted message * PubNub SDK v7.3.2 release. --------- Co-authored-by: PubNub Release Bot <120067856+pubnub-release-bot@users.noreply.github.com>
- Loading branch information
1 parent
5164d88
commit 57360f2
Showing
10 changed files
with
297 additions
and
16 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
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
185 changes: 185 additions & 0 deletions
185
tests/integrational/fixtures/native_sync/history/unencrypted.json
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 |
---|---|---|
@@ -0,0 +1,185 @@ | ||
{ | ||
"version": 1, | ||
"interactions": [ | ||
{ | ||
"request": { | ||
"method": "DELETE", | ||
"uri": "https://ps.pndsn.com/v3/history/sub-key/{PN_KEY_SUBSCRIBE}/channel/test_unencrypted", | ||
"body": null, | ||
"headers": { | ||
"User-Agent": [ | ||
"PubNub-Python/7.3.0" | ||
], | ||
"Accept-Encoding": [ | ||
"gzip, deflate" | ||
], | ||
"Accept": [ | ||
"*/*" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"Content-Length": [ | ||
"0" | ||
] | ||
} | ||
}, | ||
"response": { | ||
"status": { | ||
"code": 200, | ||
"message": "OK" | ||
}, | ||
"headers": { | ||
"Age": [ | ||
"0" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"Content-Type": [ | ||
"text/javascript; charset=\"UTF-8\"" | ||
], | ||
"Content-Length": [ | ||
"52" | ||
], | ||
"Cache-Control": [ | ||
"no-cache" | ||
], | ||
"Server": [ | ||
"Pubnub Storage" | ||
], | ||
"Date": [ | ||
"Wed, 22 Nov 2023 15:33:23 GMT" | ||
], | ||
"Access-Control-Allow-Origin": [ | ||
"*" | ||
], | ||
"Access-Control-Allow-Methods": [ | ||
"GET, POST, DELETE, OPTIONS" | ||
], | ||
"Accept-Ranges": [ | ||
"bytes" | ||
] | ||
}, | ||
"body": { | ||
"string": "{\"status\": 200, \"error\": false, \"error_message\": \"\"}" | ||
} | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/test_unencrypted/0/%22Lorem%20Ipsum%22?seqn=1", | ||
"body": null, | ||
"headers": { | ||
"User-Agent": [ | ||
"PubNub-Python/7.3.0" | ||
], | ||
"Accept-Encoding": [ | ||
"gzip, deflate" | ||
], | ||
"Accept": [ | ||
"*/*" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
] | ||
} | ||
}, | ||
"response": { | ||
"status": { | ||
"code": 200, | ||
"message": "OK" | ||
}, | ||
"headers": { | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"Content-Type": [ | ||
"text/javascript; charset=\"UTF-8\"" | ||
], | ||
"Content-Length": [ | ||
"30" | ||
], | ||
"Cache-Control": [ | ||
"no-cache" | ||
], | ||
"Date": [ | ||
"Wed, 22 Nov 2023 15:33:23 GMT" | ||
], | ||
"Access-Control-Allow-Origin": [ | ||
"*" | ||
], | ||
"Access-Control-Allow-Methods": [ | ||
"GET" | ||
] | ||
}, | ||
"body": { | ||
"string": "[1,\"Sent\",\"17006672033304156\"]" | ||
} | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"uri": "https://ps.pndsn.com/v2/history/sub-key/{PN_KEY_SUBSCRIBE}/channel/test_unencrypted?count=100", | ||
"body": null, | ||
"headers": { | ||
"User-Agent": [ | ||
"PubNub-Python/7.3.0" | ||
], | ||
"Accept-Encoding": [ | ||
"gzip, deflate" | ||
], | ||
"Accept": [ | ||
"*/*" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
] | ||
} | ||
}, | ||
"response": { | ||
"status": { | ||
"code": 200, | ||
"message": "OK" | ||
}, | ||
"headers": { | ||
"Age": [ | ||
"0" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"Content-Type": [ | ||
"text/javascript; charset=\"UTF-8\"" | ||
], | ||
"Content-Length": [ | ||
"53" | ||
], | ||
"Cache-Control": [ | ||
"no-cache" | ||
], | ||
"Server": [ | ||
"Pubnub Storage" | ||
], | ||
"Date": [ | ||
"Wed, 22 Nov 2023 15:33:25 GMT" | ||
], | ||
"Access-Control-Allow-Origin": [ | ||
"*" | ||
], | ||
"Access-Control-Allow-Methods": [ | ||
"GET, POST, DELETE, OPTIONS" | ||
], | ||
"Accept-Ranges": [ | ||
"bytes" | ||
] | ||
}, | ||
"body": { | ||
"string": "[[\"Lorem Ipsum\"],17006672033304156,17006672033304156]" | ||
} | ||
} | ||
} | ||
] | ||
} |
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
Oops, something went wrong.