The main reason is that it could get people confuse
to have functional and scenario test cases inside
the same package as unit tests cases.
Change-Id: I63330f383f01f04a45c5542d655a1bdb24c09b75
By typing below commands it generates HTML report file
of Python test case results:
tox -e report
It generates 'report/build/testr_results.html' file.
To run test cases (for example scenario tests) and produce
report HTML file it is possible to chain tox environment
names in a list. For example:
tox -e scenario,report
Or simply:
tox -e scenario
tox -e report
This new environment is intended to be used in CI jobs
to produce reports after verifications.
Change-Id: I63d4d2977fb5b2c868361aa00db0e1334f33fa10
- Add docs CI job and Tox environment
- Create RST documentation sckeleton
- Use OpenStack theme for releasenotes job.
- Move docs/ code to doc/ folder to conform to OpenStack standards.
Change-Id: I8b917abe46125fec32076637a041a728257fa96a
OpenStack Project Testing Interface[1] extabilish a set of
rules to make sure project testing interface looks similarly
between OpenStack projects. This is intended to be
the first change in such direction.
Major improvements are:
- Remove code coverage from unit tests environments
- Reorganize tox.ini to better separate type of envs in sections
- Create an [openstack] section to unify settings for environments
that would require connecting to OpenStack (functional, scenarion,
...)
- Create scenario env to exectute all scenarion tests including
Neutron ones.
- Point to the new URL for upstream upper hand global requirements file.
Know missing things are:
- Create docs environment
- Create functional environment
- Create cover environment
[1] https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I0129e91b9fd58ac75223c8faca43e690a39061b5
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