diff --git a/tests/cli/test_build_and_deploy_azure.sh b/tests/cli/test_build_and_deploy_azure.sh index e4d60161..3bb895d9 100755 --- a/tests/cli/test_build_and_deploy_azure.sh +++ b/tests/cli/test_build_and_deploy_azure.sh @@ -137,8 +137,10 @@ __EOF__ rlPhaseEnd rlPhaseStartTest "Verify VM instance" - # run generic tests to verify the instance + # run generic tests to verify the instance and check if cloud-init is installed and running verify_image azure-user "$IP_ADDRESS" "-i $SSH_KEY_DIR/id_rsa" + rlRun -t -c "ssh -o StrictHostKeyChecking=no -i $SSH_KEY_DIR/id_rsa azure-user@$IP_ADDRESS 'rpm -q cloud-init'" + rlRun -t -c "ssh -o StrictHostKeyChecking=no -i $SSH_KEY_DIR/id_rsa azure-user@$IP_ADDRESS 'systemctl status cloud-init'" rlPhaseEnd rlPhaseStartCleanup