-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'expand' subcommand to list jobs and templates in a test plan (Ne…
…w) (#1065) * Add 'expand' subcommand to list jobs and templates in a test plan The new subcommand "expands" a given test plan by going through all its sections and returning the pure (non-instantiated) jobs and templates being used. It is different from the "list-boostrapped" subcommand since it does not perform any bootstrap. By default, it outputs the jobs/templates id as text, but it can be called with the `--format json` option to output JSON data with all the known information for said jobs and templates. This is to be used by external tools, for instance to create a document listing information (summary, description...) about executed jobs and templates. Fix CHECKBOX-1263 * Rename plainbox.impl.secure.qualifiers.select_jobs() to select_units() The select_jobs() function can actually be called with not only a list of jobs, but also templates. * Rename IJobQualifier to IUnitQualifier Qualifiers can be used on jobs as well as templates. * Add unit tests * Sort the unit list before returning it Sort the unit list by id/template-id before printing it out. In addition, sort the keys inside each JSON record for easier comparison.
- Loading branch information
Showing
12 changed files
with
359 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.