Refactor `test_confirm_resize_server` to pass for all roles
`test_confirm_resize_server` fails for roles that do not have
permission to perform the confirm resize API. It fails since
the cleanup tries to resize a server that is already in the resized
state [1]. This PS conditionally adds resize to addCleanup based on the
state of the server.
[1] `Details: {u'message': u"Cannot 'resize' instance
cb7c5ddc-959e-4238-9f79-a1963e60228f while it is in vm_state resized",
u'code': 409}`
Change-Id: I1abb13742ed931f15d6ae18ccdc6d790b41a02bf
1 file changed