Skip to content

Commit 96dd6af

Browse files
takluyverphilsmt
authored andcommitted
Reset global client between tests, re-record VCR cassettes
1 parent 0246ec1 commit 96dd6af

10 files changed

Lines changed: 3544 additions & 332 deletions

tests/cassettes/test_calibration/test_AGIPD_CalibrationData_metadata.yaml

Lines changed: 28 additions & 38 deletions
Large diffs are not rendered by default.

tests/cassettes/test_calibration/test_AGIPD_CalibrationData_metadata_SPB.yaml

Lines changed: 326 additions & 79 deletions
Large diffs are not rendered by default.

tests/cassettes/test_calibration/test_AGIPD_CalibrationData_report.yaml

Lines changed: 170 additions & 49 deletions
Large diffs are not rendered by default.

tests/cassettes/test_calibration/test_AGIPD_from_correction.yaml

Lines changed: 1057 additions & 0 deletions
Large diffs are not rendered by default.

tests/cassettes/test_calibration/test_AGIPD_load_data.yaml

Lines changed: 767 additions & 29 deletions
Large diffs are not rendered by default.

tests/cassettes/test_calibration/test_AGIPD_merge.yaml

Lines changed: 284 additions & 21 deletions
Large diffs are not rendered by default.

tests/cassettes/test_calibration/test_DSSC_modules_missing.yaml

Lines changed: 283 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,139 @@ interactions:
1313
content-type:
1414
- application/json
1515
method: GET
16+
uri: http://exflcalproxy.desy.de:8080/api/me
17+
response:
18+
body:
19+
string: '{"id":-9,"email":"admin@example.com","created_at":"2015-03-12T17:02:47.000+01:00","updated_at":"2024-06-26T11:38:56.000+02:00","provider":"local","uid":null,"name":"Admin
20+
User","first_name":"Admin","last_name":"User","nickname":null,"contact_email":"admin@example.com","ldap_synced_at":null,"flg_ldap_account_valid":false,"flg_service_account":true}'
21+
headers:
22+
Cache-Control:
23+
- max-age=0, private, must-revalidate
24+
Content-Length:
25+
- '349'
26+
Content-Type:
27+
- application/json; charset=utf-8
28+
Date:
29+
- Fri, 08 Nov 2024 14:31:53 GMT
30+
Etag:
31+
- W/"4bf159598242c25bb9fb5b1598d140b2"
32+
Keep-Alive:
33+
- timeout=5, max=100
34+
Referrer-Policy:
35+
- strict-origin-when-cross-origin
36+
Server:
37+
- Apache
38+
Status:
39+
- 200 OK
40+
Strict-Transport-Security:
41+
- max-age=16070400; includeSubDomains
42+
Vary:
43+
- Origin
44+
Via:
45+
- HTTP/1.1 xfel_oauth_proxy
46+
X-Content-Type-Options:
47+
- nosniff
48+
X-Download-Options:
49+
- noopen
50+
X-Frame-Options:
51+
- SAMEORIGIN
52+
X-Permitted-Cross-Domain-Policies:
53+
- none
54+
X-Powered-By:
55+
- Phusion Passenger(R)
56+
X-Request-Id:
57+
- 5d8b2e03-e5b8-4d47-bb3a-35d7b3ee140e
58+
X-Runtime:
59+
- '0.021739'
60+
X-Xss-Protection:
61+
- '0'
62+
status:
63+
code: 200
64+
message: OK
65+
- request:
66+
body: null
67+
headers:
68+
Accept:
69+
- application/json; version=2
70+
Accept-Encoding:
71+
- gzip, deflate, br, zstd
72+
Connection:
73+
- keep-alive
74+
User-Agent:
75+
- EXtra/2024.1.1.184+03da3c1
76+
content-type:
77+
- application/json
78+
method: GET
79+
uri: http://exflcalproxy.desy.de:8080/api/detectors?identifier=MID_DET_AGIPD1M-1
80+
response:
81+
body:
82+
string: '[{"id":4,"name":"MID_DET_AGIPD1M-1","identifier":"MID_DET_AGIPD1M-1","karabo_name":"MID_DET_AGIPD1M-1","karabo_id_control":"MID_EXP_AGIPD1M1","source_name_pattern":null,"number_of_modules":null,"first_module_index":null,"flg_available":true,"description":null,"detectors_instruments":[{"instrument_id":4,"detector_id":4},{"instrument_id":7,"detector_id":4}]}]'
83+
headers:
84+
Cache-Control:
85+
- max-age=0, private, must-revalidate
86+
Content-Length:
87+
- '359'
88+
Content-Type:
89+
- application/json; charset=utf-8
90+
Date:
91+
- Fri, 08 Nov 2024 14:31:53 GMT
92+
Etag:
93+
- W/"482ffe83a86d14688f9ee0fa415bd62a"
94+
Keep-Alive:
95+
- timeout=5, max=100
96+
Referrer-Policy:
97+
- strict-origin-when-cross-origin
98+
Server:
99+
- Apache
100+
Status:
101+
- 200 OK
102+
Strict-Transport-Security:
103+
- max-age=16070400; includeSubDomains
104+
Vary:
105+
- Origin
106+
Via:
107+
- HTTP/1.1 xfel_oauth_proxy
108+
X-Content-Type-Options:
109+
- nosniff
110+
X-Count-Per-Page:
111+
- '100'
112+
X-Current-Page:
113+
- '1'
114+
X-Download-Options:
115+
- noopen
116+
X-Frame-Options:
117+
- SAMEORIGIN
118+
X-Permitted-Cross-Domain-Policies:
119+
- none
120+
X-Powered-By:
121+
- Phusion Passenger(R)
122+
X-Request-Id:
123+
- 01a51413-57e9-43ae-9c9e-73c94a012e28
124+
X-Runtime:
125+
- '0.020753'
126+
X-Total-Count:
127+
- '1'
128+
X-Total-Pages:
129+
- '1'
130+
X-Xss-Protection:
131+
- '0'
132+
status:
133+
code: 200
134+
message: OK
135+
- request:
136+
body: null
137+
headers:
138+
Accept:
139+
- application/json; version=2
140+
Accept-Encoding:
141+
- gzip, deflate
142+
Connection:
143+
- keep-alive
144+
User-Agent:
145+
- EXtra/2025.1.105+5a88200
146+
content-type:
147+
- application/json
148+
method: GET
16149
uri: http://exflcalproxy.desy.de:8080/api/detectors?identifier=SQS_DET_DSSC1M-1
17150
response:
18151
body:
@@ -25,7 +158,7 @@ interactions:
25158
Content-Type:
26159
- application/json; charset=utf-8
27160
Date:
28-
- Fri, 08 Nov 2024 14:32:16 GMT
161+
- Thu, 16 Oct 2025 08:58:29 GMT
29162
Etag:
30163
- W/"a8d2d9773c98d7aa08414d4272e23394"
31164
Keep-Alive:
@@ -48,18 +181,16 @@ interactions:
48181
- '100'
49182
X-Current-Page:
50183
- '1'
51-
X-Download-Options:
52-
- noopen
53184
X-Frame-Options:
54185
- SAMEORIGIN
55186
X-Permitted-Cross-Domain-Policies:
56187
- none
57188
X-Powered-By:
58189
- Phusion Passenger(R)
59190
X-Request-Id:
60-
- cf9b0841-8f37-4102-abfa-e408c95f4512
191+
- df71dc29-293f-498c-88a2-d97ad10c486a
61192
X-Runtime:
62-
- '0.020267'
193+
- '0.023405'
63194
X-Total-Count:
64195
- '1'
65196
X-Total-Pages:
@@ -75,11 +206,11 @@ interactions:
75206
Accept:
76207
- application/json; version=2
77208
Accept-Encoding:
78-
- gzip, deflate, br, zstd
209+
- gzip, deflate
79210
Connection:
80211
- keep-alive
81212
User-Agent:
82-
- EXtra/2024.1.1.184+03da3c1
213+
- EXtra/2025.1.105+5a88200
83214
content-type:
84215
- application/json
85216
method: GET
@@ -95,7 +226,7 @@ interactions:
95226
Content-Type:
96227
- application/json; charset=utf-8
97228
Date:
98-
- Fri, 08 Nov 2024 14:32:16 GMT
229+
- Thu, 16 Oct 2025 08:58:29 GMT
99230
Etag:
100231
- W/"8306e1d172eb64a33186dde32e2e7bba"
101232
Keep-Alive:
@@ -114,18 +245,153 @@ interactions:
114245
- HTTP/1.1 xfel_oauth_proxy
115246
X-Content-Type-Options:
116247
- nosniff
117-
X-Download-Options:
118-
- noopen
119248
X-Frame-Options:
120249
- SAMEORIGIN
121250
X-Permitted-Cross-Domain-Policies:
122251
- none
123252
X-Powered-By:
124253
- Phusion Passenger(R)
125254
X-Request-Id:
126-
- de582474-f688-45b7-92ec-343386b8968e
255+
- ee46ef78-85c7-4df8-994e-9f0a854cfa58
127256
X-Runtime:
128-
- '0.419828'
257+
- '0.524134'
258+
X-Xss-Protection:
259+
- '0'
260+
status:
261+
code: 200
262+
message: OK
263+
- request:
264+
body: null
265+
headers:
266+
Accept:
267+
- application/json; version=2
268+
Accept-Encoding:
269+
- gzip, deflate
270+
Connection:
271+
- keep-alive
272+
User-Agent:
273+
- EXtra/2025.1.105+5a88200
274+
content-type:
275+
- application/json
276+
method: GET
277+
uri: http://exflcalproxy.desy.de:8080/api/calibrations?name=Offset
278+
response:
279+
body:
280+
string: '[{"id":1,"name":"Offset","unit_id":1,"max_value":null,"min_value":null,"allowed_deviation":null,"description":""}]'
281+
headers:
282+
Cache-Control:
283+
- max-age=0, private, must-revalidate
284+
Content-Length:
285+
- '114'
286+
Content-Type:
287+
- application/json; charset=utf-8
288+
Date:
289+
- Thu, 16 Oct 2025 08:58:30 GMT
290+
Etag:
291+
- W/"41e8088cc44ad976e577e40482d74dfb"
292+
Keep-Alive:
293+
- timeout=5, max=100
294+
Referrer-Policy:
295+
- strict-origin-when-cross-origin
296+
Server:
297+
- Apache
298+
Status:
299+
- 200 OK
300+
Strict-Transport-Security:
301+
- max-age=16070400; includeSubDomains
302+
Vary:
303+
- Origin
304+
Via:
305+
- HTTP/1.1 xfel_oauth_proxy
306+
X-Content-Type-Options:
307+
- nosniff
308+
X-Count-Per-Page:
309+
- '100'
310+
X-Current-Page:
311+
- '1'
312+
X-Frame-Options:
313+
- SAMEORIGIN
314+
X-Permitted-Cross-Domain-Policies:
315+
- none
316+
X-Powered-By:
317+
- Phusion Passenger(R)
318+
X-Request-Id:
319+
- 9f6eb375-343e-4278-be87-6d84092bb61a
320+
X-Runtime:
321+
- '0.026962'
322+
X-Total-Count:
323+
- '1'
324+
X-Total-Pages:
325+
- '1'
326+
X-Xss-Protection:
327+
- '0'
328+
status:
329+
code: 200
330+
message: OK
331+
- request:
332+
body: null
333+
headers:
334+
Accept:
335+
- application/json; version=2
336+
Accept-Encoding:
337+
- gzip, deflate
338+
Connection:
339+
- keep-alive
340+
User-Agent:
341+
- EXtra/2025.1.105+5a88200
342+
content-type:
343+
- application/json
344+
method: GET
345+
uri: http://exflcalproxy.desy.de:8080/api/calibrations?name=Noise
346+
response:
347+
body:
348+
string: '[{"id":2,"name":"Noise","unit_id":1,"max_value":null,"min_value":null,"allowed_deviation":null,"description":"In
349+
terms of standard deviation"}]'
350+
headers:
351+
Cache-Control:
352+
- max-age=0, private, must-revalidate
353+
Content-Length:
354+
- '143'
355+
Content-Type:
356+
- application/json; charset=utf-8
357+
Date:
358+
- Thu, 16 Oct 2025 08:58:30 GMT
359+
Etag:
360+
- W/"f1826d5b0b4d30aa8e2a90eb504451d1"
361+
Keep-Alive:
362+
- timeout=5, max=100
363+
Referrer-Policy:
364+
- strict-origin-when-cross-origin
365+
Server:
366+
- Apache
367+
Status:
368+
- 200 OK
369+
Strict-Transport-Security:
370+
- max-age=16070400; includeSubDomains
371+
Vary:
372+
- Origin
373+
Via:
374+
- HTTP/1.1 xfel_oauth_proxy
375+
X-Content-Type-Options:
376+
- nosniff
377+
X-Count-Per-Page:
378+
- '100'
379+
X-Current-Page:
380+
- '1'
381+
X-Frame-Options:
382+
- SAMEORIGIN
383+
X-Permitted-Cross-Domain-Policies:
384+
- none
385+
X-Powered-By:
386+
- Phusion Passenger(R)
387+
X-Request-Id:
388+
- 8dd611d2-87d7-4ab0-9c75-6345237063c6
389+
X-Runtime:
390+
- '0.029018'
391+
X-Total-Count:
392+
- '1'
393+
X-Total-Pages:
394+
- '1'
129395
X-Xss-Protection:
130396
- '0'
131397
status:
@@ -139,13 +405,13 @@ interactions:
139405
Accept:
140406
- application/json; version=2
141407
Accept-Encoding:
142-
- gzip, deflate, br, zstd
408+
- gzip, deflate
143409
Connection:
144410
- keep-alive
145411
Content-Length:
146412
- '245'
147413
User-Agent:
148-
- EXtra/2024.1.1.184+03da3c1
414+
- EXtra/2025.1.105+5a88200
149415
content-type:
150416
- application/json
151417
method: GET
@@ -233,7 +499,7 @@ interactions:
233499
Content-Type:
234500
- application/json; charset=utf-8
235501
Date:
236-
- Fri, 08 Nov 2024 14:32:16 GMT
502+
- Thu, 16 Oct 2025 08:58:30 GMT
237503
Etag:
238504
- W/"1a0189659154ceeb56b3374bd5072c84"
239505
Keep-Alive:
@@ -252,18 +518,16 @@ interactions:
252518
- HTTP/1.1 xfel_oauth_proxy
253519
X-Content-Type-Options:
254520
- nosniff
255-
X-Download-Options:
256-
- noopen
257521
X-Frame-Options:
258522
- SAMEORIGIN
259523
X-Permitted-Cross-Domain-Policies:
260524
- none
261525
X-Powered-By:
262526
- Phusion Passenger(R)
263527
X-Request-Id:
264-
- e012da7a-61f5-40c0-9bdc-9c1e00343aba
528+
- ca05c13a-ee1b-42b2-bbdb-f727f8b7594b
265529
X-Runtime:
266-
- '0.951225'
530+
- '1.055998'
267531
X-Xss-Protection:
268532
- '0'
269533
status:

0 commit comments

Comments
 (0)