NginxProxyManagerTest

15

tests

0

failures

0

ignored

0.137s

duration

100%

successful

Tests

Test Duration Result
a configured letsencryptEmail registers with --email instead of unsafely 0.003s passed
a docker failure never throws — the HTTP server keeps running 0.013s passed
does not start while a foreign container occupies an nginx port 0.005s passed
first start runs the init config, obtains a certificate, and restarts with the full config 0.031s passed
rejects a missing server name 0.001s passed
rejects a server name that could inject nginx directives 0.002s passed
rejects a server.port collision with the nginx ports 0.002s passed
removes a stale werkator-named container occupying an nginx port 0.019s passed
renewCertificateAndReload is a no-op while no container is managed 0.006s passed
renewCertificateAndReload renews the certificate and reloads nginx 0.004s passed
resolves the legacy defaults for upstream host, container name, and state dir 0.006s passed
stale nginx containers of this repository are removed by label before the start 0.013s passed
start makes no docker calls when disabled 0.012s passed
start with an existing certificate uses the full config immediately and renews 0.010s passed
stop removes the managed container exactly once 0.010s passed

Standard output

Creating nstance of class de.hoennig.werkator.server.NginxProxyManagerTest
2026-09-03T12:35:13.649Z  WARN 146 --- [e-626154618#407] d.h.werkator.server.NginxProxyManager    : cannot start managed nginx because serverName or upstreamHost is not a valid host name
2026-09-03T12:35:13.649Z  WARN 146 --- [e-626154618#407] d.h.werkator.server.NginxProxyManager    : cannot start managed nginx because serverName or upstreamHost is not a valid host name
2026-09-03T12:35:13.652Z  WARN 146 --- [e-626154618#408] d.h.werkator.server.NginxProxyManager    : cannot start managed nginx because server.nginx.serverName is empty
2026-09-03T12:35:13.653Z  WARN 146 --- [e-626154618#409] d.h.werkator.server.NginxProxyManager    : cannot start managed nginx because server.port 8080 collides with an nginx port
2026-09-03T12:35:13.720Z  WARN 146 --- [e-626154618#414] d.h.werkator.server.NginxProxyManager    : nginx port is already used by Docker container other-app (abc123)
2026-09-03T12:35:13.720Z  WARN 146 --- [e-626154618#414] d.h.werkator.server.NginxProxyManager    : nginx port is already used by Docker container other-app (abc123)
2026-09-03T12:35:13.720Z  WARN 146 --- [e-626154618#414] d.h.werkator.server.NginxProxyManager    : nginx port is already used by Docker container other-app (abc123)
2026-09-03T12:35:13.721Z  WARN 146 --- [e-626154618#414] d.h.werkator.server.NginxProxyManager    : nginx port is already used by Docker container other-app (abc123)
2026-09-03T12:35:13.721Z  WARN 146 --- [e-626154618#414] d.h.werkator.server.NginxProxyManager    : managed nginx was not started because a configured port is still in use
2026-09-03T12:35:13.796Z  WARN 146 --- [e-626154618#419] d.h.werkator.server.NginxProxyManager    : could not start managed nginx: java.lang.RuntimeException: docker: command not found