UNPKG

@apistudio/apim-cli

Version:

CLI for API Management Products

53 lines (52 loc) 1.29 kB
info: testName: Get Pet version: 2 configs: globalVariables: basePath: v2 domain: petstore.swagger.io protocol: https:// inputs: - default: petId: "2" steps: - type: request method: post url: '{{ protocol }}{{ domain }}/{{ basePath }}/pet' body: category: id: 0 name: string id: 0 name: doggie photoUrls: - string status: available tags: - id: 0 name: string var: payload mode: json headers: Accept: application/json Content-Type: application/json - type: assert-equals expression: payload_response_statusCode value: 200 stoponfail: "false" - type: assert-equals expression: payload_response_header_Content-Type value: application/json stoponfail: "true" - type: request method: get url: '{{ protocol }}{{ domain }}/{{ basePath }}/pet/{{ petId }}' var: payload mode: text - type: assert-equals expression: payload_response_statusCode value: 200 stoponfail: true - type: assert-equals expression: payload_response_header_Content-Type value: application/json