-
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.
Update all tests VCRs to include status and type fields
- Loading branch information
Showing
38 changed files
with
1,545 additions
and
1,108 deletions.
There are no files selected for viewing
108 changes: 108 additions & 0 deletions
108
tests/integrational/fixtures/native_sync/objects_v2/channel/get_all_channel.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,108 @@ | ||
{ | ||
"version": 1, | ||
"interactions": [ | ||
{ | ||
"request": { | ||
"method": "PATCH", | ||
"uri": "https://ps.pndsn.com/v2/objects/{PN_KEY_SUBSCRIBE}/channels/somechannelid?include=custom%2Cstatus%2Ctype", | ||
"body": "{\"name\": \"Some name\", \"description\": \"Some description\", \"custom\": {\"key1\": \"val1\", \"key2\": \"val2\"}}", | ||
"headers": { | ||
"User-Agent": [ | ||
"PubNub-Python/7.4.0" | ||
], | ||
"Accept-Encoding": [ | ||
"gzip, deflate" | ||
], | ||
"Accept": [ | ||
"*/*" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"Content-Length": [ | ||
"100" | ||
] | ||
} | ||
}, | ||
"response": { | ||
"status": { | ||
"code": 200, | ||
"message": "OK" | ||
}, | ||
"headers": { | ||
"Access-Control-Allow-Origin": [ | ||
"*" | ||
], | ||
"Content-Length": [ | ||
"243" | ||
], | ||
"Access-Control-Allow-Credentials": [ | ||
"true" | ||
], | ||
"Date": [ | ||
"Thu, 07 Mar 2024 08:49:02 GMT" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"Content-Type": [ | ||
"application/json" | ||
] | ||
}, | ||
"body": { | ||
"string": "{\"status\":200,\"data\":{\"id\":\"somechannelid\",\"name\":\"Some name\",\"description\":\"Some description\",\"type\":null,\"status\":null,\"custom\":{\"key1\":\"val1\",\"key2\":\"val2\"},\"updated\":\"2024-03-07T08:49:02.768895Z\",\"eTag\":\"02c6f5b485d41252a921200b102d2eba\"}}" | ||
} | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"uri": "https://ps.pndsn.com/v2/objects/{PN_KEY_SUBSCRIBE}/channels?count=True&include=custom%2Cstatus%2Ctype&limit=10&sort=id%3Aasc%2Cupdated%3Adesc", | ||
"body": null, | ||
"headers": { | ||
"User-Agent": [ | ||
"PubNub-Python/7.4.0" | ||
], | ||
"Accept-Encoding": [ | ||
"gzip, deflate" | ||
], | ||
"Accept": [ | ||
"*/*" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
] | ||
} | ||
}, | ||
"response": { | ||
"status": { | ||
"code": 200, | ||
"message": "OK" | ||
}, | ||
"headers": { | ||
"Access-Control-Allow-Origin": [ | ||
"*" | ||
], | ||
"Content-Length": [ | ||
"682" | ||
], | ||
"Access-Control-Allow-Credentials": [ | ||
"true" | ||
], | ||
"Date": [ | ||
"Thu, 07 Mar 2024 08:49:02 GMT" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"Content-Type": [ | ||
"application/json" | ||
] | ||
}, | ||
"body": { | ||
"string": "{\"status\":200,\"data\":[{\"id\":\"somechannel\",\"name\":\"some name\",\"description\":null,\"type\":null,\"status\":null,\"custom\":null,\"updated\":\"2024-03-07T08:46:53.26682Z\",\"eTag\":\"23e310250a16a047c79a0581d3721bb8\"},{\"id\":\"somechannelid\",\"name\":\"Some name\",\"description\":\"Some description\",\"type\":null,\"status\":null,\"custom\":{\"key1\":\"val1\",\"key2\":\"val2\"},\"updated\":\"2024-03-07T08:49:02.768895Z\",\"eTag\":\"02c6f5b485d41252a921200b102d2eba\"},{\"id\":\"somechannel_with_custom\",\"name\":\"some name with custom\",\"description\":null,\"type\":null,\"status\":null,\"custom\":{\"key3\":\"val1\",\"key4\":\"val2\"},\"updated\":\"2024-03-07T08:46:53.467344Z\",\"eTag\":\"0e480702d320e937f400f55aa25d798c\"}],\"totalCount\":3,\"next\":\"Mw\"}" | ||
} | ||
} | ||
} | ||
] | ||
} |
71 changes: 0 additions & 71 deletions
71
tests/integrational/fixtures/native_sync/objects_v2/channel/get_all_channel.yaml
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
tests/integrational/fixtures/native_sync/objects_v2/channel/get_channel.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,55 @@ | ||
{ | ||
"version": 1, | ||
"interactions": [ | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"uri": "https://ps.pndsn.com/v2/objects/{PN_KEY_SUBSCRIBE}/channels/somechannelid?include=custom%2Cstatus%2Ctype", | ||
"body": null, | ||
"headers": { | ||
"User-Agent": [ | ||
"PubNub-Python/7.4.0" | ||
], | ||
"Accept-Encoding": [ | ||
"gzip, deflate" | ||
], | ||
"Accept": [ | ||
"*/*" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
] | ||
} | ||
}, | ||
"response": { | ||
"status": { | ||
"code": 200, | ||
"message": "OK" | ||
}, | ||
"headers": { | ||
"Access-Control-Allow-Origin": [ | ||
"*" | ||
], | ||
"Content-Length": [ | ||
"243" | ||
], | ||
"Access-Control-Allow-Credentials": [ | ||
"true" | ||
], | ||
"Date": [ | ||
"Thu, 07 Mar 2024 08:49:02 GMT" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"Content-Type": [ | ||
"application/json" | ||
] | ||
}, | ||
"body": { | ||
"string": "{\"status\":200,\"data\":{\"id\":\"somechannelid\",\"name\":\"Some name\",\"description\":\"Some description\",\"type\":null,\"status\":null,\"custom\":{\"key1\":\"val1\",\"key2\":\"val2\"},\"updated\":\"2024-03-07T08:49:02.114956Z\",\"eTag\":\"123ed9b124b768824b19e4bda619f476\"}}" | ||
} | ||
} | ||
} | ||
] | ||
} |
35 changes: 0 additions & 35 deletions
35
tests/integrational/fixtures/native_sync/objects_v2/channel/get_channel.yaml
This file was deleted.
Oops, something went wrong.
58 changes: 58 additions & 0 deletions
58
tests/integrational/fixtures/native_sync/objects_v2/channel/remove_channel.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,58 @@ | ||
{ | ||
"version": 1, | ||
"interactions": [ | ||
{ | ||
"request": { | ||
"method": "DELETE", | ||
"uri": "https://ps.pndsn.com/v2/objects/{PN_KEY_SUBSCRIBE}/channels/somechannelid", | ||
"body": null, | ||
"headers": { | ||
"User-Agent": [ | ||
"PubNub-Python/7.4.0" | ||
], | ||
"Accept-Encoding": [ | ||
"gzip, deflate" | ||
], | ||
"Accept": [ | ||
"*/*" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"Content-Length": [ | ||
"0" | ||
] | ||
} | ||
}, | ||
"response": { | ||
"status": { | ||
"code": 200, | ||
"message": "OK" | ||
}, | ||
"headers": { | ||
"Access-Control-Allow-Origin": [ | ||
"*" | ||
], | ||
"Content-Length": [ | ||
"26" | ||
], | ||
"Access-Control-Allow-Credentials": [ | ||
"true" | ||
], | ||
"Date": [ | ||
"Thu, 07 Mar 2024 08:49:02 GMT" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"Content-Type": [ | ||
"application/json" | ||
] | ||
}, | ||
"body": { | ||
"string": "{\"status\":200,\"data\":null}" | ||
} | ||
} | ||
} | ||
] | ||
} |
36 changes: 0 additions & 36 deletions
36
tests/integrational/fixtures/native_sync/objects_v2/channel/remove_channel.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.