Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-25481

[osm - vmware] Improve test coverage for openstack.go with unit tests

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • 3
    • False
    • Hide

      None

      Show
      None
    • 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

              rh-ee-vvyvleck Veronika Vyvleckova
              rh-ee-vvyvleck Veronika Vyvleckova
              rhos-dfg-migrations
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: