[agent] Fix failing unit test for OpenStack infrastructure