action #58319
closed[openqa-client] make --form visible in the help output
Description
openqa-client has a hidden parameter, the --form parameter, which is necessary for some calls. it should be in the help output with a proper description
i try to make a API call to job_templates_scheduling/num:id using post with openqa-client and because of the big size of the yaml file passed to the template, it returns 414 - Request-URI Too Long.
For example the following command
openqa-client --host http://somehost.suse.cz --apikey xxx --apisecret yyy job_templates_scheduling/1 post --form schema=JobTemplates-01.yaml preview=0 template="$(cat JobGroups/SLE_15_YaST.yaml)"
without the --form is failing with Error 414 - Request-URI Too Long
because JobGroups/SLE_15_YaST.yaml is too big. Although with a small yaml file the call works even without the parameter, but it doesnt seem to be the right approach.
Updated by coolo about 5 years ago
- Priority changed from Normal to High
- Target version set to Ready
We should have a --file parameter if we want yaml to be uploaded
Updated by mkittler about 5 years ago
- Status changed from New to In Progress
PR: https://github.com/os-autoinst/openQA/pull/2478
Note that there's no --file
but there's --params
to read parameters from a JSON file. It is already documented but likely not useful to post YAML because one needed to prepare a JSON file like {"template":"products: {}\nscenarios: {}"}
.
Updated by mkittler about 5 years ago
- Target version changed from Ready to Current Sprint
Updated by mkittler about 5 years ago
- Status changed from In Progress to Resolved
- Target version changed from Current Sprint to Done
PR has been merged