Skip to content

Run the container tests against UniFi OS Server 5.1.42 - #32

Merged
ChrisonSimtian merged 1 commit into
mainfrom
fix/test-image-5.1.42
Nov 8, 2026
Merged

ChrisonSimtian merged 1 commit into
mainfrom
fix/test-image-5.1.42

Conversation

@ChrisonSimtian

Copy link
Copy Markdown
Collaborator

Closes #29.

Cause. Not the kernel or cgroups. This image's /entrypoint.sh never writes /usr/lib/app_model or /usr/lib/product_name (the vendor's /root/uos-entrypoint.sh does, but nothing runs it). ubnt-tools id then reports an empty model, unifi-core dies with Unsupported console model: "", and ulp-go exits with no device info found because unifi-core's port never opens.

Fix. The fixture maps those two files in (UOSSERVER, uosserver) and adds SETPCAP (journald, 218/CAPABILITIES). Image pinned by digest to 5.1.42.

Verified. Full suite on OrbStack: 151 passed, 8 skipped (the env-gated live-controller tests), 0 failed. The container tests ran.

The 5.1.x entrypoint never writes /usr/lib/app_model or /usr/lib/product_name,
so ubnt-tools id reports an empty model, unifi-core exits with 'Unsupported
console model' and ulp-go with 'no device info found'. Map both files in, and
add SETPCAP, which journald needs on this image.
@ChrisonSimtian ChrisonSimtian added the enhancement New feature or request label Nov 8, 2026
@ChrisonSimtian
ChrisonSimtian merged commit 862e193 into main Nov 8, 2026
1 check passed
@ChrisonSimtian
ChrisonSimtian deleted the fix/test-image-5.1.42 branch November 8, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test controller 5.1.42 never starts in the Testcontainers fixture

1 participant