Update edge direction

Host contains instance, so the direction of the side is that the host points to the insatnce

Change-Id: I24703c1a257a4cdadd0506b55d835a68841ff0ea
This commit is contained in:
Q.hongtao 2020-08-18 15:09:15 +08:00
parent 6631134c9f
commit baea187596

View File

@ -71,16 +71,17 @@ class TestEntityGraphManager(base.TestBaseProcessor):
entity_graph = NXGraph("Entity Graph")
# create vertex properties
vertex1 = self._update_vertex_to_graph(entity_graph,
EntityCategory.RESOURCE,
'INSTANCE',
'12345',
False, True, {})
vertex2 = self._update_vertex_to_graph(entity_graph,
EntityCategory.RESOURCE,
'HOST',
'54321',
False, True, {})
vertex2 = self._update_vertex_to_graph(entity_graph,
EntityCategory.RESOURCE,
'INSTANCE',
'12345',
False, True, {})
edge = self._update_edge_to_graph(entity_graph,
vertex1.vertex_id,
vertex2.vertex_id,