Redirect Python warnings to logging system.
Use 'debug' option in tobiko.conf to silence:
[default]
debug = false
or to log them:
[default]
debug = true
Change-Id: I7fce53f50a914a35bd2febb8d08abb793c279189
Refactor fixture manager to avoid reverse control pattern.
test cases method dependency on fixtures is now obtained
from default parameter values discovered from test case
methods signatures.
Change-Id: I4eb04189adb9aab27923b167910f32c49c33d8e0
Arie: we have are still discussing about this!
- OVS is not the default virtual switch of OSP any more.
- the discussion about the workflow is still in progress
- Please stop using OS-Fault until you didn't understood my point about system operations. I am writing a complete design document regarding why and what Tobiko is.
- Please be patient. :-(
- a test case called floating IP is definitively the last place where I would execute this operation.
Change-Id: I42beebab204f3baae67cc9eefcc31ccf0312f607
The code is completely safe and will run only if os-faults configuration is present.
This reverts commit b9dfc8c04c.
Change-Id: I79b6919fed22e7b28a5e51098562c28fb130153f
Add basic structure file for supporting Tobiko run command.
The command will be used for generating configuration and run
the tests.
Change-Id: I046b3a85e2ad3d73f983d2be0c804ee863d56d9c
Make Tobiko an InfraRed plugin for simple and fine-grained
executions (both personal and in CI/CD environments).
This patch add a plugin spec, main entry playbook and several
tasks for basic config & run execution.
Change-Id: Ifcff4d79b4c920c28cc8170c4b8a8e9821c7b70d
Added:
* Faults manager - a compnent for managing faults (load them,
connect os-faults to cloud, exdcute faults, etc.).
* Faults for test_floatingip test class
Also, modified test_floatingip tests to run faults
if faults manager set up properly (loaded configuration file,
managed to connect the nodes of the cloud, etc.).
Change-Id: I1dd48bc9a7cc385a46d9b3b2382000581a614b42
Allow to decople global fixture definition from test
cases.
Fixtures can be defined as a subclass of tobiko.Fixture
class MyFixture(tobiko.Fixture):
...
Tobiko will reference to it as: '<module-name>.MyFixture'
where module-name is the full name of the module where
the class is defined. Fixture name are accessible via
'fixture_name' class attribute.
tobiko.Fixture subclass has to implement bellow methods
def create_fixture(self):
# mandatory
...
def delete_fixture(self):
# optional method
...
Test cases to create a fixture should mane one of below
calls:
fixture = tobiko.create_fixture(<fixture-name>)
fixture = tobiko.create_fixture(<fixture-class>)
Existing fixtures can be find using one of below calls:
fixture = tobiko.get_fixture(<fixture-name>)
fixture = tobiko.get_fixture(<fixture-class>)
Existing fixtures can be deleted using one of below calls:
tobiko.delete_fixture(<fixture-name>)
tobiko.delete_fixture(<fixture-class>)
Change-Id: I5c104a732234ab2183fbfb9909cba4a445f59b60