test_condenser_api_patterns.tavern.yaml 24.4 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
---
  test_name: Hivemind condenser_api.get_discussions_by_hot patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_discussions_by_hot
      request:
13
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_discussions_by_hot"
          params: {"tag":"steem","limit":1}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_discussions_by_hot"
            directory: "condenser_api_patterns"

---
  test_name: Hivemind condenser_api.get_discussions_by_promoted patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_discussions_by_promoted
      request:
42
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_discussions_by_promoted"
          params: {"tag":"steem","limit":1}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_discussions_by_promoted"
            directory: "condenser_api_patterns"

---
  test_name: Hivemind condenser_api.get_discussions_by_created patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_discussions_by_created
      request:
71
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_discussions_by_created"
          params: {"tag":"steem","limit":1}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_discussions_by_created"
            directory: "condenser_api_patterns"

---
  test_name: Hivemind condenser_api.get_discussions_by_blog patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_discussions_by_blog
      request:
100
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_discussions_by_blog"
          params: {"tag":"steemit","start_author":"steemit","start_permlink":"firstpost","limit":1}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_discussions_by_blog"
            directory: "condenser_api_patterns"

---
  test_name: Hivemind condenser_api.get_discussions_by_feed patterns test

  marks:
Pawel Maniora's avatar
Pawel Maniora committed
121
    - patterntest # can't find any params that would give nonempty results, tag is not a tag but account
122
123
124
125
126
127
128

  includes:
    - !include common.yaml

  stages:
    - name: get_discussions_by_feed
      request:
129
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_discussions_by_feed"
          params: {"tag":"steem","limit":1}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_discussions_by_feed"
            directory: "condenser_api_patterns"

---
  test_name: Hivemind condenser_api.get_discussions_by_comments patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_discussions_by_comments
      request:
158
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_discussions_by_comments"
          params: {"start_author":"admin","start_permlink":"firstpost","limit":1}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_discussions_by_comments"
            directory: "condenser_api_patterns"

Pawel Maniora's avatar
Pawel Maniora committed
175
176
177
178
179
---
  test_name: Hivemind condenser_api.get_discussions_by_comments unexpected keyword patterns test

  marks:
    - patterntest
180
    - failing
Andrzej Lisak's avatar
[ABW]:    
Andrzej Lisak committed
181
    - xfail # while this would be acceptable we should change it to invalid parameters over server error (code suggests we wanted to completely silence that, but rest passes is as generic error, old code was the same so...)
Pawel Maniora's avatar
Pawel Maniora committed
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200

  includes:
    - !include common.yaml

  stages:
    - name: get_replies_by_last_update unexpected keyword 
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_discussions_by_comments"
          params: [{"author": "steemit"}]
      response:
        status_code: 200
        verify_response_with:
201
          function: validate_response:compare_response_with_pattern
Pawel Maniora's avatar
Pawel Maniora committed
202
          extra_kwargs:
203
204
205
            method: "get_discussions_by_comments_unexpected_keyword"
            directory: "condenser_api_patterns"
            error_response: true
Pawel Maniora's avatar
Pawel Maniora committed
206

207
208
209
210
211
212
213
214
215
216
217
218
---
  test_name: Hivemind condenser_api.get_replies_by_last_update patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_replies_by_last_update
      request:
219
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_replies_by_last_update"
          params: ["admin","firstpost",1]
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_replies_by_last_update"
            directory: "condenser_api_patterns"
235

Pawel Maniora's avatar
Pawel Maniora committed
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
---
  test_name: Hivemind condenser_api.get_replies_by_last_update limit 100 patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_replies_by_last_update
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_replies_by_last_update"
          params: ["gtg","",100]
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_replies_by_last_update_limit_100"
            directory: "condenser_api_patterns"
264

Pawel Maniora's avatar
Pawel Maniora committed
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
---
  test_name: Hivemind condenser_api.get_replies_by_last_update no results patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_replies_by_last_update no results
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_replies_by_last_update"
          params: ["admin","non_existing_permlink",1]
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_replies_by_last_update_no_results"
            directory: "condenser_api_patterns"
293

Pawel Maniora's avatar
Pawel Maniora committed
294
---
295
  test_name: Hivemind condenser_api.get_replies_by_last_update over limit patterns test
Pawel Maniora's avatar
Pawel Maniora committed
296
297
298
299
300
301
302
303

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
304
    - name: get_replies_by_last_update over limit
Pawel Maniora's avatar
Pawel Maniora committed
305
306
307
308
309
310
311
312
313
314
315
316
317
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_replies_by_last_update"
          params: ["admin","non_existing_permlink",101]
      response:
        status_code: 200
        verify_response_with:
318
          function: validate_response:compare_response_with_pattern
Pawel Maniora's avatar
Pawel Maniora committed
319
          extra_kwargs:
320
321
322
            method: "get_replies_by_last_update_over_limit"
            directory: "condenser_api_patterns"
            error_response: true
323

Pawel Maniora's avatar
Pawel Maniora committed
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
---
  test_name: Hivemind condenser_api.get_replies_by_last_update blank start author patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_replies_by_last_update blank start author
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_replies_by_last_update"
          params: ["","non_existing_permlink",1]
      response:
        status_code: 200
        verify_response_with:
348
          function: validate_response:compare_response_with_pattern
Pawel Maniora's avatar
Pawel Maniora committed
349
          extra_kwargs:
350
351
352
            method: "get_replies_by_last_update_blank_start_author"
            directory: "condenser_api_patterns"
            error_response: true
353

Pawel Maniora's avatar
Pawel Maniora committed
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
---
  test_name: Hivemind condenser_api.get_replies_by_last_update invalid account name length patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_replies_by_last_update invalid account name length
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_replies_by_last_update"
          params: ["a","non_existing_permlink",1]
      response:
        status_code: 200
        verify_response_with:
378
          function: validate_response:compare_response_with_pattern
Pawel Maniora's avatar
Pawel Maniora committed
379
          extra_kwargs:
380
381
382
            method: "get_replies_by_last_update_invalid_account_name"
            directory: "condenser_api_patterns"
            error_response: true
Pawel Maniora's avatar
Pawel Maniora committed
383
            
384
385
386
387
388
389
390
391
392
393
394
395
---
  test_name: Hivemind condenser_api.get_discussions_by_author_before_date patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_discussions_by_author_before_date
      request:
396
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_discussions_by_author_before_date"
          params: {"author":"steemit","start_permlink":"firstpost","before_date":"2016-04-19T22:49:43","limit":1}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_discussions_by_author_before_date"
            directory: "condenser_api_patterns"
412

Pawel Maniora's avatar
Pawel Maniora committed
413
414
415
416
---
  test_name: Hivemind condenser_api.get_discussions_by_author_before_date patterns test

  marks:
417
    - patterntest # should return empty set - no posts before 2009 (to be investigated but works like original)
418

Pawel Maniora's avatar
Pawel Maniora committed
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
  includes:
    - !include common.yaml

  stages:
    - name: get_discussions_by_author_before_date_no_results
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_discussions_by_author_before_date"
          params: {"author":"steemit","start_permlink":"firstpost","before_date":"2009-04-19T22:49:43","limit":1}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_discussions_by_author_before_date_no_results"
            directory: "condenser_api_patterns"
441

Pawel Maniora's avatar
Pawel Maniora committed
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
---
  test_name: Hivemind condenser_api.get_discussions_by_author_before_date over limit patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_discussions_by_author over limit
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_discussions_by_author_before_date"
          params: {"author":"steemit","start_permlink":"firstpost","before_date":"2009-04-19T22:49:43","limit":101}
      response:
        status_code: 200
        verify_response_with:
466
          function: validate_response:compare_response_with_pattern
Pawel Maniora's avatar
Pawel Maniora committed
467
          extra_kwargs:
468
469
470
            method: "get_discussions_by_author_before_date_over_limit"
            directory: "condenser_api_patterns"
            error_response: true
471

472
473
474
475
476
477
478
479
480
481
482
483
---
  test_name: Hivemind condenser_api.get_post_discussions_by_payout patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_post_discussions_by_payout
      request:
484
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_post_discussions_by_payout"
          params: {"tag":"polska","limit":1}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_post_discussions_by_payout"
            directory: "condenser_api_patterns"
500

Pawel Maniora's avatar
Pawel Maniora committed
501
502
503
504
---
  test_name: Hivemind condenser_api.get_post_discussions_by_payout limit 20 test

  marks:
505
    - patterntest # differences in pending payout make it incomparable with original (also order of comments with the same payout was basically random)
506
    - failing
507
    - xfail # extra vote comes from the lack of muting functionality
Pawel Maniora's avatar
Pawel Maniora committed
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559

  includes:
    - !include common.yaml

  stages:
    - name: get_post_discussions_by_payout limit 20
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_post_discussions_by_payout"
          params: {"tag":"test","limit":20}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_post_discussions_by_payout_limit_20"
            directory: "condenser_api_patterns"

---
  test_name: Hivemind condenser_api.get_post_discussions_by_payout no results test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_post_discussions_by_payout no results
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_post_discussions_by_payout"
          params: {"tag":"non_existing_tag","limit":20}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_post_discussions_by_payout_no_results"
            directory: "condenser_api_patterns"
560

Pawel Maniora's avatar
Pawel Maniora committed
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
---
  test_name: Hivemind condenser_api.get_post_discussions_by_payout over limit test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_post_discussions_by_payout over limit
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_post_discussions_by_payout"
          params: {"tag":"tag","limit":101}
      response:
        status_code: 200
        verify_response_with:
585
          function: validate_response:compare_response_with_pattern
Pawel Maniora's avatar
Pawel Maniora committed
586
          extra_kwargs:
587
588
589
            method: "get_post_discussions_by_payout_over_limit"
            directory: "condenser_api_patterns"
            error_response: true
Pawel Maniora's avatar
Pawel Maniora committed
590

591
592
593
594
595
596
597
598
599
600
601
602
---
  test_name: Hivemind condenser_api.get_comment_discussions_by_payout patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_comment_discussions_by_payout
      request:
603
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_comment_discussions_by_payout"
          params: {"tag":"polska","limit":1}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_comment_discussions_by_payout"
            directory: "condenser_api_patterns"
619

Pawel Maniora's avatar
Pawel Maniora committed
620
621
622
623
---
  test_name: Hivemind condenser_api.get_comment_discussions_by_payout limit 100 test

  marks:
624
    - patterntest # differences in pending payout make it incomparable with original (also order of comments with the same payout was basically random)
Pawel Maniora's avatar
Pawel Maniora committed
625
626
627

  includes:
    - !include common.yaml
628

Pawel Maniora's avatar
Pawel Maniora committed
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
  stages:
    - name: get_comment_discussions_by_payout limit 100
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_comment_discussions_by_payout"
          params: {"tag":"test","limit":100}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_comment_discussions_by_payout_limit_100"
            directory: "condenser_api_patterns"
648

Pawel Maniora's avatar
Pawel Maniora committed
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
---
  test_name: Hivemind condenser_api.get_comment_discussions_by_payout no results test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_comment_discussions_by_payout no results
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_comment_discussions_by_payout"
          params: {"tag":"non_existing_tag","limit":100}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_comment_discussions_by_payout_no_results"
            directory: "condenser_api_patterns"
Pawel Maniora's avatar
Pawel Maniora committed
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701

---
  test_name: Hivemind condenser_api.get_comment_discussions_by_payout over limit test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_comment_discussions_by_payout over limit
      request:
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_comment_discussions_by_payout"
          params: {"tag":"tag","limit":101}
      response:
        status_code: 200
        verify_response_with:
702
          function: validate_response:compare_response_with_pattern
Pawel Maniora's avatar
Pawel Maniora committed
703
          extra_kwargs:
704
705
706
            method: "get_comment_discussions_by_payout_over_limit"
            directory: "condenser_api_patterns"
            error_response: true
Pawel Maniora's avatar
Pawel Maniora committed
707

708
709
710
711
712
713
714
715
716
717
718
719
---
  test_name: Hivemind condenser_api.get_blog_entries patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: get_blog_entries
      request:
720
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_blog_entries"
          params: {"account":"steemit","start_entry_id":0,"limit":1}
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_blog_entries"
            directory: "condenser_api_patterns"

---
Pawel Maniora's avatar
Pawel Maniora committed
738
  #should return reputation based on fat node, now is 0
739
740
741
  test_name: Hivemind condenser_api.get_account_reputations patterns test

  marks:
742
    - patterntest # fat node gives different answer (not only nonzero reputation but also json is generally different)
743
744
745
746
747
748
749

  includes:
    - !include common.yaml

  stages:
    - name: get_account_reputations
      request:
750
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_account_reputations"
          params: ["steemit", 1]
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_account_reputations"
            directory: "condenser_api_patterns"

---
  test_name: Hivemind condenser_api.get_reblogged_by patterns test

  marks:
771
772
773
    - patterntest
    - failing
    - xfail # reblogging does not work properly
774
775
776
777
778
779
780

  includes:
    - !include common.yaml

  stages:
    - name: get_reblogged_by
      request:
781
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
782
783
784
785
786
787
788
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "condenser_api.get_reblogged_by"
789
          params: {"author":"skypilot","permlink":"melting-rock"}
790
791
792
793
794
795
796
797
798
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "get_reblogged_by"
            directory: "condenser_api_patterns"

---
799
  test_name: Hivemind condenser_api.get_active_votes patterns test
800
801
802
803
804
805
806
807

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
808
    - name: get_active_votes
809
      request:
810
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
811
812
813
814
815
816
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
817
818
          method: "condenser_api.get_active_votes"
          params: ["biophil","test"]
819
820
821
822
823
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
824
            method: "get_active_votes"
825
            directory: "condenser_api_patterns"
826

827
---
828
  test_name: Hivemind deprecated condenser_api.get_account_votes 
829
830

  marks:
831
    - patterntest # we should probably change response to link to hive instead of steemit
832
833
834
835
836

  includes:
    - !include common.yaml

  stages:
837
    - name: get_account_votes deprecated
838
      request:
839
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
840
841
842
843
844
845
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
846
847
          method: "condenser_api.get_account_votes"
          params: ["steemit"]
848
849
850
      response:
        status_code: 200
        verify_response_with:
851
          function: validate_response:compare_response_with_pattern
852
          extra_kwargs:
853
854
855
            method: "get_account_votes_deprecated"
            directory: "condenser_api_patterns"
            error_response: true