Permit infrastructure test only if node is online

Permit sanity infrastructure tests only if node is online

Change-Id: I174120b313fd907e2c41c85dc3cf57a2ea0f35bd
Related-Bug: #1323252
(cherry picked from commit ab76323cdb6f9c43f9e97177aa920c5452029eef)