5.1 Permit infrastructure test only if node is online

Permit sanity infrastructure tests only if node is online

Change-Id: I174120b313fd907e2c41c85dc3cf57a2ea0f35bd
Related-Bug: #1323252