X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=inline;f=robot-systest%2Flib%2Fnsd_lib.robot;fp=robot-systest%2Flib%2Fnsd_lib.robot;h=0000000000000000000000000000000000000000;hb=5e001f506b744021d5ef25999c9da28cf56d8fbc;hp=40132d77188c5a659d36bf98380546071ae2e919;hpb=b0db4577db692b0d6c9210099c58c808cbc993c1;p=osm%2Ftests.git diff --git a/robot-systest/lib/nsd_lib.robot b/robot-systest/lib/nsd_lib.robot deleted file mode 100644 index 40132d7..0000000 --- a/robot-systest/lib/nsd_lib.robot +++ /dev/null @@ -1,67 +0,0 @@ -# -*- coding: utf-8 -*- - -## -# Copyright 2019 Tech Mahindra Limited -# -# All Rights Reserved. -# -# 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 -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -## - -## Change log: -# 1. Feature 7829: Jayant Madavi, Mrityunjay Yadav : MY00514913@techmahindra.com : 06-sep-2019 -## - -*** Settings *** -Library String - - -*** Variables *** -${success_return_code} 0 -${delete_max_wait_time} 1min -${delete_pol_time} 15sec - - -*** Keywords *** -Get NSDs List - ${rc} ${stdout}= Run and Return RC and Output osm nspkg-list - Log ${stdout} - Should Be Equal As Integers ${rc} ${success_return_code} - - -Create NSD - [Arguments] ${nsd_pkg} - - ${rc} ${stdout}= Run and Return RC and Output osm nspkg-create ${nsd_pkg} - Log ${stdout} - Should Be Equal As Integers ${rc} ${success_return_code} - ${lines}= Get Line Count ${stdout} - ${last}= Evaluate ${lines} - 1 - ${id}= Get Line ${stdout} ${last} - [Return] ${id} - - -Delete NSD - [Arguments] ${nsd_id} - - ${rc} ${stdout}= Run Keyword And Continue On Failure Run and Return RC and Output osm nspkg-delete ${nsd_id} - Should Be Equal As Integers ${rc} ${success_return_code} - Log ${stdout} - WAIT UNTIL KEYWORD SUCCEEDS ${delete_max_wait_time} ${delete_pol_time} Check For NSD ${nsd_id} - - -Check For NSD - [Arguments] ${nsd_id} - - ${rc} ${stdout}= Run and Return RC and Output osm nspkg-list | awk '{print $2}' | grep ${nsd_id} - Should Not Be Equal As Strings ${stdout} ${nsd_id}