Skip to content

Suite custom_configuration from module ignores common_headers #35

Description

@matmar10

Steps to reproduce

configuration:
  custom_configuration:
    run_type: module
    module:
      module_path: some-module.js
      function_name: suiteConfigSync
specs:
  - name: uses suite-level custom_configuration content-type header
    request:
      path: /echoJSONBodyResponse
      method: post
      payload:
          body:
              type: json
              content:
                  name: Kiran
    response:
        status_code: 200
module.exports = {
  suiteConfigSync: function() {
    this.common_headers = [{
      name: 'content-type',
      value: 'application/json'
    }];
  }
};

Actual Behavior

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

Expected Behavior

common_headers should be honored

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions