Refactor common code from openstack tests.
3 files changed