Tests refactoring

Include the URL of your launchpad blueprint:

https://blueprints.launchpad.net/zaqar/+spec/tests-refactoring

Zaqar tests are currently split into 2 different places, we want to reunite them.

Problem description

Tests currently exists in the tests top directory in the tree, but most of them import abstract base classes from the zaqar.tests python package and set attributes to be able to run them. There are also some tests definition in the tests directory. It’s not obvious that tests in the zaqar.tests package are not run when using tox and in the gate, and it creates confusion on where the tests should properly live.

Proposed change

Move all the tests in the zaqar.tests package, and delete the tests directory.

To be able to have a reviewable stream, we will slowly add directories in zaqar/tests to the testrepository configuration, and move them in small chunks.

Alternatives

None.

Implementation

Assignee(s)

Primary assignee:

therve

Milestones

Target Milestone for completion:

Liberty-1

Work Items

  1. Add one tests directory to .testr.conf and move the tests over

  2. Iterate over all the tests directories in zaqar/tests

  3. Move remaining tests out of tests/

Dependencies

None.

Note

This work is licensed under a Creative Commons Attribution 3.0 Unported License. http://creativecommons.org/licenses/by/3.0/legalcode