From f9041bcdc886ba08800fe11c32e218d98ef6ed33 Mon Sep 17 00:00:00 2001 From: Jan Gelety Date: Mon, 3 Dec 2018 09:08:09 +0100 Subject: VPP_Device - add baseline tests - part I CSIT-1370 Add following baseline tests to VPP_Device: - ip4 eth2p-ethip4-ip4base-dev - ip6 eth2p-ethip6-ip6base-dev - l2bd eth2p-eth-l2bdbasemaclrn-dev Change-Id: Ic20000eb38c5511c27d020f3aa76b2620d7f7ef9 Signed-off-by: Jan Gelety --- .../libraries/robot/shared/testing_path.robot | 33 ++++++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-) (limited to 'resources/libraries/robot/shared/testing_path.robot') diff --git a/resources/libraries/robot/shared/testing_path.robot b/resources/libraries/robot/shared/testing_path.robot index b7543e1c4d..ec0c856c81 100644 --- a/resources/libraries/robot/shared/testing_path.robot +++ b/resources/libraries/robot/shared/testing_path.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2016 Cisco and/or its affiliates. +# Copyright (c) 2018 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -329,7 +329,7 @@ | | ... | - No value returned. | | ... | | ... | _NOTE:_ This KW uses test variables sets in -| | ... | "Configure path in double-link 3-node circular topology" KW. +| | ... | "Configure path in double-link 3-node circular topology" KW. | | ... | | ... | *Example:* | | ... @@ -350,4 +350,31 @@ | | Set Interface State | ${dut2_node} | ${dut2_to_dut1_if1} | up | | Set Interface State | ${dut2_node} | ${dut2_to_dut1_if2} | up | | Vpp Node Interfaces Ready Wait | ${dut1_node} -| | Vpp Node Interfaces Ready Wait | ${dut2_node} \ No newline at end of file +| | Vpp Node Interfaces Ready Wait | ${dut2_node} + +| Set interfaces in path up +| | [Documentation] +| | ... | Set UP state on interfaces in 2-node or 3-node path on nodes and \ +| | ... | wait until all interfaces are ready. +| | ... +| | ... | *Arguments:* +| | ... | - No arguments. +| | ... +| | ... | *Return:* +| | ... | - No value returned. +| | ... +| | ... | _NOTE:_ This KW uses test variables sets in\ +| | ... | "Configure path in 2-node circular topology" or\ +| | ... | "Configure path in 3-node circular topology" KW. +| | ... +| | ... | *Example:* +| | ... +| | ... | \| Set interfaces in path up \| +| | ... +| | ${dut2_status} | ${value}= | Run Keyword And Ignore Error +| | ... | Variable Should Exist | ${dut2} +| | ... +| | Run Keyword If | '${dut2_status}' == 'PASS' +| | ... | Set interfaces in 3-node circular topology up +| | ... | ELSE +| | ... | Set interfaces in 2-node circular topology up -- cgit 1.2.3-korg