X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Automation%2FTests%2FRedButton%2Fred_button_keywords.robot;h=c808cf8af3eba9c4ceb7c65ee0f9807019d2c857;hb=dbc719cd2dfa73363386114c9e85c8c42a441489;hp=c743543dac6c5556ff5d3cc715e965ae0c59459a;hpb=5c9533257e79cc65d506df54105933bf5844e7ab;p=ric-plt%2Fe2mgr.git diff --git a/Automation/Tests/RedButton/red_button_keywords.robot b/Automation/Tests/RedButton/red_button_keywords.robot index c743543..c808cf8 100644 --- a/Automation/Tests/RedButton/red_button_keywords.robot +++ b/Automation/Tests/RedButton/red_button_keywords.robot @@ -17,6 +17,7 @@ ############################################################################## *** Settings *** +Variables ../Scripts/variables.py Documentation Keywords file Resource ../Resource/resource.robot Resource ../Resource/Keywords.robot @@ -26,41 +27,26 @@ Library OperatingSystem 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 +*** Variables *** +${url} ${e2mgr_address} +*** Keywords *** +Verify connected and associated + Get Request nodeb + Integer response status 200 + String response body ranName ${ranName} + String response body connectionStatus CONNECTED + String response body associatedE2tInstanceAddress ${e2t_alpha_address} Verify shutdown for gnb - Get Request node b gnb test2 + Get Request nodeb Integer response status 200 - String response body ranName test2 + String response body ranName ${ranName} String response body connectionStatus SHUT_DOWN Missing response body associatedE2tInstanceAddress Verify E2T instance has no associated RANs - ${result} e2mdbscripts.verify_e2t_instance_has_no_associated_rans e2t.att.com:38000 + ${result} e2mdbscripts.verify_e2t_instance_has_no_associated_rans ${e2t_alpha_address} Should Be True ${result} Execute Shutdown