Project

General

Profile

action #80506

post/put on test_suites always denied with "Missing parameter: name"

Added by okurz 4 months ago.

Status:
Workable
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2020-11-27
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Observation

$ echo '{"name": "foo"}' | openqa-cli api --host http://localhost --json --pretty -X post test_suites
400 Bad Request
{
   "error" : "Missing parameter: name",
   "error_status" : 400
}

Acceptance criteria

  • AC1: Either the above method works or the error output is more explicit

Suggestions

  • t/api/07-testsuites.t looks correct but it does not seem to work with the client. Crosscheck what is the difference

Workaround

either use dump-templates+load-templates, e.g. Fedora are using their complete tests definitions this way, or use inline definitions which you can also share when for example you use a YAML parser within your repo that can crossreference multiple documents. Then only publish the expanded YAML documents to openQA for the individual job groups

Also available in: Atom PDF