test_database_api_patterns.tavern.yaml 24.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
---
  test_name: Hivemind database_api.find_comments patterns test

  marks:
    - patterntest

  includes:
    - !include common.yaml

  stages:
    - name: find_comments
      request:
13
        url: "{service.proto:s}://{service.server:s}:{service.port}/"
14 15 16 17 18 19 20
        method: POST
        headers:
          content-type: application/json
        json:
          jsonrpc: "2.0"
          id: 1
          method: "database_api.find_comments"
21
          params: {"comments":[["steemit","firstpost"]]}
22 23 24 25 26 27
      response:
        status_code: 200
        verify_response_with:
          function: validate_response:compare_response_with_pattern
          extra_kwargs:
            method: "find_comments"
28 29 30 31 32 33 34 35
            directory: "database_api_patterns"

########################  CASHOUT TIME  ########################
---
test_name: Hivemind database_api.list_comments patterns test order "by_cashout_time" date and author

marks:
  - patterntest
36
  - failing
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
  - xfail # shows error when there is only one of optional value (first)

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_cashout_time
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.list_comments"
        params:
          {
            "start": ["1969-12-31T23:59:59", "etcmike", ""],
            "limit": 10,
            "order": "by_cashout_time",
          }
    response:
      status_code: 200
      verify_response_with:
62
        function: validate_response:compare_response_with_pattern
63
        extra_kwargs:
64 65 66 67
          method: "list_comments_not_found_by_account"
          directory: "database_api_patterns"
          error_response: true
          ignore_tags: ["timestamp"]
68 69 70 71 72 73

---
test_name: Hivemind database_api.list_comments patterns test order "by_cashout_time" date and permlink

marks:
  - patterntest
74
  - failing
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 100 101 102 103 104
  - xfail # shows error when there is only one of optional value (first)

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_cashout_time
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.list_comments"
        params:
          {
            "start":
              [
                "1969-12-31T23:59:59",
                "",
                "re-bullionstackers-screen-it-tab-it-what-are-they-20160829t061254603z",
              ],
            "limit": 10,
            "order": "by_cashout_time",
          }
    response:
      status_code: 200
      verify_response_with:
105
        function: validate_response:compare_response_with_pattern
106
        extra_kwargs:
107 108 109 110
          method: "list_comments_not_found_by_permlink"
          directory: "database_api_patterns"
          error_response: true
          ignore_tags: ["timestamp"]
111 112

---
113
test_name: Hivemind database_api.list_comments patterns test order "by_cashout_time" very future date
114 115

marks:
116
  - patterntest # "2038-01-19T03:14:08" is the first timestamp that is "too far" for old fat node, but SQL has normal timestamps so we won't be generating error here
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_cashout_time
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.list_comments"
        params:
          {
            "start": ["2050-07-08T00:45:15", "", ""],
            "limit": 10,
            "order": "by_cashout_time",
          }
    response:
      status_code: 200
      verify_response_with:
141
        function: validate_response:compare_response_with_pattern
142
        extra_kwargs:
143 144
          method: "list_comments_future_date"
          directory: "database_api_patterns"
145

146 147 148 149 150
---
test_name: Hivemind database_api.list_comments patterns test order "by_cashout_time" no data

marks:
  - patterntest
151 152
  - failing
  - xfail
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_cashout_time
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.list_comments"
        params:
          { "start": ["", "", ""], "limit": 10, "order": "by_cashout_time" }
    response:
      status_code: 200
      verify_response_with:
173
        function: validate_response:compare_response_with_pattern
174
        extra_kwargs:
175 176 177 178
          method: "list_comments_day_of_the_month_out_of_range"
          directory: "database_api_patterns"
          error_response: true
          ignore_tags: ["timestamp"]
179 180 181 182 183 184 185 186 187 188 189 190 191


########################  PERMLINK  ########################
---
test_name: Hivemind database_api.list_comments patterns test order "by_permlink" only author

marks:
  - patterntest

includes:
  - !include common.yaml

stages:
192
  - name: list_comments_by_permlink
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.list_comments"
        params: { "start": ["gtg", ""], "limit": 10, "order": "by_permlink" }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_comments_permlink"
          directory: "database_api_patterns"

---
test_name: Hivemind database_api.list_comments patterns test order "by_permlink" good params

marks:
  - patterntest
216
  - failing
217
  - xfail # abs_rshares/vote_rshares prior to first payout
218 219 220 221 222

includes:
  - !include common.yaml

stages:
223
  - name: list_comments_by_permlink
224 225 226 227 228 229 230 231 232 233 234 235 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 264 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
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.list_comments"
        params:
          {
            "start":
              [
                "skypilot",
                "an-introduction-to-where-eagles-fly-the-american-wilderness-expedition-by-zedekiah-morse",
              ],
            "limit": 10,
            "order": "by_permlink",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_comments_permlink_good_params"
          directory: "database_api_patterns"


########################  PARENT  ########################
---
test_name: Hivemind database_api.list_comments patterns test order "by_parent"

marks:
  - patterntest

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_parent
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.list_comments"
        params:
          {
            "start": ["gtg", "hello-world", "", ""],
            "limit": 10,
            "order": "by_parent",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_comments_parent"
          directory: "database_api_patterns"

---
test_name: Hivemind database_api.list_comments patterns test order "by_parent" no data

marks:
291
  - patterntest # first 2 params are required
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_parent
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.list_comments"
        params:
          {
            "start": ["", "", "", ""],
            "limit": 10,
            "order": "by_parent",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_comments_parent_no_data"
          directory: "database_api_patterns"

---
test_name: Hivemind database_api.list_comments patterns test order "by_parent" no data

marks:
  - patterntest

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_parent
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.list_comments"
        params:
          {
            "start": ["vi1son", "", "", ""],
            "limit": 10,
            "order": "by_parent",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_comments_parent_parent_author"
          directory: "database_api_patterns"

---
test_name: Hivemind database_api.list_comments patterns test order "by_parent" required data

marks:
  - patterntest

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_parent
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.list_comments"
        params:
          {
            "start": ["knozaki2015", "re-givemeyoursteem-winners-of-steemit-food-challenge-3-desserts-to-die-for-20160828t181032961z", "", ""],
            "limit": 10,
            "order": "by_parent",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_comments_parent_required_data"
          directory: "database_api_patterns"

---
test_name: Hivemind database_api.list_comments patterns test order "by_parent" all data

marks:
  - patterntest

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_parent
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.list_comments"
        params:
          {
            "start": ["allasyummyfood", "re-givemeyoursteem-winners-of-steemit-food-challenge-3-desserts-to-die-for-20160829t004616466z", "vlad", "re-allasyummyfood-re-givemeyoursteem-winners-of-steemit-food-challenge-3-desserts-to-die-for-20160829t011002757z"],
            "limit": 10,
            "order": "by_parent",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_comments_parent_all_data"
          directory: "database_api_patterns"

---
test_name: Hivemind database_api.list_comments patterns test order "by_parent" not full parent_permlink

marks:
  - patterntest

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_parent
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.list_comments"
        params:
          {
            "start": ["allasyummy", "re-givemeyoursteem-winner", "vlad", "re-allasyummyfood-re-givemeyoursteem-winners-of-steemit-food-challenge-3-desserts-to-die-for-20160829t011002757z"],
            "limit": 10,
            "order": "by_parent",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_comments_parent_not_full_data"
          directory: "database_api_patterns"

########################  AUTHOR LAST UPDATE  ########################
---
test_name: Hivemind database_api.list_comments patterns test order "by_author_last_update" correct date

marks:
462
  - patterntest # incomparable with original (bug in fat node using wrong index)
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_author_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: "database_api.list_comments"
        params:
          {
            "start": ["", "2016-08-28T17:15:12", "", ""],
            "limit": 10,
            "order": "by_author_last_update",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_comments_author_last_update_corr_date"
          directory: "database_api_patterns"

---
test_name: Hivemind database_api.list_comments patterns test order "by_author_last_update" correct date author and permlink

marks:
496
  - patterntest # incomparable with original (bug in fat node using wrong index)
497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_author_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: "database_api.list_comments"
        params:
          {
            "start": ["", "2016-08-28T17:15:12", "givemeyoursteem", "winners-of-steemit-food-challenge-3-desserts-to-die-for"],
            "limit": 10,
            "order": "by_author_last_update",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_comments_author_last_update_corr_dap"
          directory: "database_api_patterns"

---
test_name: Hivemind database_api.list_comments patterns test order "by_author_last_update" correct author and date

marks:
530
  - patterntest # incomparable with original (bug in fat node using wrong index)
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 560 561 562 563

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_author_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: "database_api.list_comments"
        params:
          {
            "start": ["givemeyoursteem", "2016-08-28T17:15:12", "", ""],
            "limit": 10,
            "order": "by_author_last_update",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_comments_author_last_update_corr_author_date"
          directory: "database_api_patterns"

---
test_name: Hivemind database_api.list_comments patterns test order "by_author_last_update" not full author and corr date

marks:
564
  - patterntest # incomparable with original (bug in fat node using wrong index); output should be the same as prev test or with completely diff author
565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_author_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: "database_api.list_comments"
        params:
          {
            "start": ["givemeyo", "2016-08-28T17:15:12", "", ""],
            "limit": 10,
            "order": "by_author_last_update",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_comments_author_last_update_author_date"
          directory: "database_api_patterns"

########################  LAST UPDATE  ########################
---
test_name: Hivemind database_api.list_comments patterns test order "by_last_update"

marks:
  - patterntest
600 601
  - failing
  - xfail
602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_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: "database_api.list_comments"
        params:
          { "start": ["", "", "", ""], "limit": 10, "order": "by_last_update" }
    response:
      status_code: 200
      verify_response_with:
622
        function: validate_response:compare_response_with_pattern
623
        extra_kwargs:
624 625 626 627
          method: "list_comments_day_out_of_range_empty"
          directory: "database_api_patterns"
          error_response: true
          ignore_tags: ["timestamp"]
628 629 630 631
---
test_name: Hivemind database_api.list_comments patterns test order "by_last_update" date in author

marks:
632
  - patterntest # first arg is author, not date (error about date)
633
  - failing
634
  - xfail
635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659


includes:
  - !include common.yaml

stages:
  - name: list_comments_by_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: "database_api.list_comments"
        params:
          {
            "start": ["2016-08-24T21:29:42", "", "", ""],
            "limit": 10,
            "order": "by_last_update",
          }
    response:
      status_code: 200
      verify_response_with:
660
        function: validate_response:compare_response_with_pattern
661
        extra_kwargs:
662 663 664 665
          method: "list_comments_day_out_of_range_start_0"
          directory: "database_api_patterns"
          error_response: true
          ignore_tags: ["timestamp"]
666 667 668 669 670 671
---
test_name: Hivemind database_api.list_comments patterns test order "by_last_update" good date

marks:
  - patterntest
  - failing
672
  - xfail # differences in rshares/weight after empty payout
673 674 675 676 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 702 703 704 705 706


includes:
  - !include common.yaml

stages:
  - name: list_comments_by_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: "database_api.list_comments"
        params:
          {
            "start": ["", "2016-08-24T21:29:42", "", ""],
            "limit": 10,
            "order": "by_last_update",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_comments_last_update_good_date"
          directory: "database_api_patterns"

---
test_name: Hivemind database_api.list_comments patterns test order "by_last_update" very future date

marks:
707 708
  - patterntest # "2038-01-19T03:14:08" is the first timestamp that is "too far" for old fat node, but SQL has normal timestamps so we won't be generating error here
                # on a side note it generally makes no sense to run it without parent author specification
709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_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: "database_api.list_comments"
        params:
          {
            "start": ["", "2050-08-24T21:29:42", "", ""],
            "limit": 10,
            "order": "by_last_update",
          }
    response:
      status_code: 200
      verify_response_with:
733
        function: validate_response:compare_response_with_pattern
734
        extra_kwargs:
735 736
          method: "list_comments_day_out_of_range_start_2"
          directory: "database_api_patterns"
737

738 739 740 741
---
test_name: Hivemind database_api.list_comments patterns test order "by_last_update" future date

marks:
742
  - patterntest # show last comments in base
743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_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: "database_api.list_comments"
        params:
          {
            "start": ["", "2022-08-24T21:29:42", "", ""],
            "limit": 10,
            "order": "by_last_update",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_comments_by_last_update_future_date"
          directory: "database_api_patterns"

---
test_name: Hivemind database_api.list_comments patterns test order "by_last_update" wrong day

marks:
  - patterntest
777 778
  - failing
  - xfail
779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797

includes:
  - !include common.yaml

stages:
  - name: list_comments_by_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: "database_api.list_comments"
        params:
          {
            "start": ["", "2016-04-66T21:29:42", "", ""],
            "limit": 10,
798
            "order": "by_last_update"
799 800 801 802
          }
    response:
      status_code: 200
      verify_response_with:
803
        function: validate_response:compare_response_with_pattern
804
        extra_kwargs:
805 806 807
          method: "list_comments_day_out_of_range_start_3"
          directory: "database_api_patterns"
          error_response: true
808 809 810 811 812 813 814
          ignore_tags: ["timestamp"]


---
test_name: Hivemind database_api.list_votes patterns test order "by_voter_comment"

marks:
815
  - patterntest
816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848

includes:
  - !include common.yaml

stages:
  - name: list_votes_by_voter_comment
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.list_votes"
        params:
          {
            "start":["nxt2", "roelandp", "tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours"],
            "limit": 10,
            "order": "by_voter_comment",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_votes_by_voter_comment"
          directory: "database_api_patterns"

---
test_name: Hivemind database_api.list_votes patterns test order "by_comment_voter"

marks:
849
  - patterntest
850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878

includes:
  - !include common.yaml

stages:
  - name: list_votes_by_comment_voter
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.list_votes"
        params:
          {
            "start":["roelandp", "tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours", "nxt2"],
            "limit": 10,
            "order": "by_comment_voter",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "list_votes_by_comment_voter"
          directory: "database_api_patterns"

879
---
880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910
test_name: Hivemind database_api.find_votes patterns test

marks:
  - patterntest

includes:
  - !include common.yaml

stages:
  - name: find_votes
    request:
      url: "{service.proto:s}://{service.server:s}:{service.port}/"
      method: POST
      headers:
        content-type: application/json
      json:
        jsonrpc: "2.0"
        id: 1
        method: "database_api.find_votes"
        params:
          {
            "author":"roelandp",
            "permlink":"tldr-an-exploration-in-steem-botting-what-i-learned-since-it-s-inception-and-downfall-over-the-course-of-20-hours"
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "find_votes"
          directory: "database_api_patterns"