-
Task
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
-
5
-
False
-
-
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