X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Automation%2FTests%2FRedButton%2Fred_button_keywords.robot;h=17f7b50aaa066b5c7004ed59dce991c913817e96;hb=ab8f039d2f4288ceba5d0ce6c95172210fe60776;hp=34bd6ef5b7054142d8d5a38d04550e0a37e6f76c;hpb=32d7f427aab3ca627b8c9c5ded15b9517200cde3;p=ric-plt%2Fe2mgr.git diff --git a/Automation/Tests/RedButton/red_button_keywords.robot b/Automation/Tests/RedButton/red_button_keywords.robot index 34bd6ef..17f7b50 100644 --- a/Automation/Tests/RedButton/red_button_keywords.robot +++ b/Automation/Tests/RedButton/red_button_keywords.robot @@ -27,41 +27,23 @@ Library json Library REST ${url} *** Keywords *** -Execute setup and verify connected and associated - Post Request setup node b x-2 - Integer response status 204 - Get Request node b enb test1 - Integer response status 200 - String response body ranName test1 - String response body connectionStatus CONNECTED - String response body associatedE2tInstanceAddress e2t.att.com:38000 - -Execute setup twice and verify connected setup failed - Post Request setup node b x-2 - Sleep 1s - Post Request setup node b x-2 - Get Request node b enb test1 - String response body connectionStatus CONNECTED_SETUP_FAILED - - -Verify shutdown for enb - Get Request node b enb test1 - Integer response status 200 - String response body ranName test1 - String response body connectionStatus SHUT_DOWN - Missing response body associatedE2tInstanceAddress - ${result} e2mdbscripts.verify_ran_is_associated_with_e2t_instance test1 e2t.att.com:38000 - Should Be True ${result} == False - +Verify connected and associated + Get Request node b gnb + Integer response status 200 + String response body ranName ${ranName} + String response body connectionStatus CONNECTED + String response body associatedE2tInstanceAddress ${e2tinstanceaddress} Verify shutdown for gnb - Get Request node b gnb test2 + Get Request node b gnb Integer response status 200 - String response body ranName test2 + String response body ranName ${ranName} String response body connectionStatus SHUT_DOWN Missing response body associatedE2tInstanceAddress - ${result} e2mdbscripts.verify_ran_is_associated_with_e2t_instance test2 e2t.att.com:38000 - Should Be True ${result} == False + +Verify E2T instance has no associated RANs + ${result} e2mdbscripts.verify_e2t_instance_has_no_associated_rans ${e2tinstanceaddress} + Should Be True ${result} Execute Shutdown PUT /v1/nodeb/shutdown