... for the additional schemas is deleted on the remote machine and
... the additional schemas argument is left out.
# Install test tool on the machine.
- ${filename}= NexusKeywords.Deploy_Test_Tool netconf/netconf-testtool
+ ${filename}= NexusKeywords.Deploy_Test_Tool netconf netconf-testtool
${schemas_option}= NetconfKeywords__Deploy_Additional_Schemas ${schemas}
# Start the testtool
${command} BuiltIn.Set_Variable java ${java_options} -jar ${filename} ${tool_options} --device-count ${device-count} --debug ${debug} ${schemas_option} --md-sal ${mdsal}
BuiltIn.Fail Unrecognized metadata format, cannot determine the location of the requested artifact.
Deploy_Artifact
- [Arguments] ${directory} ${name_prefix} ${name_suffix}=-executable.jar ${type}=snapshot
+ [Arguments] ${component} ${artifact} ${name_prefix} ${name_suffix}=-executable.jar ${type}=snapshot
[Documentation] Deploy the specified artifact from Nexus to the cwd of the machine to which the active SSHLibrary connection points.
- ${urlbase}= BuiltIn.Set_Variable ${NEXUSURL_PREFIX}/content/repositories/opendaylight.${type}/org/opendaylight/${directory}
+ ${urlbase}= BuiltIn.Set_Variable ${NEXUSURL_PREFIX}/content/repositories/opendaylight.${type}/org/opendaylight/${component}/${artifact}
${response}= SSHLibrary.Execute_Command curl ${urlbase}/maven-metadata.xml >metadata.xml
BuiltIn.Log ${response}
# TODO: Use RequestsLibrary and String instead of curl and bash utilities?
[Return] ${filename}
Deploy_Test_Tool
- [Arguments] ${name} ${suffix}=executable ${type}=snapshot
+ [Arguments] ${component} ${artifact} ${suffix}=executable ${type}=snapshot
[Documentation] Deploy a test tool.
... The test tools have naming convention of the form
... "${type}/some/dir/somewhere/<tool-name>/<tool-name>-<version-tag>-${suffix}.jar"
... keyword calculates ${name_prefix} and ${name_suffix} for
... "Deploy_Artifact" and then calls "Deploy_Artifact" to do the real
... work of deploying the artifact.
- ${name_part}= BuiltIn.Evaluate '${name}'.split("/").pop()
- ${name_prefix}= BuiltIn.Set_Variable ${name_part}-
+ ${name_prefix}= BuiltIn.Set_Variable ${artifact}-
${name_suffix}= BuiltIn.Set_Variable -${suffix}.jar
- ${filename}= Deploy_Artifact ${name} ${name_prefix} ${name_suffix} ${type}
+ ${filename}= Deploy_Artifact ${component} ${artifact} ${name_prefix} ${name_suffix} ${type}
[Return] ${filename}
NexusKeywords.Initialize_Artifact_Deployment_And_Usage
# FIXME: Unify Module prefix usage across whole file.
Create_Session ses http://${CONTROLLER}:${RESTCONFPORT}/restconf/operational/network-topology:network-topology auth=${AUTH}
- ${name}= NexusKeywords.Deploy_Test_Tool bgpcep/pcep-pcc-mock
+ ${name}= NexusKeywords.Deploy_Test_Tool bgpcep pcep-pcc-mock
BuiltIn.Set_Suite_Variable ${filename} ${name}
Remove_Directory ${ExpDir}
Remove_Directory ${ActDir}
BuiltIn.Log ${current_prompt}
BuiltIn.Set_Suite_Variable ${prompt} ${current_prompt}
RequestsLibrary.Create_Session ses http://${CONTROLLER}:${RESTCONFPORT}${OPERATIONAL_TOPO_API} auth=${AUTH}
- ${name}= NexusKeywords.Deploy_Test_Tool bgpcep/pcep-pcc-mock
+ ${name}= NexusKeywords.Deploy_Test_Tool bgpcep pcep-pcc-mock
BuiltIn.Set_Suite_Variable ${filename} ${name}
OperatingSystem.Remove_Directory ${directory_for_expected_responses} recursive=True
OperatingSystem.Remove_Directory ${directory_for_actual_responses} recursive=True