You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Start the UniFi OS test controller from the tests with Testcontainers #25
The legacy write tests need a local UniFi OS controller, started by hand with .containers/unifi/bootstrap.sh and wired in through environment variables. Without it they skip, so nobody runs them by default.
Outcome
dotnet test starts the controller itself, runs the legacy write tests against it, and removes it afterwards. The write tests can never reach a real console.
Acceptance criteria
A shared xunit fixture (Testcontainers for .NET) builds the container from the same image and settings as .containers/unifi/compose.yml (including cgroup: host and its capabilities), waits until the legacy API answers, and creates the first-run admin
The legacy live tests take their base URL and credentials from the fixture, not from environment variables; the fixture only ever points at its own container
The tests skip with a clear reason when no container runtime is available, and an opt-out variable skips them on purpose
The container is reused across test classes and removed at the end of the run
Activity