]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Simplify retargetable test framework
authorMaru Newby <marun@redhat.com>
Tue, 24 Mar 2015 01:30:11 +0000 (01:30 +0000)
committerMaru Newby <marun@redhat.com>
Tue, 31 Mar 2015 20:13:04 +0000 (20:13 +0000)
commit5723970e5fd9fcb44f791881bef56cabf514a857
treef125dd86b63d7ad5f41641696c8729ac8ffa3e0c
parent15a507afb18ebfd0b65b97c6d41a9d490ebdb040
Simplify retargetable test framework

The retargetable testing prototype previously relied on each test case
defining the 'scenarios' attribute used to parametize testing with
testscenarios.  Anticipating the requirement to retrofit the imported
tempest api test cases, this change moves scenario definition to a
base class since scenarios are common across all api tests.

This change also sets the retargetable test to skip when invoked
against rest.  Tempest uses class-level setup for auth and this needs
to be broken out into fixtures before the retargetable testing will
work again.

Change-Id: I70eb21db9b983d45e9bcc7ea90e36f202d3e3e45
14 files changed:
neutron/tests/api/__init__.py
neutron/tests/api/base_v2.py [deleted file]
neutron/tests/api/test_v2_rest.py [deleted file]
neutron/tests/functional/__init__.py
neutron/tests/functional/api/test_v2_plugin.py [deleted file]
neutron/tests/retargetable/__init__.py [new file with mode: 0644]
neutron/tests/retargetable/base.py [new file with mode: 0644]
neutron/tests/retargetable/client_fixtures.py [new file with mode: 0644]
neutron/tests/retargetable/rest_fixture.py [new file with mode: 0644]
neutron/tests/retargetable/test_example.py [new file with mode: 0644]
neutron/tests/tempest/README.rst
neutron/tests/unit/ml2/test_ml2_plugin.py
neutron/tests/unit/testlib_api.py
tox.ini