-Prepare SSH Keys On Karaf
- [Arguments] ${system}=${ODL_SYSTEM_IP} ${user}=${ODL_SYSTEM_USER} ${passwd}=${ODL_SYSTEM_PASSWORD} ${prompt}=${ODL_SYSTEM_PROMPT} ${system_workspace}=${WORKSPACE}
- [Documentation] Executes client login on karaf VM in so that SSH keys will be generated by defualt karaf callback,
- ... expecting echo affter succesfull login. TODO: test on multiple runs if this aproach reduce SSHExceptions in robotframework
- ${stdout} = Utils.Run Command On Remote System ${system} ${system_workspace}${/}${BUNDLEFOLDER}/bin/client echo READY ${user} ${passwd} prompt=${prompt}
- BuiltIn.Should Match "${stdout}" "*READY"
-
-Setup SXP Session
- [Arguments] ${session}=session ${controller}=${ODL_SYSTEM_IP}
- [Documentation] Create session to Controller
- KarafKeywords.Verify Feature Is Installed odl-sxp-controller ${controller}
- RequestsLibrary.Create Session ${session} url=http://${controller}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
- ${resp} = RequestsLibrary.Get Request ${session} ${MODULES_API}
- BuiltIn.Should Be Equal As Strings ${resp.status_code} 200
- BuiltIn.Should Contain ${resp.content} ietf-restconf
-
-Clean SXP Session
- [Documentation] Destroy created sessions
- RequestsLibrary.Delete All Sessions
-