tests: Check for cloud-init presence in azure image

This tests if the cloud-init is installed and running.
Cherry-picked from: bae3cb06bc

Related: rhbz#1754711
This commit is contained in:
Jakub Rusz 2020-01-13 17:04:19 +01:00 committed by Alexander Todorov
parent 2ff724932b
commit 14d399fe0c

View File

@ -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