Project

General

Profile

Actions

action #125990

open

Allow client-side validation of YAML files posted via `openqa-cli`

Added by mkittler over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2023-03-14
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Since https://github.com/os-autoinst/openQA/pull/4999 has been merged there are now already two routes that expect YAML data. So far the YAML documents are validated against a schema on the server-side. This should of course stay but it would be nice to validate the YAML documents also on the client-side to catch errors early.

Acceptance criteria

  • AC1: YAML documents specified via openqa-cli for job templates or scenario definitions are validated by the openqa-cli before the actual request is done. Errors are reported to the user and no request is done in the error case.
  • AC2: The validation can be disabled.

Related issues 1 (0 open1 closed)

Related to openQA Project - action #92311: Complete test definition from a single yaml schedule file in local test distribution folderResolvedmkittler

Actions
Actions

Also available in: Atom PDF