-
Task
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
-
3
-
False
-
-
False
-
Not Selected
-
rhos-ops-day1day2-migrations
-
-
-
Team OS Migrate Sprint 16
-
1
The openstack.go module has ok coverage. While many CRUD operations are tested, some functions remain untested: OpenstackAuth() (authentication/client initialization), WaitForVolumeStatus(), and WaitForServerStatus() (state polling with retry logic).
Can be used HTTP mocks via gophercloud/testhelper or httptest.NewServer() to simulate OpenStack API responses.
What needs to be tested:
- OpenstackAuth(): valid credentials, invalid credentials, missing env vars
- WaitForVolumeStatus(): success path, timeout, API errors
- WaitForServerStatus(): success path, timeout, error handling