From c4af36f44e692cabfd8ae0adc16b792ab83f317b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Branislav=20Jano=C5=A1=C3=ADk?= Date: Wed, 25 Nov 2015 09:53:02 +0100 Subject: [PATCH 1/1] Basic tests - Unification node inside MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I199d6594c21f7bfc31eb535fff7a2a55579d07e1 Signed-off-by: Branislav Janošík Signed-off-by: Samuel Kontriš --- .../010_Aggregation.robot | 26 +++++++++++++++++++ csit/variables/topoprocessing/Topologies.py | 4 +-- .../topoprocessing/TopologyRequests.py | 2 +- 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/csit/suites/topoprocessing/basic-topology-operations/010_Aggregation.robot b/csit/suites/topoprocessing/basic-topology-operations/010_Aggregation.robot index 92e7537f16..aebcc2c74b 100644 --- a/csit/suites/topoprocessing/basic-topology-operations/010_Aggregation.robot +++ b/csit/suites/topoprocessing/basic-topology-operations/010_Aggregation.robot @@ -78,3 +78,29 @@ Unification Scripting Node Inventory ${node} Element to String ${node} Should Contain X Times ${node} of-node:2 1 Should Contain X Times ${node} of-node:8 1 + +Unification Node Inside + [Documentation] Test of unification type of aggregation inside on nodes on Network Topology model + ${request} Prepare Unification Inside Topology Request ${UNIFICATION_NT_AGGREGATE_INSIDE} network-topology-model node network-topology-pcep:path-computation-client/network-topology-pcep:ip-address network-topo:1 + ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1 + Should Contain ${resp.content} topo:1 + Should Contain X Times ${resp.content} node: 4 + ${response_xml} Parse XML ${resp.content} + ${node} Get Element ${response_xml} xpath=.//node/supporting-node[node-ref='pcep:3']/.. + ${node} Element To String ${node} + Should Contain X Times ${node} 2 + Should Contain ${node} pcep:3 + Should Contain ${node} pcep:4 + +Unification Node Inside Inventory + [Documentation] Test of unification type of aggregation inside on nodes on Inventory model + ${request} Prepare Unification Inside Topology Request ${UNIFICATION_NT_AGGREGATE_INSIDE} opendaylight-inventory-model node flow-node-inventory:ip-address openflow-topo:2 + ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1 + Should Contain ${resp.content} topo:1 + Should Contain X Times ${resp.content} node: 4 + ${response_xml} Parse XML ${resp.content} + ${node} Get Element ${response_xml} xpath=.//node/supporting-node[node-ref='of-node:7']/.. + ${node} Element To String ${node} + Should Contain X Times ${node} 2 + Should Contain ${node} of-node:7 + Should Contain ${node} of-node:9 diff --git a/csit/variables/topoprocessing/Topologies.py b/csit/variables/topoprocessing/Topologies.py index 427074d8d1..0a1b7183b6 100644 --- a/csit/variables/topoprocessing/Topologies.py +++ b/csit/variables/topoprocessing/Topologies.py @@ -26,7 +26,7 @@ NETWORK_UNDERLAY_TOPOLOGY_1 = ''' pcep:4 - 192.168.2.2 + 192.168.2.1 @@ -123,7 +123,7 @@ OPENFLOW_UNDERLAY_NODES = ''' openflow:9 Cisco - 192.168.1.5 + 192.168.2.3 openflow:10 diff --git a/csit/variables/topoprocessing/TopologyRequests.py b/csit/variables/topoprocessing/TopologyRequests.py index 03a459a49b..6d8a0f38d9 100644 --- a/csit/variables/topoprocessing/TopologyRequests.py +++ b/csit/variables/topoprocessing/TopologyRequests.py @@ -25,7 +25,7 @@ UNIFICATION_NT = ''' ''' -UNIFICATION_NT_AGREGATE_INSIDE = ''' +UNIFICATION_NT_AGGREGATE_INSIDE = ''' topo:1 {output-model} -- 2.36.6