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
This will allow us to support resources creation by using
Ansible playbooks.
Also, updated the floatinip playbook to include tasks for removing
an istnace. As opposed to Heat, where we can just specify the stack
name to remove it, to remove Ansible resources we need
to specify their names (since there is no bundling of resources).
Also, updated pipfile with Ansible requirement and removed walk
assert since there is no need to test it, it doesn't tells us
anything about Tobiko funcionaility.
Change-Id: I7581818934fca635ddb9b037ecee7ceae7a02010
- add py36 environment
- separate unit tests requirements from neturon test cases
- rename zuul project file
- remote tempest from unit tests requirements
Change-Id: I7b054f679c44cde70d00d1f030853b0c6f528d4d
- separate pylint tox environment from pep8 one
- separate neutron tox environment from base ones (py27,py35,...)
Change-Id: Ib6e04a6c0d7e49a49c3d4386e15434f4d7b18502
Let separate test cases (tobiko.tests package) from framework
(the rest of tobiko).
- Move test case dependencies to test-requirements.txt file.
- Keep only requirements.txt as framework requirements file.
- Add python-networkclient dependency to tobiko framework
- update tox.ini to use it for checking code before committing it
Change-Id: I0bc433153e00a1c83dbf691bfe058a1ccb1a49dd