ppa-dev-tools:command-tests

Last commit made on 2022-08-27
Get this branch:
git clone -b command-tests https://git.launchpad.net/ppa-dev-tools
Only Bryce Harrington can upload to this branch. If you are Bryce Harrington please log in for upload directions.

Branch merges

Branch information

Name:
command-tests
Repository:
lp:ppa-dev-tools

Recent commits

84609b3... by Bryce Harrington

Add the 'tests' command

This pulls in show_running() and show_waiting() from lp-test-ppa with
some modifications to work with the current Job class, and adds a new
command called 'tests' to report these.

Note that we're not yet showing the completed results, so the command as
implemented currently is only useful when a PPA's tests are in process.

7b06ee4... by Bryce Harrington

Add a constants module

Move some constants like URLs, arch lists, etc. into a shared module.

(Thx goes to Athos' lppa for the idea.)

1c3c6fb... by Bryce Harrington

Add io module with open_url()

8fcdc4f... by Bryce Harrington

Job: Add smoketest for get_waiting() and get_running()

Extract the job info for a given ppa from static snapshots of the
autopkgtest running.json and queues.json.

86c29bf... by Bryce Harrington

Job: Fix flake/lint issues

e399374... by Bryce Harrington

Job: Refactor jobinfo out of init API

The only thing the jobinfo structure is used for is to pass in ppas and
triggers. Just pass these lists directly, thus simplifying the calling
syntax.

We'll retain use of jobinfo in the test cases for now, since it is
representative of the original data from autopkgtest.

ec87dba... by Bryce Harrington

Job: Add get_running()/get_waiting() from lp-test-ppa

Integrates these routines unchanged from lp-test-ppa, adding minimal
test cases for each.

867bb29... by Bryce Harrington

Job: Add tests, code docs, and str/repr helpers

The module can also be run as a script, to serve as a smoke test

9f5d7c7... by Bryce Harrington

Import Job class from lp-test-ppa

6c1e1a8... by Bryce Harrington

Fix lint/flake issues