]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Refactor the subnetpools API tests
authorNuman Siddique <nusiddiq@redhat.com>
Thu, 16 Jul 2015 07:35:06 +0000 (13:05 +0530)
committerNuman Siddique <nusiddiq@redhat.com>
Thu, 17 Dec 2015 16:21:40 +0000 (21:51 +0530)
commit179e9dbe03ad4fadcdab619d67cfbc80b36ee653
tree2c2a11ba167ca370cd873bcc313aeae40d3a1fe3
parent681e1ff1af25ad8cc5c4748b5b2467a1766ff392
Refactor the subnetpools API tests

test_create_dual_stack_subnets_from_subnetpools
was not cleaning the created subnetpool.
In order to address this issue, this patch
  - adds the cleanup of subnetpools in base.resource_cleanup
  - and removes the calls to the function addCleanup in the
    subnetpools tests.

This patch also removes the CRUD subnetpools functions
from network_client.py as it is not required.

Change-Id: I7ad902dbb303ab9e5d01caceb59cc16f7902aaf9
Closes-bug: #1475176
neutron/tests/api/base.py
neutron/tests/api/test_address_scopes_negative.py
neutron/tests/api/test_subnetpools.py
neutron/tests/api/test_subnetpools_negative.py
neutron/tests/tempest/services/network/json/network_client.py