Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: List supported search criteria for jobs/overview route #4402

Merged
merged 1 commit into from Dec 15, 2021

Conversation

okurz
Copy link
Member

@okurz okurz commented Dec 13, 2021

Output in the openqa-cli help:

  # List the latest jobs matching the search criteria
  # supported search criteria: distri, version, flavor, build, test, modules, modules_result, module_re, group, groupid, id
  openqa-cli api --osd jobs/overview groupid=135 distri=caasp version=3.0

Related progress issue: https://progress.opensuse.org/issues/103864

@coolgw
Copy link
Contributor

coolgw commented Dec 13, 2021

Checked, result is OK.
susetest:/home/openqa/openQA/script # ./openqa-cli api --help
Usage: openqa-cli api [OPTIONS] PATH [PARAMS]

Show details for job from localhost

openqa-cli api jobs/4160811

....

List all jobs matching the search criteria

openqa-cli api --osd jobs groupid=135 distri=caasp version=3.0 latest=1

List the latest jobs matching the search criteria

supported search criteria: distri, version, flavor, build, test, modules, modules_result, module_re, group, groupid, id

openqa-cli api --osd jobs/overview groupid=135 distri=caasp version=3.0

lib/OpenQA/Constants.pm Outdated Show resolved Hide resolved
Output in the openqa-cli help:

```
  # List the latest jobs matching the search criteria
  # supported search criteria: distri, version, flavor, build, test, modules, modules_result, module_re, group, groupid, id
  openqa-cli api --osd jobs/overview groupid=135 distri=caasp version=3.0
```

Related progress issue: https://progress.opensuse.org/issues/103864
@codecov
Copy link

codecov bot commented Dec 14, 2021

Codecov Report

Merging #4402 (10e3353) into master (aa9bed1) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4402      +/-   ##
==========================================
- Coverage   97.95%   97.95%   -0.01%     
==========================================
  Files         372      372              
  Lines       33834    33830       -4     
==========================================
- Hits        33141    33137       -4     
  Misses        693      693              
Impacted Files Coverage Δ
lib/OpenQA/CLI/api.pm 100.00% <100.00%> (ø)
lib/OpenQA/Constants.pm 100.00% <100.00%> (ø)
lib/OpenQA/WebAPI/Plugin/Helpers.pm 99.16% <100.00%> (-0.03%) ⬇️
t/43-cli-api.t 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa9bed1...10e3353. Read the comment docs.

@mergify mergify bot merged commit 494bddc into os-autoinst:master Dec 15, 2021
@okurz okurz deleted the feature/client_doc branch December 15, 2021 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants