From: Branislav Janošík Date: Wed, 25 Nov 2015 08:53:02 +0000 (+0100) Subject: Basic tests - Unification node inside X-Git-Tag: release/beryllium-sr1~256 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=c4af36f44e692cabfd8ae0adc16b792ab83f317b;hp=87a48b4921ec2e2ab221a12de9a988adcdbedc6f;p=integration%2Ftest.git Basic tests - Unification node inside Change-Id: I199d6594c21f7bfc31eb535fff7a2a55579d07e1 Signed-off-by: Branislav Janošík Signed-off-by: Samuel Kontriš --- 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}