test: add kroeg fixtures
[akkoma] / test / support / httpoison_mock.ex
1 defmodule HTTPoisonMock do
2 alias HTTPoison.Response
3
4 def get(url, body \\ [], headers \\ [])
5
6 def get(
7 "https://puckipedia.com/",
8 [Accept: "application/activity+json"],
9 []
10 ) do
11 {:ok,
12 %Response{
13 status_code: 200,
14 body: File.read!("test/fixtures/httpoison_mock/puckipedia.com.json")
15 }}
16 end
17
18 def get(
19 "https://gerzilla.de/.well-known/webfinger?resource=acct:kaniini@gerzilla.de",
20 [Accept: "application/xrd+xml,application/jrd+json"],
21 follow_redirect: true
22 ) do
23 {:ok,
24 %Response{
25 status_code: 200,
26 body: File.read!("test/fixtures/httpoison_mock/kaniini@gerzilla.de.json")
27 }}
28 end
29
30 def get(
31 "https://framatube.org/.well-known/webfinger?resource=acct:framasoft@framatube.org",
32 [Accept: "application/xrd+xml,application/jrd+json"],
33 follow_redirect: true
34 ) do
35 {:ok,
36 %Response{
37 status_code: 200,
38 body: File.read!("test/fixtures/httpoison_mock/framasoft@framatube.org.json")
39 }}
40 end
41
42 def get(
43 "https://gnusocial.de/.well-known/webfinger?resource=acct:winterdienst@gnusocial.de",
44 [Accept: "application/xrd+xml,application/jrd+json"],
45 follow_redirect: true
46 ) do
47 {:ok,
48 %Response{
49 status_code: 200,
50 body: File.read!("test/fixtures/httpoison_mock/winterdienst_webfinger.json")
51 }}
52 end
53
54 def get(
55 "https://social.heldscal.la/.well-known/webfinger",
56 [Accept: "application/xrd+xml,application/jrd+json"],
57 params: [resource: "nonexistant@social.heldscal.la"],
58 follow_redirect: true
59 ) do
60 {:ok,
61 %Response{
62 status_code: 500,
63 body: File.read!("test/fixtures/httpoison_mock/nonexistant@social.heldscal.la.xml")
64 }}
65 end
66
67 def get(
68 "https://social.heldscal.la/.well-known/webfinger?resource=shp@social.heldscal.la",
69 [Accept: "application/xrd+xml,application/jrd+json"],
70 follow_redirect: true
71 ) do
72 {:ok,
73 %Response{
74 status_code: 200,
75 body: File.read!("test/fixtures/httpoison_mock/shp@social.heldscal.la.xml")
76 }}
77 end
78
79 def get(
80 "https://social.heldscal.la/.well-known/webfinger",
81 [Accept: "application/xrd+xml,application/jrd+json"],
82 params: [resource: "shp@social.heldscal.la"],
83 follow_redirect: true
84 ) do
85 {:ok,
86 %Response{
87 status_code: 200,
88 body: File.read!("test/fixtures/httpoison_mock/shp@social.heldscal.la.xml")
89 }}
90 end
91
92 def get(
93 "https://social.heldscal.la/.well-known/webfinger",
94 [Accept: "application/xrd+xml,application/jrd+json"],
95 params: [resource: "https://social.heldscal.la/user/23211"],
96 follow_redirect: true
97 ) do
98 {:ok,
99 %Response{
100 status_code: 200,
101 body: File.read!("test/fixtures/httpoison_mock/https___social.heldscal.la_user_23211.xml")
102 }}
103 end
104
105 def get(
106 "https://social.heldscal.la/.well-known/webfinger?resource=https://social.heldscal.la/user/23211",
107 [Accept: "application/xrd+xml,application/jrd+json"],
108 follow_redirect: true
109 ) do
110 {:ok,
111 %Response{
112 status_code: 200,
113 body: File.read!("test/fixtures/httpoison_mock/https___social.heldscal.la_user_23211.xml")
114 }}
115 end
116
117 def get(
118 "https://social.heldscal.la/.well-known/webfinger",
119 [Accept: "application/xrd+xml,application/jrd+json"],
120 params: [resource: "https://social.heldscal.la/user/29191"],
121 follow_redirect: true
122 ) do
123 {:ok,
124 %Response{
125 status_code: 200,
126 body: File.read!("test/fixtures/httpoison_mock/https___social.heldscal.la_user_29191.xml")
127 }}
128 end
129
130 def get(
131 "https://social.heldscal.la/.well-known/webfinger?resource=https://social.heldscal.la/user/29191",
132 [Accept: "application/xrd+xml,application/jrd+json"],
133 follow_redirect: true
134 ) do
135 {:ok,
136 %Response{
137 status_code: 200,
138 body: File.read!("test/fixtures/httpoison_mock/https___social.heldscal.la_user_29191.xml")
139 }}
140 end
141
142 def get(
143 "https://mastodon.social/.well-known/webfinger",
144 [Accept: "application/xrd+xml,application/jrd+json"],
145 params: [resource: "https://mastodon.social/users/lambadalambda"],
146 follow_redirect: true
147 ) do
148 {:ok,
149 %Response{
150 status_code: 200,
151 body:
152 File.read!(
153 "test/fixtures/httpoison_mock/https___mastodon.social_users_lambadalambda.xml"
154 )
155 }}
156 end
157
158 def get(
159 "https://mastodon.social/.well-known/webfinger?resource=https://mastodon.social/users/lambadalambda",
160 [Accept: "application/xrd+xml,application/jrd+json"],
161 follow_redirect: true
162 ) do
163 {:ok,
164 %Response{
165 status_code: 200,
166 body:
167 File.read!(
168 "test/fixtures/httpoison_mock/https___mastodon.social_users_lambadalambda.xml"
169 )
170 }}
171 end
172
173 def get(
174 "https://shitposter.club/.well-known/webfinger",
175 [Accept: "application/xrd+xml,application/jrd+json"],
176 params: [resource: "https://shitposter.club/user/1"],
177 follow_redirect: true
178 ) do
179 {:ok,
180 %Response{
181 status_code: 200,
182 body: File.read!("test/fixtures/httpoison_mock/https___shitposter.club_user_1.xml")
183 }}
184 end
185
186 def get(
187 "https://shitposter.club/.well-known/webfinger?resource=https://shitposter.club/user/1",
188 [Accept: "application/xrd+xml,application/jrd+json"],
189 follow_redirect: true
190 ) do
191 {:ok,
192 %Response{
193 status_code: 200,
194 body: File.read!("test/fixtures/httpoison_mock/https___shitposter.club_user_1.xml")
195 }}
196 end
197
198 def get(
199 "https://shitposter.club/.well-known/webfinger?resource=https://shitposter.club/user/5381",
200 [Accept: "application/xrd+xml,application/jrd+json"],
201 follow_redirect: true
202 ) do
203 {:ok,
204 %Response{
205 status_code: 200,
206 body: File.read!("test/fixtures/httpoison_mock/spc_5381_xrd.xml")
207 }}
208 end
209
210 def get(
211 "http://gs.example.org/.well-known/webfinger",
212 [Accept: "application/xrd+xml,application/jrd+json"],
213 params: [resource: "http://gs.example.org:4040/index.php/user/1"],
214 follow_redirect: true
215 ) do
216 {:ok,
217 %Response{
218 status_code: 200,
219 body:
220 File.read!(
221 "test/fixtures/httpoison_mock/http___gs.example.org_4040_index.php_user_1.xml"
222 )
223 }}
224 end
225
226 def get(
227 "http://gs.example.org/.well-known/webfinger?resource=http://gs.example.org:4040/index.php/user/1",
228 [Accept: "application/xrd+xml,application/jrd+json"],
229 follow_redirect: true
230 ) do
231 {:ok,
232 %Response{
233 status_code: 200,
234 body:
235 File.read!(
236 "test/fixtures/httpoison_mock/http___gs.example.org_4040_index.php_user_1.xml"
237 )
238 }}
239 end
240
241 def get(
242 "https://social.stopwatchingus-heidelberg.de/.well-known/webfinger?resource=https://social.stopwatchingus-heidelberg.de/user/18330",
243 [Accept: "application/xrd+xml,application/jrd+json"],
244 follow_redirect: true
245 ) do
246 {:ok,
247 %Response{
248 status_code: 200,
249 body: File.read!("test/fixtures/httpoison_mock/atarifrosch_webfinger.xml")
250 }}
251 end
252
253 def get(
254 "https://pleroma.soykaf.com/.well-known/webfinger",
255 [Accept: "application/xrd+xml,application/jrd+json"],
256 params: [resource: "https://pleroma.soykaf.com/users/lain"],
257 follow_redirect: true
258 ) do
259 {:ok,
260 %Response{
261 status_code: 200,
262 body: File.read!("test/fixtures/httpoison_mock/https___pleroma.soykaf.com_users_lain.xml")
263 }}
264 end
265
266 def get(
267 "https://pleroma.soykaf.com/.well-known/webfinger?resource=https://pleroma.soykaf.com/users/lain",
268 [Accept: "application/xrd+xml,application/jrd+json"],
269 follow_redirect: true
270 ) do
271 {:ok,
272 %Response{
273 status_code: 200,
274 body: File.read!("test/fixtures/httpoison_mock/https___pleroma.soykaf.com_users_lain.xml")
275 }}
276 end
277
278 def get("https://social.heldscal.la/api/statuses/user_timeline/29191.atom", _body, _headers) do
279 {:ok,
280 %Response{
281 status_code: 200,
282 body:
283 File.read!(
284 "test/fixtures/httpoison_mock/https___social.heldscal.la_api_statuses_user_timeline_29191.atom.xml"
285 )
286 }}
287 end
288
289 def get("https://shitposter.club/api/statuses/user_timeline/5381.atom", _body, _headers) do
290 {:ok,
291 %Response{
292 status_code: 200,
293 body: File.read!("test/fixtures/httpoison_mock/spc_5381.atom")
294 }}
295 end
296
297 def get("https://social.heldscal.la/api/statuses/user_timeline/23211.atom", _body, _headers) do
298 {:ok,
299 %Response{
300 status_code: 200,
301 body:
302 File.read!(
303 "test/fixtures/httpoison_mock/https___social.heldscal.la_api_statuses_user_timeline_23211.atom.xml"
304 )
305 }}
306 end
307
308 def get("https://mastodon.social/users/lambadalambda.atom", _body, _headers) do
309 {:ok,
310 %Response{
311 status_code: 200,
312 body:
313 File.read!(
314 "test/fixtures/httpoison_mock/https___mastodon.social_users_lambadalambda.atom"
315 )
316 }}
317 end
318
319 def get(
320 "https://social.stopwatchingus-heidelberg.de/api/statuses/user_timeline/18330.atom",
321 _body,
322 _headers
323 ) do
324 {:ok,
325 %Response{
326 status_code: 200,
327 body: File.read!("test/fixtures/httpoison_mock/atarifrosch_feed.xml")
328 }}
329 end
330
331 def get("https://pleroma.soykaf.com/users/lain/feed.atom", _body, _headers) do
332 {:ok,
333 %Response{
334 status_code: 200,
335 body:
336 File.read!(
337 "test/fixtures/httpoison_mock/https___pleroma.soykaf.com_users_lain_feed.atom.xml"
338 )
339 }}
340 end
341
342 def get("https://social.sakamoto.gq/users/eal/feed.atom", _body, _headers) do
343 {:ok,
344 %Response{
345 status_code: 200,
346 body: File.read!("test/fixtures/httpoison_mock/sakamoto_eal_feed.atom")
347 }}
348 end
349
350 def get("http://gs.example.org/index.php/api/statuses/user_timeline/1.atom", _body, _headers) do
351 {:ok,
352 %Response{
353 status_code: 200,
354 body:
355 File.read!(
356 "test/fixtures/httpoison_mock/http__gs.example.org_index.php_api_statuses_user_timeline_1.atom.xml"
357 )
358 }}
359 end
360
361 def get("https://shitposter.club/notice/2827873", _body, _headers) do
362 {:ok,
363 %Response{
364 status_code: 200,
365 body:
366 File.read!("test/fixtures/httpoison_mock/https___shitposter.club_notice_2827873.html")
367 }}
368 end
369
370 def get("https://shitposter.club/api/statuses/show/2827873.atom", _body, _headers) do
371 {:ok,
372 %Response{
373 status_code: 200,
374 body:
375 File.read!(
376 "test/fixtures/httpoison_mock/https___shitposter.club_api_statuses_show_2827873.atom.xml"
377 )
378 }}
379 end
380
381 def get("https://shitposter.club/api/statuses/user_timeline/1.atom", _body, _headers) do
382 {:ok,
383 %Response{
384 status_code: 200,
385 body:
386 File.read!(
387 "test/fixtures/httpoison_mock/https___shitposter.club_api_statuses_user_timeline_1.atom.xml"
388 )
389 }}
390 end
391
392 def post(
393 "https://social.heldscal.la/main/push/hub",
394 {:form, _data},
395 "Content-type": "application/x-www-form-urlencoded"
396 ) do
397 {:ok,
398 %Response{
399 status_code: 202
400 }}
401 end
402
403 def get(
404 "https://pawoo.net/.well-known/webfinger",
405 [Accept: "application/xrd+xml,application/jrd+json"],
406 params: [resource: "https://pawoo.net/users/pekorino"],
407 follow_redirect: true
408 ) do
409 {:ok,
410 %Response{
411 status_code: 200,
412 body: File.read!("test/fixtures/httpoison_mock/https___pawoo.net_users_pekorino.xml")
413 }}
414 end
415
416 def get(
417 "https://pawoo.net/.well-known/webfinger?resource=https://pawoo.net/users/pekorino",
418 [Accept: "application/xrd+xml,application/jrd+json"],
419 follow_redirect: true
420 ) do
421 {:ok,
422 %Response{
423 status_code: 200,
424 body: File.read!("test/fixtures/httpoison_mock/https___pawoo.net_users_pekorino.xml")
425 }}
426 end
427
428 def get("https://pawoo.net/users/pekorino.atom", _, _) do
429 {:ok,
430 %Response{
431 status_code: 200,
432 body: File.read!("test/fixtures/httpoison_mock/https___pawoo.net_users_pekorino.atom")
433 }}
434 end
435
436 def get(
437 "https://mamot.fr/.well-known/webfinger",
438 [Accept: "application/xrd+xml,application/jrd+json"],
439 params: [resource: "https://mamot.fr/users/Skruyb"],
440 follow_redirect: true
441 ) do
442 {:ok,
443 %Response{
444 status_code: 200,
445 body: File.read!("test/fixtures/httpoison_mock/skruyb@mamot.fr.atom")
446 }}
447 end
448
449 def get(
450 "https://mamot.fr/.well-known/webfinger?resource=https://mamot.fr/users/Skruyb",
451 [Accept: "application/xrd+xml,application/jrd+json"],
452 follow_redirect: true
453 ) do
454 {:ok,
455 %Response{
456 status_code: 200,
457 body: File.read!("test/fixtures/httpoison_mock/skruyb@mamot.fr.atom")
458 }}
459 end
460
461 def get(
462 "https://social.sakamoto.gq/.well-known/webfinger",
463 [Accept: "application/xrd+xml,application/jrd+json"],
464 params: [resource: "https://social.sakamoto.gq/users/eal"],
465 follow_redirect: true
466 ) do
467 {:ok,
468 %Response{
469 status_code: 200,
470 body: File.read!("test/fixtures/httpoison_mock/eal_sakamoto.xml")
471 }}
472 end
473
474 def get(
475 "https://social.sakamoto.gq/.well-known/webfinger?resource=https://social.sakamoto.gq/users/eal",
476 [Accept: "application/xrd+xml,application/jrd+json"],
477 follow_redirect: true
478 ) do
479 {:ok,
480 %Response{
481 status_code: 200,
482 body: File.read!("test/fixtures/httpoison_mock/eal_sakamoto.xml")
483 }}
484 end
485
486 def get(
487 "https://pleroma.soykaf.com/.well-known/webfinger?resource=https://pleroma.soykaf.com/users/shp",
488 [Accept: "application/xrd+xml,application/jrd+json"],
489 follow_redirect: true
490 ) do
491 {:ok,
492 %Response{
493 status_code: 200,
494 body: File.read!("test/fixtures/httpoison_mock/shp@pleroma.soykaf.com.webfigner")
495 }}
496 end
497
498 def get(
499 "https://squeet.me/xrd/?uri=lain@squeet.me",
500 [Accept: "application/xrd+xml,application/jrd+json"],
501 follow_redirect: true
502 ) do
503 {:ok,
504 %Response{
505 status_code: 200,
506 body: File.read!("test/fixtures/httpoison_mock/lain_squeet.me_webfinger.xml")
507 }}
508 end
509
510 def get("https://mamot.fr/users/Skruyb.atom", _, _) do
511 {:ok,
512 %Response{
513 status_code: 200,
514 body: File.read!("test/fixtures/httpoison_mock/https___mamot.fr_users_Skruyb.atom")
515 }}
516 end
517
518 def get(
519 "https://social.sakamoto.gq/objects/0ccc1a2c-66b0-4305-b23a-7f7f2b040056",
520 [Accept: "application/atom+xml"],
521 _
522 ) do
523 {:ok,
524 %Response{
525 status_code: 200,
526 body: File.read!("test/fixtures/httpoison_mock/sakamoto.atom")
527 }}
528 end
529
530 def get("https://pleroma.soykaf.com/users/shp/feed.atom", _, _) do
531 {:ok,
532 %Response{
533 status_code: 200,
534 body: File.read!("test/fixtures/httpoison_mock/shp@pleroma.soykaf.com.feed")
535 }}
536 end
537
538 def get("http://social.heldscal.la/.well-known/host-meta", [], follow_redirect: true) do
539 {:ok,
540 %Response{
541 status_code: 200,
542 body: File.read!("test/fixtures/httpoison_mock/social.heldscal.la_host_meta")
543 }}
544 end
545
546 def get("http://status.alpicola.com/.well-known/host-meta", [], follow_redirect: true) do
547 {:ok,
548 %Response{
549 status_code: 200,
550 body: File.read!("test/fixtures/httpoison_mock/status.alpicola.com_host_meta")
551 }}
552 end
553
554 def get("http://macgirvin.com/.well-known/host-meta", [], follow_redirect: true) do
555 {:ok,
556 %Response{
557 status_code: 200,
558 body: File.read!("test/fixtures/httpoison_mock/macgirvin.com_host_meta")
559 }}
560 end
561
562 def get("http://mastodon.social/.well-known/host-meta", [], follow_redirect: true) do
563 {:ok,
564 %Response{
565 status_code: 200,
566 body: File.read!("test/fixtures/httpoison_mock/mastodon.social_host_meta")
567 }}
568 end
569
570 def get("http://shitposter.club/.well-known/host-meta", [], follow_redirect: true) do
571 {:ok,
572 %Response{
573 status_code: 200,
574 body: File.read!("test/fixtures/httpoison_mock/shitposter.club_host_meta")
575 }}
576 end
577
578 def get("http://pleroma.soykaf.com/.well-known/host-meta", [], follow_redirect: true) do
579 {:ok,
580 %Response{
581 status_code: 200,
582 body: File.read!("test/fixtures/httpoison_mock/pleroma.soykaf.com_host_meta")
583 }}
584 end
585
586 def get("http://social.sakamoto.gq/.well-known/host-meta", [], follow_redirect: true) do
587 {:ok,
588 %Response{
589 status_code: 200,
590 body: File.read!("test/fixtures/httpoison_mock/social.sakamoto.gq_host_meta")
591 }}
592 end
593
594 def get("http://gs.example.org/.well-known/host-meta", [], follow_redirect: true) do
595 {:ok,
596 %Response{
597 status_code: 200,
598 body: File.read!("test/fixtures/httpoison_mock/gs.example.org_host_meta")
599 }}
600 end
601
602 def get("http://pawoo.net/.well-known/host-meta", [], follow_redirect: true) do
603 {:ok,
604 %Response{
605 status_code: 200,
606 body: File.read!("test/fixtures/httpoison_mock/pawoo.net_host_meta")
607 }}
608 end
609
610 def get("http://mamot.fr/.well-known/host-meta", [], follow_redirect: true) do
611 {:ok,
612 %Response{
613 status_code: 200,
614 body: File.read!("test/fixtures/httpoison_mock/mamot.fr_host_meta")
615 }}
616 end
617
618 def get("http://mastodon.xyz/.well-known/host-meta", [], follow_redirect: true) do
619 {:ok,
620 %Response{
621 status_code: 200,
622 body: File.read!("test/fixtures/httpoison_mock/mastodon.xyz_host_meta")
623 }}
624 end
625
626 def get("http://social.wxcafe.net/.well-known/host-meta", [], follow_redirect: true) do
627 {:ok,
628 %Response{
629 status_code: 200,
630 body: File.read!("test/fixtures/httpoison_mock/social.wxcafe.net_host_meta")
631 }}
632 end
633
634 def get("http://squeet.me/.well-known/host-meta", [], follow_redirect: true) do
635 {:ok,
636 %Response{
637 status_code: 200,
638 body: File.read!("test/fixtures/httpoison_mock/squeet.me_host_meta")
639 }}
640 end
641
642 def get(
643 "http://social.stopwatchingus-heidelberg.de/.well-known/host-meta",
644 [],
645 follow_redirect: true
646 ) do
647 {:ok,
648 %Response{
649 status_code: 200,
650 body:
651 File.read!("test/fixtures/httpoison_mock/social.stopwatchingus-heidelberg.de_host_meta")
652 }}
653 end
654
655 def get("http://mastodon.example.org/users/admin", [Accept: "application/activity+json"], _) do
656 {:ok,
657 %Response{
658 status_code: 200,
659 body: File.read!("test/fixtures/httpoison_mock/admin@mastdon.example.org.json")
660 }}
661 end
662
663 def get(
664 "https://hubzilla.example.org/channel/kaniini",
665 [Accept: "application/activity+json"],
666 _
667 ) do
668 {:ok,
669 %Response{
670 status_code: 200,
671 body: File.read!("test/fixtures/httpoison_mock/kaniini@hubzilla.example.org.json")
672 }}
673 end
674
675 def get("https://masto.quad.moe/users/_HellPie", [Accept: "application/activity+json"], _) do
676 {:ok,
677 %Response{
678 status_code: 200,
679 body: File.read!("test/fixtures/httpoison_mock/hellpie.json")
680 }}
681 end
682
683 def get("https://niu.moe/users/rye", [Accept: "application/activity+json"], _) do
684 {:ok,
685 %Response{
686 status_code: 200,
687 body: File.read!("test/fixtures/httpoison_mock/rye.json")
688 }}
689 end
690
691 def get(
692 "https://mst3k.interlinked.me/users/luciferMysticus",
693 [Accept: "application/activity+json"],
694 _
695 ) do
696 {:ok,
697 %Response{
698 status_code: 200,
699 body: File.read!("test/fixtures/httpoison_mock/lucifermysticus.json")
700 }}
701 end
702
703 def get("https://mstdn.io/users/mayuutann", [Accept: "application/activity+json"], _) do
704 {:ok,
705 %Response{
706 status_code: 200,
707 body: File.read!("test/fixtures/httpoison_mock/mayumayu.json")
708 }}
709 end
710
711 def get(
712 "http://mastodon.example.org/@admin/99541947525187367",
713 [Accept: "application/activity+json"],
714 _
715 ) do
716 {:ok,
717 %Response{
718 status_code: 200,
719 body: File.read!("test/fixtures/mastodon-note-object.json")
720 }}
721 end
722
723 def get(
724 "https://mstdn.io/users/mayuutann/statuses/99568293732299394",
725 [Accept: "application/activity+json"],
726 _
727 ) do
728 {:ok,
729 %Response{
730 status_code: 200,
731 body: File.read!("test/fixtures/httpoison_mock/mayumayupost.json")
732 }}
733 end
734
735 def get("https://shitposter.club/notice/7369654", _, _) do
736 {:ok,
737 %Response{
738 status_code: 200,
739 body: File.read!("test/fixtures/httpoison_mock/7369654.html")
740 }}
741 end
742
743 def get("https://shitposter.club/api/statuses/show/7369654.atom", _body, _headers) do
744 {:ok,
745 %Response{
746 status_code: 200,
747 body: File.read!("test/fixtures/httpoison_mock/7369654.atom")
748 }}
749 end
750
751 def get("https://baptiste.gelez.xyz/~/PlumeDevelopment/this-month-in-plume-june-2018/", _, _) do
752 {:ok,
753 %Response{
754 status_code: 200,
755 body: File.read!("test/fixtures/httpoison_mock/baptiste.gelex.xyz-article.json")
756 }}
757 end
758
759 def get("https://baptiste.gelez.xyz/@/BaptisteGelez", _, _) do
760 {:ok,
761 %Response{
762 status_code: 200,
763 body: File.read!("test/fixtures/httpoison_mock/baptiste.gelex.xyz-user.json")
764 }}
765 end
766
767 def get(url, body, headers) do
768 {:error,
769 "Not implemented the mock response for get #{inspect(url)}, #{inspect(body)}, #{
770 inspect(headers)
771 }"}
772 end
773
774 def post(url, _body, _headers) do
775 {:error, "Not implemented the mock response for post #{inspect(url)}"}
776 end
777
778 def post(url, _body, _headers, _options) do
779 {:error, "Not implemented the mock response for post #{inspect(url)}"}
780 end
781 end