Library Collections
Library OperatingSystem
Library RequestsLibrary
-Variables ../../../variables/Variables.py
+Resource ../../../variables/sfc/Variables.robot
Resource ../../../libraries/Utils.robot
Resource ../../../libraries/TemplatedRequests.robot
Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
Should Contain ${resp.content} SFC1-400
-
*** keywords ***
Init Suite
[Documentation] Initialize session and ODL version specific variables
Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS}
log ${ODL_STREAM}
- Run Keyword If '${ODL_STREAM}' == 'stable-lithium' Set Suite Variable ${VERSION_DIR} lithium
- ... ELSE Set Suite Variable ${VERSION_DIR} master
+ Set Suite Variable ${VERSION_DIR} master
Set Suite Variable ${SERVICE_FUNCTION_PATHS_URI} /restconf/config/service-function-path:service-function-paths/
Set Suite Variable ${SERVICE_FUNCTION_PATHS_FILE} ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/service-function-paths.json
Set Suite Variable ${SERVICE_FUNCTION_PATH400_URI} /restconf/config/service-function-path:service-function-paths/service-function-path/SFC1-400