Debian Codegraph @

tests/__snapshots__/test_files.ambr

raw
1 # serializer version: 1
2 # name: test_delete
3 '''
4 [DEBUG] hass_nabucasa.files: Deleting test file with name lorem.ipsum
5 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_delete: https://api.example.com/files
6 [DEBUG] hass_nabucasa.api: Sending DELETE request to api.example.com/files
7 [DEBUG] hass_nabucasa.api: Response for delete from api.example.com/files (200)
8 '''
9 # ---
10 # name: test_download
11 '''
12 [DEBUG] hass_nabucasa.files: Downloading test file with name lorem.ipsum
13 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_download: https://api.example.com/files/download_details/{storage_type}/{filename}
14 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/download_details/test/lorem.ipsum
15 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/download_details/test/lorem.ipsum (200)
16 [DEBUG] hass_nabucasa.api: Sending GET request to files.api.fakeurl
17 [DEBUG] hass_nabucasa.api: Response for get from files.api.fakeurl?X-Amz-Algorithm=*** (200)
18 '''
19 # ---
20 # name: test_exceptions_while_deleting[Failed to fetch: (400) -deletemockargs0]
21 '''
22 [DEBUG] hass_nabucasa.files: Deleting test file with name lorem.ipsum
23 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_delete: https://api.example.com/files
24 [DEBUG] hass_nabucasa.api: Sending DELETE request to api.example.com/files
25 [DEBUG] hass_nabucasa.api: Response for delete from api.example.com/files (400) NC-CE-01
26 '''
27 # ---
28 # name: test_exceptions_while_deleting[Failed to fetch: (500) -deletemockargs1]
29 '''
30 [DEBUG] hass_nabucasa.files: Deleting test file with name lorem.ipsum
31 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_delete: https://api.example.com/files
32 [DEBUG] hass_nabucasa.api: Sending DELETE request to api.example.com/files
33 [DEBUG] hass_nabucasa.api: Response for delete from api.example.com/files (500)
34 '''
35 # ---
36 # name: test_list
37 '''
38 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_list: https://api.example.com/v2/files/{storage_type}
39 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/v2/files/test
40 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/v2/files/test (200)
41 '''
42 # ---
43 # name: test_list_with_clear_cache
44 '''
45 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_list: https://api.example.com/v2/files/{storage_type}
46 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/v2/files/test
47 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/v2/files/test?clearCache=true (200)
48 '''
49 # ---
50 # name: test_upload
51 '''
52 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
53 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
54 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
55 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (200)
56 [DEBUG] hass_nabucasa.api: Sending PUT request to files.api.fakeurl
57 [DEBUG] hass_nabucasa.api: Response for put from files.api.fakeurl?X-Amz-Algorithm=*** (200)
58 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_list: https://api.example.com/v2/files/{storage_type}
59 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/v2/files/test
60 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/v2/files/test (200)
61 '''
62 # ---
63 # name: test_upload_bad_status_while_downloading[FilesError-getmockargs0]
64 '''
65 [DEBUG] hass_nabucasa.files: Downloading test file with name lorem.ipsum
66 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_download: https://api.example.com/files/download_details/{storage_type}/{filename}
67 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/download_details/test/lorem.ipsum
68 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/download_details/test/lorem.ipsum (200)
69 [DEBUG] hass_nabucasa.api: Sending GET request to files.api.fakeurl
70 [DEBUG] hass_nabucasa.api: Response for get from files.api.fakeurl?X-Amz-Algorithm=*** (400)
71 '''
72 # ---
73 # name: test_upload_bad_status_while_downloading[FilesError-getmockargs1]
74 '''
75 [DEBUG] hass_nabucasa.files: Downloading test file with name lorem.ipsum
76 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_download: https://api.example.com/files/download_details/{storage_type}/{filename}
77 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/download_details/test/lorem.ipsum
78 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/download_details/test/lorem.ipsum (200)
79 [DEBUG] hass_nabucasa.api: Sending GET request to files.api.fakeurl
80 [DEBUG] hass_nabucasa.api: Response for get from files.api.fakeurl?X-Amz-Algorithm=*** (500)
81 '''
82 # ---
83 # name: test_upload_bad_status_while_getting_download_details[CloudApiNonRetryableError-getmockargs0]
84 '''
85 [DEBUG] hass_nabucasa.files: Downloading test file with name lorem.ipsum
86 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_download: https://api.example.com/files/download_details/{storage_type}/{filename}
87 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/download_details/test/lorem.ipsum
88 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/download_details/test/lorem.ipsum (400) NC-SH-FH-03 (abc-123)
89 '''
90 # ---
91 # name: test_upload_bad_status_while_getting_download_details[CloudApiNonRetryableError-getmockargs1]
92 '''
93 [DEBUG] hass_nabucasa.files: Downloading test file with name lorem.ipsum
94 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_download: https://api.example.com/files/download_details/{storage_type}/{filename}
95 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/download_details/test/lorem.ipsum
96 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/download_details/test/lorem.ipsum (400) NC-CE-03
97 '''
98 # ---
99 # name: test_upload_bad_status_while_getting_download_details[FilesError-getmockargs2]
100 '''
101 [DEBUG] hass_nabucasa.files: Downloading test file with name lorem.ipsum
102 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_download: https://api.example.com/files/download_details/{storage_type}/{filename}
103 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/download_details/test/lorem.ipsum
104 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/download_details/test/lorem.ipsum (400) NC-CE-01
105 '''
106 # ---
107 # name: test_upload_bad_status_while_getting_download_details[FilesError-getmockargs3]
108 '''
109 [DEBUG] hass_nabucasa.files: Downloading test file with name lorem.ipsum
110 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_download: https://api.example.com/files/download_details/{storage_type}/{filename}
111 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/download_details/test/lorem.ipsum
112 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/download_details/test/lorem.ipsum (500)
113 '''
114 # ---
115 # name: test_upload_bad_status_while_getting_upload_details[CloudApiNonRetryableError-getmockargs1]
116 '''
117 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
118 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
119 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
120 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (400) NC-CE-03
121 '''
122 # ---
123 # name: test_upload_bad_status_while_getting_upload_details[FilesError-getmockargs0]
124 '''
125 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
126 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
127 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
128 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (400) NC-CE-01
129 '''
130 # ---
131 # name: test_upload_bad_status_while_getting_upload_details[FilesError-getmockargs2]
132 '''
133 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
134 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
135 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
136 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (500)
137 '''
138 # ---
139 # name: test_upload_bad_status_while_uploading[FilesError-putmockargs0]
140 '''
141 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
142 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
143 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
144 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (200)
145 [DEBUG] hass_nabucasa.api: Sending PUT request to files.api.fakeurl
146 [DEBUG] hass_nabucasa.api: Response for put from files.api.fakeurl?X-Amz-Algorithm=*** (400)
147 '''
148 # ---
149 # name: test_upload_bad_status_while_uploading[FilesError-putmockargs1]
150 '''
151 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
152 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
153 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
154 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (200)
155 [DEBUG] hass_nabucasa.api: Sending PUT request to files.api.fakeurl
156 [DEBUG] hass_nabucasa.api: Response for put from files.api.fakeurl?X-Amz-Algorithm=*** (500)
157 '''
158 # ---
159 # name: test_upload_exceptions_while_uploading[putmockargs0-Timeout reached while calling API: total allowed time is 43200.0 seconds]
160 '''
161 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
162 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
163 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
164 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (200)
165 [DEBUG] hass_nabucasa.api: Sending PUT request to files.api.fakeurl
166 '''
167 # ---
168 # name: test_upload_exceptions_while_uploading[putmockargs1-Failed to fetch: Boom!]
169 '''
170 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
171 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
172 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
173 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (200)
174 [DEBUG] hass_nabucasa.api: Sending PUT request to files.api.fakeurl
175 '''
176 # ---
177 # name: test_upload_exceptions_while_uploading[putmockargs2-Unexpected error while calling API: Boom!]
178 '''
179 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
180 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
181 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
182 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (200)
183 [DEBUG] hass_nabucasa.api: Sending PUT request to files.api.fakeurl
184 '''
185 # ---
186 # name: test_upload_exceptions_while_uploading[putmockargs3-Failed to upload: (400) ]
187 '''
188 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
189 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
190 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
191 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (200)
192 [DEBUG] hass_nabucasa.api: Sending PUT request to files.api.fakeurl
193 [DEBUG] hass_nabucasa.api: Response for put from files.api.fakeurl?X-Amz-Algorithm=*** (400)
194 '''
195 # ---
196 # name: test_upload_exceptions_while_uploading[putmockargs4-Failed to upload: (400) Unknown error structure]
197 '''
198 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
199 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
200 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
201 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (200)
202 [DEBUG] hass_nabucasa.api: Sending PUT request to files.api.fakeurl
203 [DEBUG] hass_nabucasa.api: Response for put from files.api.fakeurl?X-Amz-Algorithm=*** (400)
204 '''
205 # ---
206 # name: test_upload_exceptions_while_uploading[putmockargs5-Failed to upload: (400) Pretty error With a linebreak]
207 '''
208 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
209 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
210 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
211 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (200)
212 [DEBUG] hass_nabucasa.api: Sending PUT request to files.api.fakeurl
213 [DEBUG] hass_nabucasa.api: Response for put from files.api.fakeurl?X-Amz-Algorithm=*** (400)
214 '''
215 # ---
216 # name: test_upload_exceptions_while_uploading[putmockargs6-Failed to upload: (400) <Message>What is this?]
217 '''
218 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
219 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
220 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
221 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (200)
222 [DEBUG] hass_nabucasa.api: Sending PUT request to files.api.fakeurl
223 [DEBUG] hass_nabucasa.api: Response for put from files.api.fakeurl?X-Amz-Algorithm=*** (400)
224 '''
225 # ---
226 # name: test_upload_exceptions_while_uploading[putmockargs7-Failed to upload: (400) aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]
227 '''
228 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
229 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
230 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
231 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (200)
232 [DEBUG] hass_nabucasa.api: Sending PUT request to files.api.fakeurl
233 [DEBUG] hass_nabucasa.api: Response for put from files.api.fakeurl?X-Amz-Algorithm=*** (400)
234 '''
235 # ---
236 # name: test_upload_exceptions_while_uploading[putmockargs8-Failed to upload: (403) Pretty error With a linebreak]
237 '''
238 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
239 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
240 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
241 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (200)
242 [DEBUG] hass_nabucasa.api: Sending PUT request to files.api.fakeurl
243 [DEBUG] hass_nabucasa.api: Response for put from files.api.fakeurl?X-Amz-Algorithm=*** (403)
244 '''
245 # ---
246 # name: test_upload_exceptions_while_uploading[putmockargs9-Failed to upload: (500) ]
247 '''
248 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
249 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
250 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
251 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (200)
252 [DEBUG] hass_nabucasa.api: Sending PUT request to files.api.fakeurl
253 [DEBUG] hass_nabucasa.api: Response for put from files.api.fakeurl?X-Amz-Algorithm=*** (500)
254 '''
255 # ---
256 # name: test_upload_returning_403_and_expired_subscription
257 '''
258 [DEBUG] hass_nabucasa.files: Uploading test file with name lorem.ipsum
259 [INFO] hass_nabucasa.service_discovery: Using fallback action URL for storage_files_upload: https://api.example.com/files/upload_details
260 [DEBUG] hass_nabucasa.api: Sending GET request to api.example.com/files/upload_details
261 [DEBUG] hass_nabucasa.api: Response for get from api.example.com/files/upload_details (403) Forbidden
262 '''
263 # ---