NginxProxyManagerTest

15

tests

0

failures

0

ignored

0.105s

duration

100%

successful

Tests

Test Duration Result
a configured letsencryptEmail registers with --email instead of unsafely 0.004s passed
a docker failure never throws — the HTTP server keeps running 0.004s passed
does not start while a foreign container occupies an nginx port 0.006s passed
first start runs the init config, obtains a certificate, and restarts with the full config 0.027s passed
rejects a missing server name 0.002s 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.013s passed
renewCertificateAndReload is a no-op while no container is managed 0.004s passed
renewCertificateAndReload renews the certificate and reloads nginx 0.007s passed
resolves the legacy defaults for upstream host, container name, and state dir 0.004s passed
stale nginx containers of this repository are removed by label before the start 0.011s passed
start makes no docker calls when disabled 0.004s passed
start with an existing certificate uses the full config immediately and renews 0.009s passed
stop removes the managed container exactly once 0.006s passed

Standard output

Creating nstance of class de.hoennig.werkator.server.NginxProxyManagerTest
2026-09-03T12:29:22.891Z  WARN 144 --- [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:29:22.892Z  WARN 144 --- [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:29:22.894Z  WARN 144 --- [e-626154618#408] d.h.werkator.server.NginxProxyManager    : cannot start managed nginx because server.nginx.serverName is empty
2026-09-03T12:29:22.897Z  WARN 144 --- [e-626154618#409] d.h.werkator.server.NginxProxyManager    : cannot start managed nginx because server.port 8080 collides with an nginx port
2026-09-03T12:29:22.956Z  WARN 144 --- [e-626154618#414] d.h.werkator.server.NginxProxyManager    : nginx port is already used by Docker container other-app (abc123)
2026-09-03T12:29:22.956Z  WARN 144 --- [e-626154618#414] d.h.werkator.server.NginxProxyManager    : nginx port is already used by Docker container other-app (abc123)
2026-09-03T12:29:22.957Z  WARN 144 --- [e-626154618#414] d.h.werkator.server.NginxProxyManager    : nginx port is already used by Docker container other-app (abc123)
2026-09-03T12:29:22.957Z  WARN 144 --- [e-626154618#414] d.h.werkator.server.NginxProxyManager    : nginx port is already used by Docker container other-app (abc123)
2026-09-03T12:29:22.957Z  WARN 144 --- [e-626154618#414] d.h.werkator.server.NginxProxyManager    : managed nginx was not started because a configured port is still in use
2026-09-03T12:29:23.000Z  WARN 144 --- [e-626154618#419] d.h.werkator.server.NginxProxyManager    : could not start managed nginx: java.lang.RuntimeException: docker: command not found