X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Automation%2FTests%2FResource%2FKeywords.robot;fp=Automation%2FTests%2FResource%2FKeywords.robot;h=e5af3d3c6a3defc51b7553de0ba22594f93fc78f;hb=4db397dbfa07d202f1a7134e1a7a52b8fb3b5d8a;hp=0000000000000000000000000000000000000000;hpb=264731981e4a52e876c5b484e35032ada6559ac6;p=ric-plt%2Fe2mgr.git diff --git a/Automation/Tests/Resource/Keywords.robot b/Automation/Tests/Resource/Keywords.robot new file mode 100755 index 0000000..e5af3d3 --- /dev/null +++ b/Automation/Tests/Resource/Keywords.robot @@ -0,0 +1,58 @@ +############################################################################## +# +# Copyright (c) 2019 AT&T Intellectual Property. +# +# 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. +# +############################################################################## + +*** Settings *** +Documentation Keywords file +Resource ../Resource/resource.robot +Library OperatingSystem + + + + + +*** Keywords *** +Post Request setup node b x-2 + Set Headers ${header} + POST /v1/nodeb/x2-setup ${json} + + + +Get Request node b enb test1 + Sleep 1s + GET /v1/nodeb/test1 + + +Get Request node b enb test2 + Sleep 1s + GET /v1/nodeb/test2 + + + +Post Request setup node b endc-setup + Set Headers ${header} + POST /v1/nodeb/endc-setup ${endcjson} + + +Prepare Simulator For Load Information + Run And Return Rc And Output ${stop_simu} + Run And Return Rc And Output ${docker_Remove} + Run And Return Rc And Output ${run_simu} + ${result}= Run And Return Rc And Output ${docker_command} + Should Be Equal As Integers ${result[1]} 5 + +