Code was sticking the testtool version to something really old and not
letting the EXPLICIT_YANG_SYSTEM_TEST_URL ever be empty, which is
needed in order to dynamically find the right version of the tool
for the actual branch being tested.
JIRA: INTTEST-78
Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
Change-Id: I62fa8e5276a1306d510c78ac71888449fc9ea54c
Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
*** Variables ***
&{COMPONENT_MAPPING} netconf=netconf-impl bgpcep=pcep-impl carpeople=clustering-it-model yangtools=yang-data-impl bindingv1=mdsal-binding-generator-impl
*** Variables ***
&{COMPONENT_MAPPING} netconf=netconf-impl bgpcep=pcep-impl carpeople=clustering-it-model yangtools=yang-data-impl bindingv1=mdsal-binding-generator-impl
+@{RELEASE_INTEGRATED_COMPONENTS} mdsal odlparent yangtools
${JDKVERSION} None
${JAVA_8_HOME_CENTOS} /usr/lib/jvm/java-1.8.0
${JAVA_8_HOME_UBUNTU} /usr/lib/jvm/java-8-openjdk-amd64
${JDKVERSION} None
${JAVA_8_HOME_CENTOS} /usr/lib/jvm/java-1.8.0
${JAVA_8_HOME_UBUNTU} /usr/lib/jvm/java-8-openjdk-amd64
${urlbase} = String.Fetch_From_Left ${BUNDLE_URL} /org/opendaylight
# If the BUNDLE_URL points somewhere else (perhaps *patch-test* job in Jenkins),
# ${urlbase} is the whole ${BUNDLE_URL}, in which case we use the ${fallback_url}
${urlbase} = String.Fetch_From_Left ${BUNDLE_URL} /org/opendaylight
# If the BUNDLE_URL points somewhere else (perhaps *patch-test* job in Jenkins),
# ${urlbase} is the whole ${BUNDLE_URL}, in which case we use the ${fallback_url}
+ # If we are working with a "release integrated" project, we always will want to look for
+ # a released version, not in the snapshots
${urlbase} = BuiltIn.Set_Variable_If '${urlbase}' != '${BUNDLE_URL}' ${urlbase} ${fallback_url}
${urlbase} = BuiltIn.Set_Variable_If '${urlbase}' != '${BUNDLE_URL}' ${urlbase} ${fallback_url}
+ ${urlbase} = BuiltIn.Set_Variable_If '${component}' in @{RELEASE_INTEGRATED_COMPONENTS} ${NEXUS_RELEASE_BASE_URL} ${urlbase}
${version} ${location} = NexusKeywords__Detect_Version_To_Pull ${component}
# TODO: Use RequestsLibrary and String instead of curl and bash utilities?
${url} = BuiltIn.Set_Variable ${urlbase}/${location}/${artifact}/${version}
${version} ${location} = NexusKeywords__Detect_Version_To_Pull ${component}
# TODO: Use RequestsLibrary and String instead of curl and bash utilities?
${url} = BuiltIn.Set_Variable ${urlbase}/${location}/${artifact}/${version}
*** Variables ***
${TEST_TOOL_NAME} yang-model-validator
${EXPLICIT_YANG_SYSTEM_TEST_URL} ${EMPTY}
*** Variables ***
${TEST_TOOL_NAME} yang-model-validator
${EXPLICIT_YANG_SYSTEM_TEST_URL} ${EMPTY}
-${NITROGEN_YANG_SYSTEM_TEST_URL} ${NEXUS_RELEASE_BASE_URL}/org/opendaylight/yangtools/${TEST_TOOL_NAME}/2.0.0/${TEST_TOOL_NAME}-2.0.0-jar-with-dependencies.jar
-${OXYGEN_YANG_SYSTEM_TEST_URL} ${NEXUS_RELEASE_BASE_URL}/org/opendaylight/yangtools/${TEST_TOOL_NAME}/2.0.1/${TEST_TOOL_NAME}-2.0.1-jar-with-dependencies.jar
*** Test Cases ***
Kill_Odl
*** Test Cases ***
Kill_Odl
Setup_Suite
[Documentation] Activate dependency Resources, create SSH connection.
SetupUtils.Setup_Utils_For_Setup_And_Teardown
Setup_Suite
[Documentation] Activate dependency Resources, create SSH connection.
SetupUtils.Setup_Utils_For_Setup_And_Teardown
- ${TEST_TOOL_NAME}= CompareStream.Set_Variable_If_At_Most_Carbon yang-system-test ${TEST_TOOL_NAME}
- ${EXPLICIT_YANG_SYSTEM_TEST_URL}= CompareStream.Set_Variable_If_At_Least_Nitrogen ${NITROGEN_YANG_SYSTEM_TEST_URL} ${EMPTY}
- ${EXPLICIT_YANG_SYSTEM_TEST_URL}= CompareStream.Set_Variable_If_At_Least_Oxygen ${OXYGEN_YANG_SYSTEM_TEST_URL} ${EXPLICIT_YANG_SYSTEM_TEST_URL}
- Set Suite Variable ${TEST_TOOL_NAME}
- Set Suite Variable ${EXPLICIT_YANG_SYSTEM_TEST_URL}
NexusKeywords.Initialize_Artifact_Deployment_And_Usage tools_system_connect=False
SSHKeywords.Open_Connection_To_ODL_System
NexusKeywords.Initialize_Artifact_Deployment_And_Usage tools_system_connect=False
SSHKeywords.Open_Connection_To_ODL_System