You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---
sucess: truemessage: Test successfully deletederrors: []
tracetest apply test --file [path]
Description: Save a test to the server. If it does not yet exists on the server, it is created. Otherwise it is updated.
Input can be a file with one or more documents, or a directory with files with one or more documents. This is not transactional, so if an error happens, all changes to resources applied until the error are kept. Required flags:--file|-f input file or directory Optional Flags: none Validation:
if the given file does not have a spec.id set: The resource file does not have a ID defined in the "spec" object. Please provide a unique one. For example, you can use [SHOW A RANDOM VALID ID]
if a document's type is not Test: Invalid type [actual type]. Expected Test
---
sucess: truemessage: Test successfully appliederrors: []
tracetest run test --id [the id] or tracetest run test --file [path]
Description: Run a test by ID or from a definition file Required flags: one of --id or --file|-f Optional Flags:
--environment|-e [the id] environment ID to use
--wait-for-results|-w wait for results
--junit [path] save the results as junit in the given path. Requires --wait-for-results|-w
Validation:
if running from --file
if the given file does not have a spec.id set: The resource file does not have a ID defined in the "spec" object. Please provide a unique one. For example, you can use [SHOW A RANDOM VALID ID]
Output
Keep current behavior
The text was updated successfully, but these errors were encountered:
As the new changes are applied to the backend to move tests to the resources framework
A part of the migration is to include the CLI changes to support the test verbs, this includes:
With the update of the
run
existing method to work as it currently does, without behavioral changesVerb Definition
tracetest get test --id [the id]
Description: Get a test by ID
Required flags:
--id
Optional Flags: none
Pretty Output Example:
JSON Output Example:
YAML Output example:
tracetest list test
Description: List Tests
Required flags: none
Optional Flags:
--all
Get all results, not paginated. If passed,--take
and--skip
do nothing--take N
take N records [default: 20]--skip N
skip the first N records [default: 0]--query
get resources matching the given query stringPretty Output Example:
Total avialable Tests: 2
JSON Output Example:
YAML Output example:
tracetest delete test --id [the id]
Description: Delete a test by ID
Required flags:
--id
Optional Flags: none
Pretty Output Example:
JSON Output Example:
YAML Output Example:
tracetest apply test --file [path]
Description: Save a test to the server. If it does not yet exists on the server, it is created. Otherwise it is updated.
Input can be a file with one or more documents, or a directory with files with one or more documents. This is not transactional, so if an error happens, all changes to resources applied until the error are kept.
Required flags:
--file|-f
input file or directoryOptional Flags: none
Validation:
spec.id
set:The resource file does not have a ID defined in the "spec" object. Please provide a unique one. For example, you can use [SHOW A RANDOM VALID ID]
type
is notTest
:Invalid type [actual type]. Expected Test
Pretty Output Example:
JSON Output Example:
YAML Output Example:
tracetest run test --id [the id]
ortracetest run test --file [path]
Description: Run a test by ID or from a definition file
Required flags: one of
--id
or--file|-f
Optional Flags:
--environment|-e [the id]
environment ID to use--wait-for-results|-w
wait for results--junit [path]
save the results as junit in the given path. Requires--wait-for-results|-w
Validation:
--file
spec.id
set:The resource file does not have a ID defined in the "spec" object. Please provide a unique one. For example, you can use [SHOW A RANDOM VALID ID]
Output
Keep current behavior
The text was updated successfully, but these errors were encountered: