plainbox.impl.integration_tests – integration tests

Warning

THIS MODULE DOES NOT HAVE STABLE PUBLIC API

class plainbox.impl.integration_tests.IntegrationTests(methodName='runTest', parameters=None)[source]

Test cases for checking execution and outcome of checkbox jobs. Each test case is parametrized by the job id and execution “profile”.

The profile is simply a string that somehow characterizes where this test is applicable.

cache = <plainbox.testing_utils.resource.ResourceCache object at 0x2b190c233190>
classmethod get_parameter_values()[source]

Implementation detail of TestCaseWithParameters

Creates subsequent tuples for each job that has reference data

parameter_names = ('scenario_pathname',)
setUp()[source]
skip_if_incompatible()[source]

Skip a job if it is incompatible with the current environment

tearDown()[source]
test_job_outcome()[source]
test_job_return_code()[source]
plainbox.impl.integration_tests.execute_job(job_id)[source]

Execute the specified job.

The job is invoked using a high-level interface from box so the test will actually execute the same way as the UI would execute it. It will create/tear-down appropriate session objects as well.

Returns (result, return_code) where result is the deserialized JSON saved at the end of the job.

plainbox.impl.integration_tests.load_scenario_data(scenario_pathname)[source]

Load and return scenario data.

Data is loaded from a .json file located in the plainbox package directory. Individual files are named after the jobs they describe.

Previous topic

plainbox.impl.highlevel – High-level API

Next topic

plainbox.impl.job – job definition

This Page