Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/resources/microshift-host.resource
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ Login MicroShift Host

Log Host: ${USHIFT_HOST}
SSHLibrary.Open Connection ${USHIFT_HOST}
${variables}= Get Variables
IF "\${SSH_PRIV_KEY}" in "${variables}"
# If there is an ssh key set in the global configuration, use that to
# login to the host. Otherwise assume that the ssh agent is running
# and configured properly.
IF '${SSH_PRIV_KEY}'
SSHLibrary.Login With Public Key ${USHIFT_USER} ${SSH_PRIV_KEY}
ELSE
SSHLibrary.Login ${USHIFT_USER} allow_agent=True
Expand Down
3 changes: 2 additions & 1 deletion test/variables.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ USHIFT_HOST: microshift
# USHIFT_USER: User to log into MicroShift's host
USHIFT_USER: microshift
# SSH Private key to use when logging into MicroShift's host.
# Unset this variable to use ssh agent.
# Set this variable to "" to use ssh agent.
#SSH_PRIV_KEY: ""
SSH_PRIV_KEY: /home/microshift/.ssh/id_rsa