teuthology_api.services namespace

Submodules

teuthology_api.services.helpers module

teuthology_api.services.helpers.get_run_details(run_name: str)[source]

Queries paddles to look if run is created.

teuthology_api.services.helpers.get_token(request: Request)[source]

Get access token from request.session

teuthology_api.services.helpers.get_username(request: Request)[source]

Get username from request.session

async teuthology_api.services.helpers.isAdmin(username, token)[source]
teuthology_api.services.helpers.logs_run(func, args)[source]

Run the command function in a seperate process (to isolate logs), and return logs printed during the execution of the function.

teuthology_api.services.kill module

async teuthology_api.services.kill.run(args, send_logs: bool, token: dict, request: Request)[source]

Kill running teuthology jobs.

teuthology_api.services.suite module

teuthology_api.services.suite.make_run_name(run_dic)[source]

Generate a run name. A run name looks like: teuthology-2014-06-23_19:00:37-rados-dumpling-testing-basic-plan

teuthology_api.services.suite.run(args, send_logs: bool, access_token: str)[source]

Schedule a suite. :returns: Run details (dict) and logs (list).