tests: Check for cloud-init presence in azure image

This tests if the cloud-init is installed and running.
This commit is contained in:
Jakub Rusz 2020-01-13 17:04:19 +01:00 committed by Alexander Todorov
parent ca876483db
commit bae3cb06bc

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