just-api icon indicating copy to clipboard operation
just-api copied to clipboard

Post request common_headers ignored when asserting Content-Type header

Open matmar10 opened this issue 4 years ago • 0 comments

Example Test Case

meta:
  name: Testing headers
  enabled: true
  version: "1.0"
configuration:
  scheme: http
  host: 127.0.0.1
  port: 3027
  common_headers:
    - name: customsuiteheader
      value: custom-suite-header-value
    - name: content-type
      value: application/json
specs:
  - name: uses suite-level content-type header
    request:
      path: /echoJSONBodyResponse
      method: post
      payload:
          body:
              type: json
              content:
                  name: Kiran
    response:
        status_code: 200

Actual Behavior

Request method is post,request body is provided but Content-Type header is not provided

Expected Behavior

Suite-level common_headers should be checked when this assertion runs.

matmar10 avatar Jul 25 '20 19:07 matmar10