---
test_name: Hivemind database_api.find_votes only permlink

marks:
  - patterntest # fat node didn't care about extra params
  - negative

includes:
  - !include ../../common.yaml

stages:
  - name: database_api.find_votes only permlink
    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": "gtg",
            "permlink": "witness-gtg",
            "extra_parameter": "extra"
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "extra_parameter"
          directory: "database_api_negative/find_votes"
          error_response: true
