- ${output} Run Command On Controller ${ODL_SYSTEM_IP} cat ${WORKSPACE}/${BUNDLEFOLDER}/data/log/karaf.log* | grep -c 'Successfully pushed configuration snapshot.*${snapshot_string}'
- Should Not Be Equal As Strings ${output} 0
-
-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} Run Command On Remote System ${system} ${system_workspace}${/}${BUNDLEFOLDER}/bin/client echo READY ${user} ${passwd} prompt=${prompt}
- Should Match "${stdout}" "*READY"
-
-Setup SXP Session
- [Arguments] ${session}=session ${controller}=${ODL_SYSTEM_IP}
- [Documentation] Create session to Controller
- Verify Feature Is Installed odl-sxp-controller ${controller}
- Create Session ${session} url=http://${controller}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
- ${resp} RequestsLibrary.Get Request ${session} ${MODULES_API}
- Should Be Equal As Strings ${resp.status_code} 200
- Should Contain ${resp.content} ietf-restconf
-
-Clean SXP Session
- [Documentation] Destroy created sessions
- Delete All Sessions
+ ${output} = Utils.Run Command On Controller ${ODL_SYSTEM_IP} cat ${WORKSPACE}/${BUNDLEFOLDER}/data/log/karaf.log* | grep -c 'Successfully pushed configuration snapshot.*${snapshot_string}'
+ BuiltIn.Should Not Be Equal As Strings ${output} 0