Skip to content

Commit

Permalink
Add cassettes for new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
micahflee committed May 20, 2024
1 parent 8ba6242 commit d6611b0
Show file tree
Hide file tree
Showing 2 changed files with 572 additions and 0 deletions.
307 changes: 307 additions & 0 deletions client/tests/sdk/data/test_download_submission_autoresume.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,307 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Authorization:
- Token Im5fRGxUa0duSGZRT0hUaExaVUpuLUNBZjJjWTdoX1JzaEtXZjF1bGpNMFEi.Zkt5Eg.rhj_SR58sfebF374tCr9GGpLofM
Content-Type:
- application/json
method: GET
uri: api/v1/submissions
response: !!python/object:securedrop_client.sdk.JSONResponse
data:
submissions:
- download_url: /api/v1/sources/9d2f640a-6882-4039-963f-599a5ba9f82b/submissions/591e6a8a-6d9c-4361-98da-ebbcbb0ac1da/download
filename: 1-sinister_potash-msg.gpg
is_file: false
is_message: true
is_read: true
seen_by:
- f422ae93-6d02-4699-9d0c-aa612c38d6e4
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 616
source_url: /api/v1/sources/9d2f640a-6882-4039-963f-599a5ba9f82b
submission_url: /api/v1/sources/9d2f640a-6882-4039-963f-599a5ba9f82b/submissions/591e6a8a-6d9c-4361-98da-ebbcbb0ac1da
uuid: 591e6a8a-6d9c-4361-98da-ebbcbb0ac1da
- download_url: /api/v1/sources/9d2f640a-6882-4039-963f-599a5ba9f82b/submissions/d67ec08f-626d-4e86-a9ce-a4489813b760/download
filename: 2-sinister_potash-msg.gpg
is_file: false
is_message: true
is_read: true
seen_by:
- c02c0512-89a8-496e-8f32-2ab65d80b030
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 700
source_url: /api/v1/sources/9d2f640a-6882-4039-963f-599a5ba9f82b
submission_url: /api/v1/sources/9d2f640a-6882-4039-963f-599a5ba9f82b/submissions/d67ec08f-626d-4e86-a9ce-a4489813b760
uuid: d67ec08f-626d-4e86-a9ce-a4489813b760
- download_url: /api/v1/sources/9d2f640a-6882-4039-963f-599a5ba9f82b/submissions/8a5fcca0-d4c5-48f1-8a44-f5581d8d7e8c/download
filename: 3-sinister_potash-doc.gz.gpg
is_file: true
is_message: false
is_read: true
seen_by:
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 651
source_url: /api/v1/sources/9d2f640a-6882-4039-963f-599a5ba9f82b
submission_url: /api/v1/sources/9d2f640a-6882-4039-963f-599a5ba9f82b/submissions/8a5fcca0-d4c5-48f1-8a44-f5581d8d7e8c
uuid: 8a5fcca0-d4c5-48f1-8a44-f5581d8d7e8c
- download_url: /api/v1/sources/9d2f640a-6882-4039-963f-599a5ba9f82b/submissions/7a998852-36fe-46d0-985c-8d0193328332/download
filename: 4-sinister_potash-doc.gz.gpg
is_file: true
is_message: false
is_read: true
seen_by:
- f422ae93-6d02-4699-9d0c-aa612c38d6e4
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 651
source_url: /api/v1/sources/9d2f640a-6882-4039-963f-599a5ba9f82b
submission_url: /api/v1/sources/9d2f640a-6882-4039-963f-599a5ba9f82b/submissions/7a998852-36fe-46d0-985c-8d0193328332
uuid: 7a998852-36fe-46d0-985c-8d0193328332
- download_url: /api/v1/sources/e3845811-fa9e-48d7-b1af-ae37363fc9ca/submissions/a595250b-b66b-4a26-9d57-e29cdce886c5/download
filename: 1-irremediable_generosity-msg.gpg
is_file: false
is_message: true
is_read: true
seen_by:
- c02c0512-89a8-496e-8f32-2ab65d80b030
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 647
source_url: /api/v1/sources/e3845811-fa9e-48d7-b1af-ae37363fc9ca
submission_url: /api/v1/sources/e3845811-fa9e-48d7-b1af-ae37363fc9ca/submissions/a595250b-b66b-4a26-9d57-e29cdce886c5
uuid: a595250b-b66b-4a26-9d57-e29cdce886c5
- download_url: /api/v1/sources/e3845811-fa9e-48d7-b1af-ae37363fc9ca/submissions/71dfad99-5c06-4fd7-8605-ca6e3299bd5b/download
filename: 2-irremediable_generosity-msg.gpg
is_file: false
is_message: true
is_read: true
seen_by:
- c02c0512-89a8-496e-8f32-2ab65d80b030
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 766
source_url: /api/v1/sources/e3845811-fa9e-48d7-b1af-ae37363fc9ca
submission_url: /api/v1/sources/e3845811-fa9e-48d7-b1af-ae37363fc9ca/submissions/71dfad99-5c06-4fd7-8605-ca6e3299bd5b
uuid: 71dfad99-5c06-4fd7-8605-ca6e3299bd5b
- download_url: /api/v1/sources/e3845811-fa9e-48d7-b1af-ae37363fc9ca/submissions/4b22f2f9-70ea-4e3b-8d57-5e0b1b56b7fc/download
filename: 3-irremediable_generosity-doc.gz.gpg
is_file: true
is_message: false
is_read: true
seen_by:
- f422ae93-6d02-4699-9d0c-aa612c38d6e4
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 651
source_url: /api/v1/sources/e3845811-fa9e-48d7-b1af-ae37363fc9ca
submission_url: /api/v1/sources/e3845811-fa9e-48d7-b1af-ae37363fc9ca/submissions/4b22f2f9-70ea-4e3b-8d57-5e0b1b56b7fc
uuid: 4b22f2f9-70ea-4e3b-8d57-5e0b1b56b7fc
- download_url: /api/v1/sources/e3845811-fa9e-48d7-b1af-ae37363fc9ca/submissions/04ff1e66-b076-47fe-a856-7a36d67655d4/download
filename: 4-irremediable_generosity-doc.gz.gpg
is_file: true
is_message: false
is_read: true
seen_by:
- c02c0512-89a8-496e-8f32-2ab65d80b030
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 651
source_url: /api/v1/sources/e3845811-fa9e-48d7-b1af-ae37363fc9ca
submission_url: /api/v1/sources/e3845811-fa9e-48d7-b1af-ae37363fc9ca/submissions/04ff1e66-b076-47fe-a856-7a36d67655d4
uuid: 04ff1e66-b076-47fe-a856-7a36d67655d4
- download_url: /api/v1/sources/bc46de2b-d079-47e1-9eb7-bd63586a1c6c/submissions/66219559-e3c7-4f84-8aa7-f8e52502e7fa/download
filename: 1-silver_anticipation-msg.gpg
is_file: false
is_message: true
is_read: true
seen_by:
- f422ae93-6d02-4699-9d0c-aa612c38d6e4
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 804
source_url: /api/v1/sources/bc46de2b-d079-47e1-9eb7-bd63586a1c6c
submission_url: /api/v1/sources/bc46de2b-d079-47e1-9eb7-bd63586a1c6c/submissions/66219559-e3c7-4f84-8aa7-f8e52502e7fa
uuid: 66219559-e3c7-4f84-8aa7-f8e52502e7fa
- download_url: /api/v1/sources/bc46de2b-d079-47e1-9eb7-bd63586a1c6c/submissions/0ef40d58-1630-4f24-9d4e-122f71e6c0bc/download
filename: 2-silver_anticipation-msg.gpg
is_file: false
is_message: true
is_read: true
seen_by:
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 710
source_url: /api/v1/sources/bc46de2b-d079-47e1-9eb7-bd63586a1c6c
submission_url: /api/v1/sources/bc46de2b-d079-47e1-9eb7-bd63586a1c6c/submissions/0ef40d58-1630-4f24-9d4e-122f71e6c0bc
uuid: 0ef40d58-1630-4f24-9d4e-122f71e6c0bc
- download_url: /api/v1/sources/bc46de2b-d079-47e1-9eb7-bd63586a1c6c/submissions/63024ccd-6e0e-4130-9a0c-0ff08a3adda2/download
filename: 3-silver_anticipation-doc.gz.gpg
is_file: true
is_message: false
is_read: true
seen_by:
- f422ae93-6d02-4699-9d0c-aa612c38d6e4
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 651
source_url: /api/v1/sources/bc46de2b-d079-47e1-9eb7-bd63586a1c6c
submission_url: /api/v1/sources/bc46de2b-d079-47e1-9eb7-bd63586a1c6c/submissions/63024ccd-6e0e-4130-9a0c-0ff08a3adda2
uuid: 63024ccd-6e0e-4130-9a0c-0ff08a3adda2
- download_url: /api/v1/sources/bc46de2b-d079-47e1-9eb7-bd63586a1c6c/submissions/08aeb19a-b502-4118-8c2f-ea4280522004/download
filename: 4-silver_anticipation-doc.gz.gpg
is_file: true
is_message: false
is_read: true
seen_by:
- f422ae93-6d02-4699-9d0c-aa612c38d6e4
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 651
source_url: /api/v1/sources/bc46de2b-d079-47e1-9eb7-bd63586a1c6c
submission_url: /api/v1/sources/bc46de2b-d079-47e1-9eb7-bd63586a1c6c/submissions/08aeb19a-b502-4118-8c2f-ea4280522004
uuid: 08aeb19a-b502-4118-8c2f-ea4280522004
- download_url: /api/v1/sources/fb6dd019-6bb7-4229-87f8-f7839a1b47b1/submissions/6a22b2ca-66cd-407c-a7ad-6af36387718e/download
filename: 1-instructive_sachem-msg.gpg
is_file: false
is_message: true
is_read: true
seen_by:
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 1124
source_url: /api/v1/sources/fb6dd019-6bb7-4229-87f8-f7839a1b47b1
submission_url: /api/v1/sources/fb6dd019-6bb7-4229-87f8-f7839a1b47b1/submissions/6a22b2ca-66cd-407c-a7ad-6af36387718e
uuid: 6a22b2ca-66cd-407c-a7ad-6af36387718e
- download_url: /api/v1/sources/fb6dd019-6bb7-4229-87f8-f7839a1b47b1/submissions/171c74b8-e06b-42bc-8fd8-84e723b38490/download
filename: 2-instructive_sachem-msg.gpg
is_file: false
is_message: true
is_read: true
seen_by:
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 687
source_url: /api/v1/sources/fb6dd019-6bb7-4229-87f8-f7839a1b47b1
submission_url: /api/v1/sources/fb6dd019-6bb7-4229-87f8-f7839a1b47b1/submissions/171c74b8-e06b-42bc-8fd8-84e723b38490
uuid: 171c74b8-e06b-42bc-8fd8-84e723b38490
- download_url: /api/v1/sources/fb6dd019-6bb7-4229-87f8-f7839a1b47b1/submissions/293bdf38-3c64-44a9-878b-a80d66e40dea/download
filename: 3-instructive_sachem-doc.gz.gpg
is_file: true
is_message: false
is_read: true
seen_by:
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 651
source_url: /api/v1/sources/fb6dd019-6bb7-4229-87f8-f7839a1b47b1
submission_url: /api/v1/sources/fb6dd019-6bb7-4229-87f8-f7839a1b47b1/submissions/293bdf38-3c64-44a9-878b-a80d66e40dea
uuid: 293bdf38-3c64-44a9-878b-a80d66e40dea
- download_url: /api/v1/sources/fb6dd019-6bb7-4229-87f8-f7839a1b47b1/submissions/cf6ab7c1-73d1-4c4d-ae3a-29b6e8d5feeb/download
filename: 4-instructive_sachem-doc.gz.gpg
is_file: true
is_message: false
is_read: true
seen_by:
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 651
source_url: /api/v1/sources/fb6dd019-6bb7-4229-87f8-f7839a1b47b1
submission_url: /api/v1/sources/fb6dd019-6bb7-4229-87f8-f7839a1b47b1/submissions/cf6ab7c1-73d1-4c4d-ae3a-29b6e8d5feeb
uuid: cf6ab7c1-73d1-4c4d-ae3a-29b6e8d5feeb
- download_url: /api/v1/sources/d7f172c7-69ce-4df1-a054-721a6f89269b/submissions/14e96ddd-1fda-4b1f-bb3f-390661a013a3/download
filename: 1-militaristic_formalin-msg.gpg
is_file: false
is_message: true
is_read: true
seen_by:
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 619
source_url: /api/v1/sources/d7f172c7-69ce-4df1-a054-721a6f89269b
submission_url: /api/v1/sources/d7f172c7-69ce-4df1-a054-721a6f89269b/submissions/14e96ddd-1fda-4b1f-bb3f-390661a013a3
uuid: 14e96ddd-1fda-4b1f-bb3f-390661a013a3
- download_url: /api/v1/sources/d7f172c7-69ce-4df1-a054-721a6f89269b/submissions/9a680e36-11fa-48ff-96f8-5e3a109b2d5f/download
filename: 2-militaristic_formalin-msg.gpg
is_file: false
is_message: true
is_read: true
seen_by:
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 707
source_url: /api/v1/sources/d7f172c7-69ce-4df1-a054-721a6f89269b
submission_url: /api/v1/sources/d7f172c7-69ce-4df1-a054-721a6f89269b/submissions/9a680e36-11fa-48ff-96f8-5e3a109b2d5f
uuid: 9a680e36-11fa-48ff-96f8-5e3a109b2d5f
- download_url: /api/v1/sources/d7f172c7-69ce-4df1-a054-721a6f89269b/submissions/17670653-7309-46be-a83b-f9be04939336/download
filename: 3-militaristic_formalin-doc.gz.gpg
is_file: true
is_message: false
is_read: true
seen_by:
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 651
source_url: /api/v1/sources/d7f172c7-69ce-4df1-a054-721a6f89269b
submission_url: /api/v1/sources/d7f172c7-69ce-4df1-a054-721a6f89269b/submissions/17670653-7309-46be-a83b-f9be04939336
uuid: 17670653-7309-46be-a83b-f9be04939336
- download_url: /api/v1/sources/d7f172c7-69ce-4df1-a054-721a6f89269b/submissions/38c4b583-d6c1-47bd-bf43-1003bca94c36/download
filename: 4-militaristic_formalin-doc.gz.gpg
is_file: true
is_message: false
is_read: true
seen_by:
- 76c1518d-6f30-47e8-8bbf-79a7118d8851
size: 651
source_url: /api/v1/sources/d7f172c7-69ce-4df1-a054-721a6f89269b
submission_url: /api/v1/sources/d7f172c7-69ce-4df1-a054-721a6f89269b/submissions/38c4b583-d6c1-47bd-bf43-1003bca94c36
uuid: 38c4b583-d6c1-47bd-bf43-1003bca94c36
headers:
connection: close
content-length: '13250'
content-type: application/json
date: Mon, 20 May 2024 16:23:53 GMT
server: Werkzeug/2.2.3 Python/3.8.10
status: 200
- request:
body: null
headers:
Accept:
- application/json
Authorization:
- Token Im5fRGxUa0duSGZRT0hUaExaVUpuLUNBZjJjWTdoX1JzaEtXZjF1bGpNMFEi.Zkt5Eg.rhj_SR58sfebF374tCr9GGpLofM
Content-Type:
- application/json
method: GET
uri: api/v1/sources/9d2f640a-6882-4039-963f-599a5ba9f82b/submissions/8a5fcca0-d4c5-48f1-8a44-f5581d8d7e8c/download
response: !!python/object:securedrop_client.sdk.StreamedResponse
contents: !!binary |
wcFMA8PnxMCiIBsqARAAiqV6F4Vh2Xz742FwQ1fl/Id/VfTAtiTE1N7lq6d24NVPxMozJby7WVCk
hAapdoHPT3XmDB67kj6mB4WuECU7LKbZgi3RnZ0hfXgsIDaatj2V6YeFuAnRgPb5zYx+duK3ZFhM
0vE2IHzyf0hgbkW/Zo4V71B3zEEXO08pm277VYA5O7KOlLJGABSUylNSjua0T7zrMkmdRQBVcSW0
81qaMLXaKK48IfVMtBue64Uj0YQfo9jB+ZvbVYNAzvzhr8FlC+mXWE9Y8j5IJotVe/YPtPRY7X9Z
ATRjjclysHka90R/+myTkNvOKX5tYnYBYeudJ/07BtDsB6Niai8M5KLqyOi8Lhfk6blXf0jPT1bS
vYjez/FTJkar2BBkzbtpCJiU5jW/4uMff86IqyARb5fz/v6fz08VlWtf1ySE4W/zXagz84Oyh1a3
dIoBt+Z53uKyV5dBmB+Hj3BYgjbdkoMzQxLAx0k3oZwzbnWauHx0HyXnXw3TcbRsHYKrkTaYtBOc
4SKNnQZmFAy/e3wEW9nj4ut517pLt6paVFjWfz9m2yAsoq6pwWdDJ7WU0HL2xzXzO7+y46hG1ji6
RpaE3rnws1xRrmgwD7IwLNt8z5sl5KYS1yOe0hl2yc5w5nV2k7BDXr4oksPN95vUOz+Spfq8pS4D
82fYFuHbgWFG2/aO45rSegHWhreGAL5isFlvtntR29kkLy7tJn5CAK2MwM7Ys3BjXg18Z694Lu1G
JWsmRDt79F11hmGeGBwTEKCEroCUrLxKEeLTs/ILT1dgMQPQib4VIA4cgmg0PDQ+u9RTEj1xSzwe
AHWdUuw6m5xQdvvv6TkWB3/uS4z1DYDl
filename: attachment; filename=3-sinister_potash-doc.gz.gpg
sha256sum: sha256:8bd5c37ff11167e6cabebb4f19131c04dfc3240d3b097b765fd6fbcf5ad1d090
- request:
body: null
headers:
Accept:
- application/json
Authorization:
- Token Im5fRGxUa0duSGZRT0hUaExaVUpuLUNBZjJjWTdoX1JzaEtXZjF1bGpNMFEi.Zkt5Eg.rhj_SR58sfebF374tCr9GGpLofM
Content-Type:
- application/json
method: GET
uri: api/v1/sources/9d2f640a-6882-4039-963f-599a5ba9f82b/submissions/8a5fcca0-d4c5-48f1-8a44-f5581d8d7e8c/download
response: !!python/object:securedrop_client.sdk.StreamedResponse
contents: !!binary |
wcFMA8PnxMCiIBsqARAAiqV6F4Vh2Xz742FwQ1fl/Id/VfTAtiTE1N7lq6d24NVPxMozJby7WVCk
hAapdoHPT3XmDB67kj6mB4WuECU7LKbZgi3RnZ0hfXgsIDaatj2V6YeFuAnRgPb5zYx+duK3ZFhM
0vE2IHzyf0hgbkW/Zo4V71B3zEEXO08pm277VYA5O7KOlLJGABSUylNSjua0T7zrMkmdRQBVcSW0
81qaMLXaKK48IfVMtBue64Uj0YQfo9jB+ZvbVYNAzvzhr8FlC+mXWE9Y8j5IJotVe/YPtPRY7X9Z
ATRjjclysHka90R/+myTkNvOKX5tYnYBYeudJ/07BtDsB6Niai8M5KLqyOi8Lhfk6blXf0jPT1bS
vYjez/FTJkar2BBkzbtpCJiU5jW/4uMff86IqyARb5fz/v6fz08VlWtf1ySE4W/zXagz84Oyh1a3
dIoBt+Z53uKyV5dBmB+Hj3BYgjbdkoMzQxLAx0k3oZwzbnWauHx0HyXnXw3TcbRsHYKrkTaYtBOc
4SKNnQZmFAy/e3wEW9nj4ut517pLt6paVFjWfz9m2yAsoq6pwWdDJ7WU0HL2xzXzO7+y46hG1ji6
RpaE3rnws1xRrmgwD7IwLNt8z5sl5KYS1yOe0hl2yc5w5nV2k7BDXr4oksPN95vUOz+Spfq8pS4D
82fYFuHbgWFG2/aO45rSegHWhreGAL5isFlvtntR29kkLy7tJn5CAK2MwM7Ys3BjXg18Z694Lu1G
JWsmRDt79F11hmGeGBwTEKCEroCUrLxKEeLTs/ILT1dgMQPQib4VIA4cgmg0PDQ+u9RTEj1xSzwe
AHWdUuw6m5xQdvvv6TkWB3/uS4z1DYDl
filename: attachment; filename=3-assessable_firmness-doc.gz.gpg
sha256sum: sha256:3aa5ec3fe60b235a76bfc2c3a5c5d525687f04c1670060632a21b6a77c131f65
version: 1
Loading

0 comments on commit d6611b0

Please sign in to comment.