*** 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
[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
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
${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}
${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}
[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}