Transformers refactoring

After checking all the transformers, we have found out that create_placeholder_vertex
method and the _create_neighbor method should move to the transformer_base class.
Thus all the transformers will be able to use the same methods.

Change-Id: Ie7275acc6d292a392d49dbe8ae863244723fe7fd
This commit is contained in:
Alexey Weyl 2017-01-08 12:25:45 +00:00
parent b8f4e62b3b
commit 2623cb3cb2
2 changed files with 13 additions and 6 deletions
vitrage_tempest_tests/tests/api/topology

@ -34,7 +34,9 @@ class BaseTopologyTest(BaseApiTest):
def _rollback_to_default(self):
self._delete_entities()
api_graph = self.vitrage_client.topology.get(
limit=4, root='RESOURCE:openstack.cluster', all_tenants=1)
limit=4,
root='RESOURCE:openstack.cluster:OpenStack Cluster',
all_tenants=1)
graph = self._create_graph_from_graph_dictionary(api_graph)
entities = self._entities_validation_data()
num_default_entities = self.num_default_entities + \

@ -259,7 +259,9 @@ class TestTopology(BaseTopologyTest):
# Calculate expected results
api_graph = self.vitrage_client.topology.get(
limit=2, root='RESOURCE:openstack.cluster', all_tenants=1)
limit=2,
root='RESOURCE:openstack.cluster:OpenStack Cluster',
all_tenants=1)
graph = self._create_graph_from_graph_dictionary(api_graph)
entities = self._entities_validation_data(
host_entities=1, host_edges=1)
@ -288,7 +290,9 @@ class TestTopology(BaseTopologyTest):
# Calculate expected results
api_graph = self.vitrage_client.topology.get(
limit=3, root='RESOURCE:openstack.cluster', all_tenants=1)
limit=3,
root='RESOURCE:openstack.cluster:OpenStack Cluster',
all_tenants=1)
graph = self._create_graph_from_graph_dictionary(api_graph)
entities = self._entities_validation_data(
host_entities=1,
@ -321,9 +325,10 @@ class TestTopology(BaseTopologyTest):
num_volumes=self.NUM_VOLUME)
# Calculate expected results
self.vitrage_client.topology.get(limit=2,
root='RESOURCE:openstack.cluster',
all_tenants=1)
self.vitrage_client.topology.get(
limit=2,
root='RESOURCE:openstack.cluster:OpenStack Cluster',
all_tenants=1)
except ClientException as e:
self.assertEqual(403, e.code)
self.assertEqual(