X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Automation%2FTests%2FRedButton%2FRedButton_DISCONNECTED.robot;h=7bf7c824c9fc5522459a9406cc2ae304d3a549ce;hb=08e833bb0e39e3b908bfe37aa143c969fdf96623;hp=0c2763abae01b7d0727b78612b5aab4ddcf7d71f;hpb=37030f80c86eec049fc9e8653fbf011f7e2655b6;p=ric-plt%2Fe2mgr.git diff --git a/Automation/Tests/RedButton/RedButton_DISCONNECTED.robot b/Automation/Tests/RedButton/RedButton_DISCONNECTED.robot old mode 100755 new mode 100644 index 0c2763a..7bf7c82 --- a/Automation/Tests/RedButton/RedButton_DISCONNECTED.robot +++ b/Automation/Tests/RedButton/RedButton_DISCONNECTED.robot @@ -15,10 +15,15 @@ # limitations under the License. # ############################################################################## +# +# This source code is part of the near-RT RIC (RAN Intelligent Controller) +# platform project (RICP). +# *** Settings *** Suite Setup Prepare Enviorment Resource ../Resource/resource.robot Resource ../Resource/Keywords.robot +Resource red_button_keywords.robot Library OperatingSystem Library Collections Library REST ${url} @@ -26,35 +31,27 @@ Library REST ${url} *** Variables *** ${stop_docker_e2} docker stop e2adapter - - *** Test Cases *** Pre Condition for Connecting - no E2ADAPTER Run And Return Rc And Output ${stop_docker_e2} ${result}= Run And Return Rc And Output ${docker_command} - Should Be Equal As Integers ${result[1]} 4 - + Should Be Equal As Integers ${result[1]} ${docker_number-1} Prepare Ran in Connecting connectionStatus Post Request setup node b endc-setup Integer response status 204 - Sleep 1s + Sleep 10s GET /v1/nodeb/test2 Integer response status 200 String response body ranName test2 String response body connectionStatus DISCONNECTED -Disconnect Ran - PUT /v1/nodeb/shutdown - Integer response status 204 +Execute Shutdown + Execute Shutdown +Verify nodeb's connection status is SHUT_DOWN and it's NOT associated to an e2t instance + Verify shutdown for gnb - -Verfiy Shutdown ConnectionStatus - Sleep 1s - GET /v1/nodeb/test2 - Integer response status 200 - String response body ranName test2 - String response body connectionStatus SHUT_DOWN - +Verify E2T instance has no associated RANs + Verify E2T instance has no associated RANs