Skip to content

Query Parameter of Log HTTP request not returning 'rawBody' response in Zerocode #536

@byrnej14

Description

@byrnej14

Hi all,

Hoping someone may have come across this behaviour. We are trying to get recent entries of the log of a Pod in a namespace.

I am referring to this API: https://docs.okd.io/3.9/rest_api/api/v1.Pod.html#Get-api-v1-namespaces-namespace-pods-name-log

We have verified that an entire log file is returned using Zerocode when no query parameters are specified. We have also verified the query parameters work when using another tool such as Insomnia/Postman.

We currently have an issue with the query parameters for the log file HTTP request. The request is the following:

- name: get_logs
    url: "${cluster.api.endpoint}{Endpoint}/log?sinceSeconds=10000"
    method: GET
    request:
      headers:
        Authorization: ""
        Content-Type: application/json
        Version: 2.1.0
        Accept: "*/*"
      body: { }
    verify:
      status: 200

This sinceSeconds query Param returns no logs. We get a valid response with no 'rawBody' returned.

If the query param is removed entirely or if we change the Seconds to lower case 's'. Then we get the entire log in the

response:
"rawBody" : "Generating keystore /var/..... Wed Sep 14 17:10:0......." etc.  which verifies the url should be working.

This problem repeats for any of the options given in the API above. For instance tailLines=10 will return nothing. taillines=10 will return the entire log.

Either way, there are two issues. Our parameter limits are not being adhered to, but also there seems to be an issue with Upper Case letters passed in the query param.

Any thoughts appreciated!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions