X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fsfc%2FSFC_Basic%2F060__sfc_service_paths.robot;h=46f67eb93f0b6b1665f02591bef3e4734b8919f8;hb=fcfb0a19214cb75fa112670a7e4a6de5242c8d83;hp=1c8608f86b1a49d34c0808d0e1234c77bf8c2ed3;hpb=96685d6b867fcde953fe4116d88829994f7c0bbc;p=integration%2Ftest.git diff --git a/csit/suites/sfc/SFC_Basic/060__sfc_service_paths.robot b/csit/suites/sfc/SFC_Basic/060__sfc_service_paths.robot index 1c8608f86b..46f67eb93f 100644 --- a/csit/suites/sfc/SFC_Basic/060__sfc_service_paths.robot +++ b/csit/suites/sfc/SFC_Basic/060__sfc_service_paths.robot @@ -1,6 +1,6 @@ *** Settings *** Documentation Test suite for SFC Service Function Paths, Operates paths from Restconf APIs. -Suite Setup Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS} +Suite Setup Init Suite Suite Teardown Delete All Sessions Library SSHLibrary Library Collections @@ -9,12 +9,6 @@ Library RequestsLibrary Variables ../../../variables/Variables.py Resource ../../../libraries/Utils.robot -*** Variables *** -${SERVICE_FUNCTION_PATHS_URI} /restconf/config/service-function-path:service-function-paths/ -${SERVICE_FUNCTION_PATHS_FILE} ../../../variables/sfc/service-function-paths.json -${SERVICE_FUNCTION_PATH400_URI} /restconf/config/service-function-path:service-function-paths/service-function-path/SFC1-400 -${SERVICE_FUNCTION_PATH400_FILE} ../../../variables/sfc/sfp_sfc1_path400.json - *** Test Cases *** Add Service Function Paths [Documentation] Add Service Function Paths from JSON file @@ -91,3 +85,17 @@ Put one Service Function Clean All Service Function Paths After Tests [Documentation] Delete all Service Function Paths From Datastore After Tests Remove All Elements At URI ${SERVICE_FUNCTION_PATHS_URI} + +*** 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 ${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 + Set Suite Variable ${SERVICE_FUNCTION_PATH400_FILE} ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/sfp_sfc1_path400.json + +