Scroll to navigation

openqa-client(1) openQA Documentation openqa-client(1)

NAME

openqa-client - deprecated script for talking to an openQA server

SYNOPSIS

This script is deprecated, use openqa-cli instead

openqa-client [OPTIONS] PATH

OPTIONS

Connect to specified host, defaults to localhost
Load get/post parameters from a json file. For example

{
"FLAVOR" : "DVD",
"BUILD" : "42",
"ARCH" : "i586",
"DISTRI" : "opensuse",
"VERSION" : "26", }

Set API base URL component, default: '/api/v1'
Output JSON instead of Perl structures.
Output YAML instead of Perl structures.
Send Accept header to explicitly tell the API what format is accepted

Returning YAML is deprecated, and currently only one endpoint (job_templates_scheduling) is able to return YAML anyway.

By default, "Accept: */*" is sent.

Be verbose in output.
Specify api key and secret to use, overrides use of config file ~/.config/openqa/client.conf
Send JSON data; expected by certain routes

For example: jobs/639172 put --json-data '{"group_id": 1}'

Send form data (application/x-www-form-urlencoded) instead of appending supplied parameters as URL query; expected by certain routes

This is for instance used to post job templates, e.g.:

job_templates_scheduling/1 post --form schema=JobTemplates-01.yaml preview=0 template="$(cat foo.yaml)"

To create nested forms use dotted syntax, e.g.:

jobs/1/artefact post --form file.file=bar file.filename=bar.log

print help

Archive mode

Archive mode: Download assets and test results from a job to DIRECTORY.
Archive mode: Include thumbnails
Archive mode: Download assets that do not exceed the specified limit in bytes The default limit is 200 MB.

SYNOPSIS

Interact with the openQA API by specified route entry points and optionally operations, defaults to the 'get' operation, i.e. just reading out the data without changing it. See the help on the openQA instance you want to access for available API routes.

Common top level entry points: jobs, workers, isos.

List all jobs. Caution: this will take a very long time or even timeout on big productive instances.
List all jobs matching the specified search criteria.
List the latest jobs for the latest build in the given scenario. In contrast to the route above, this will limit the results to the latest build in the same way the test result overview in the web UI does.
Show details of job nr. 1.
Delete job nr. 1 (permissions read from config file).
Trigger jobs on iso bar.iso matching test suite blah.
Download all assets and test logs and images from job 42 with asset limit of 1GB to /path/to/directory.
2024-04-25 openQA 4.6.1712926289.b0d689b52