---
test_name: Hivemind database_api.list_comments patterns test order "by_last_update" invalid date format 3

marks:
  - patterntest
  - negative
includes:
  - !include ../../../common.yaml

stages:
  - name: list_comments by_last_update invalid date format 3
    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", "2016-08-11", "", ""],
            "limit": 10,
            "order": "by_last_update",
          }
    response:
      status_code: 200
      verify_response_with:
        function: validate_response:compare_response_with_pattern
        extra_kwargs:
          method: "invalid_date_format_3"
          directory: "database_api_negative/list_comments/by_last_update"
          error_response: true