Skip to content

Commit

Permalink
test/cases: increase api.sh gcp ssh connection timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jrusz committed Sep 12, 2024
1 parent 0273908 commit a60d10d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/cases/api/gcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ function verify() {
_instanceWaitSSH "$HOST"

# Verify image
_ssh="$GCP_CMD compute ssh --strict-host-key-checking=no --ssh-key-file=$GCP_SSH_KEY --zone=$GCP_ZONE $SSH_USER@$GCP_INSTANCE_NAME --"
# Increase the timeout for ssh connection
SSH_FLAG='--ssh-flag=-o --ssh-flag=ConnectTimeout=600'
_ssh="$GCP_CMD compute ssh --strict-host-key-checking=no --ssh-key-file=$GCP_SSH_KEY --zone=$GCP_ZONE ${SSH_FLAG} $SSH_USER@$GCP_INSTANCE_NAME --"

# TODO: remove this once el10 / c10s image moves to oslogin
# On el10 / c10s, we need to ssh directly, because there is no "oslogin" feature
Expand Down

0 comments on commit a60d10d

Please sign in to comment.