lp:~zyga/checkbox/device-profiles

Created by Zygmunt Krynicki and last modified
Get this branch:
bzr branch lp:~zyga/checkbox/device-profiles
Only Zygmunt Krynicki can upload to this branch. If you are Zygmunt Krynicki please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Zygmunt Krynicki
Project:
Checkbox
Status:
Abandoned

Recent revisions

2237. By Zygmunt Krynicki

plainbox:test-data: update integration testing scenarios to the current format

The real change is anchoring the result in the "result" key and adding
"job_name" as a parameter.

Signed-off-by: Zygmunt Krynicki <email address hidden>

2236. By Zygmunt Krynicki

plainbox:integration_tests: skip scenarios that are not intended for the current profile

[work in progress]

Profile is currently hard-coded as there is no easy way to pass it from
the test loader. This needs more work.

Signed-off-by: Zygmunt Krynicki <email address hidden>

2235. By Zygmunt Krynicki

plainbox:integration_tests: replace test_job_result() with test_job_result() and test_job_return_code()

The old test_job_result() was responsible for loading and running
everything. The new methods just observe state that was established
during setUp()

Signed-off-by: Zygmunt Krynicki <email address hidden>

Conflicts:
 plainbox/plainbox/impl/integration_tests.py

2234. By Zygmunt Krynicki

plainbox:integration_tests: load scenario data and run the job (if needed) during setUp()

This allows actual test methods to simply check if some of the
job result (be it return code or the output) matches expectations
encoded in the test scenario, thus making tests easier to read.

Signed-off-by: Zygmunt Krynicki <email address hidden>

2233. By Zygmunt Krynicki

plainbox:integration_tests: parametrize integration tests by scenario path, not job name

To support testing a single job multiple times (in various configurations)
we need to decouple the test scenario from the job it operates on.

Each job can have multiple scenarios that affect it, for example
with and without dependencies, on various OS versions, with various
hardware, etc.

[ this patch breaks the tree but is shorter to review ]

Signed-off-by: Zygmunt Krynicki <<email address hidden>

2232. By Zygmunt Krynicki

plainbox:integration_tests: add load_scenario_data() and execute_job()

[work in progress, needs docstring updates]

Those functions are going to replace the current implementation of
integration test suite. They grew to be too big to keep in the test
class itself

Signed-off-by: Zygmunt Krynicki <email address hidden>

2231. By Zygmunt Krynicki

plainbox:testing_utils: add ResourceCache

[work in progress, needs to become weak]

This class allows to share data among test cases.
It is used by integration tests to run jobs once and observe multiple
properties of each job in a separate test case.

Signed-off-by: Zygmunt Krynicki <email address hidden>

2230. By Zygmunt Krynicki

"[r=zkrynicki][bug=][author=zkrynicki] automatic merge by tarmac"

2229. By Zygmunt Krynicki

"[r=zkrynicki,roadmr,brendan-donegan][bug=][author=zkrynicki] automatic merge by tarmac"

2228. By Alberto Milone

"[r=brendan-donegan][bug=][author=albertomilone] checkbox-old/scripts/color_depth_info:
1) Prevent a UnicodeDecodeError. I can reproduce this with Python 3 in Saucy (the one in Precise works fine)
2) Be more strict in the regex so that we don't catch undesired strings."

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:checkbox
This branch contains Public information 
Everyone can see this information.

Subscribers