upgrade to python3 libraries
[testsuite.git] / robot / resources / vid / vid_interface.robot
index 3552279..dd68ede 100644 (file)
@@ -1,6 +1,6 @@
 *** Settings ***
 Documentation     The main interface for interacting with VID. It handles low level stuff like managing the selenium request library and VID required steps
-Library            ExtendedSelenium2Library
+Library            SeleniumLibrary
 Library    Collections
 Library         String
 Library              RequestsLibrary
@@ -21,7 +21,7 @@ Run VID Health Check
     [Documentation]   Logs in to VID GUI
     ${resp}=    Run VID Get Request    ${VID_HEALTHCHECK_PATH}
     Should Be Equal As Strings         ${resp.status_code}     200
-    Should Be String    ${resp.json()['message']}
+    Should Be String    ${resp.json()['detailedMsg']}
 
 Run VID Get Request
     [Documentation]    Runs an VID get request
@@ -50,6 +50,7 @@ Login To VID GUI
     Input Password    xpath=//input[@id='password']    ${GLOBAL_VID_PASSWORD}
     Click Button    xpath=//input[@id='loginBtn']
     Wait Until Page Contains  Welcome to VID    ${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT}
+    Select From List By Label    //select[@id='selectTestApi']    VNF_API (old)
     Log    Logged in to ${VID_ENDPOINT}${VID_ENV}
 
 Go To VID HOME
@@ -109,7 +110,7 @@ Get Model UUID from VID
     ${resp}=   Get Text   xpath=//body/pre
     ${json}=   To Json    ${resp}
     ${services}=   Get From Dictionary    ${json}   services
-    :for   ${dict}  in  @{services}
+    :FOR   ${dict}  IN  @{services}
     \    ${uuid}=   Get From DIctionary   ${dict}   uuid
     \    ${inv}=   Get From DIctionary   ${dict}    invariantUUID
     \    Return From Keyword If   "${invariantUUID}" == "${inv}"   ${uuid}
@@ -127,7 +128,7 @@ Get Module Names from VID
     ${modules}=   Create List
     ${vnfs}=   Get From Dictionary    ${json}   vnfs
     ${keys}=   Get Dictionary Keys    ${vnfs}
-    :for   ${key}  in  @{keys}
+    :FOR   ${key}  IN  @{keys}
     \    Add VFModule   ${vnfs['${key}']}   ${modules}
     [Return]    ${modules}
 
@@ -136,7 +137,7 @@ Add VFModule
     [Arguments]   ${vnf}   ${modules}
     ${vfModules}=   Get From Dictionary    ${vnf}   vfModules
     ${keys}=   Get Dictionary Keys    ${vfModules}
-    :for   ${key}  in  @{keys}
+    :FOR   ${key}  IN  @{keys}
     \    ${module}=   Get From Dictionary    ${vfModules}   ${key}
     \    ${dict}=    Create Dictionary   name=${module['name']}
     \    Append to List   ${modules}   ${dict}