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

[osm - vmware] Add integration tests for nbdkit.go

XMLWordPrintable

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

      None

      Show
      None
    • False
    • Not Selected
    • rhos-ops-day1day2-migrations

      The nbdkit.go module has good coverage, but lacks integration tests for the most critical functions: RunNbdKitURI() and RunNbdKitSocks(). These manage NBDKit server lifecycle—the core mechanism for streaming disk data from VMware to OpenStack.

      Can be used the pattern of tests/integration/test_flavor_info.yml using Go mock servers to simulate NBD/SOCKS endpoints without requiring actual nbdkit binaries.

      What needs to be tested:

      • RunNbdKitURI(): HTTP NBD server startup, connection, teardown
      • RunNbdKitSocks(): SOCKS proxy setup and routing
      • Error handling (port conflicts, process failures)
      • Concurrent connections and cleanup

              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: