Skip to content

[FEATURE] Add support for passing headers when writing tests #438

@DarshitChanpura

Description

@DarshitChanpura

Is your feature request related to a problem?

This feature requests modification of the test framework currently implemented to allow usage of headers when writing tests. This would allow for usage of credentials other than admin when writing tests. This would grant more flexibility especially for security related APIs.

What solution would you like?

  • ability to use credentials other than admin when writing tests for APIs.
  - synopsis: Change password.
    path: /_plugins/_security/api/account
    method: PUT
    headers:
      authorization: "Basic <base64-encoded-string>"   <----
    request_body:
      payload:
        current_password: "myWeakPassword123!"
        password: "myStrongPassword123!"
    response:
      status: 200

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions