Parcourir la source

tests: review comments

Nicolas Duchon il y a 5 mois
Parent
commit
ea99c1a6f9
47 fichiers modifiés avec 78 ajouts et 80 suppressions
  1. 3 3
      test/test_custom/test_defaults-location.yml
  2. 2 2
      test/test_custom/test_defaults.yml
  3. 3 3
      test/test_custom/test_location-per-vhost.yml
  4. 3 3
      test/test_custom/test_per-vhost.yml
  5. 2 2
      test/test_custom/test_proxy-wide.yml
  6. 3 3
      test/test_debug-endpoint/test_global.yml
  7. 3 3
      test/test_debug-endpoint/test_per-container.yml
  8. 1 1
      test/test_default-host/test_default-host.yml
  9. 2 2
      test/test_docker-unix-socket/test_docker-unix-socket.yml
  10. 0 1
      test/test_dockergen/.gitignore
  11. 1 1
      test/test_dockergen/test_dockergen.yml
  12. 2 2
      test/test_headers/test_http.yml
  13. 2 2
      test/test_headers/test_https.yml
  14. 1 1
      test/test_htpasswd/test_htpasswd-regex-virtual-host.yml
  15. 1 1
      test/test_htpasswd/test_htpasswd-virtual-host.yml
  16. 1 1
      test/test_htpasswd/test_htpasswd-virtual-path.yml
  17. 1 1
      test/test_http2/test_http2-global-disabled.yml
  18. 1 1
      test/test_http3/test_http3-global-disabled.yml
  19. 1 1
      test/test_http3/test_http3-global-enabled.yml
  20. 3 3
      test/test_http3/test_http3-vhost.yml
  21. 2 2
      test/test_internal/test_internal-per-vhost.yml
  22. 2 2
      test/test_internal/test_internal-per-vpath.yml
  23. 1 1
      test/test_ipv6/test_ipv6-prefer-ipv4-network.yml
  24. 1 1
      test/test_ipv6/test_ipv6-prefer-ipv6-network.yml
  25. 2 2
      test/test_ipv6/test_ipv6.yml
  26. 3 3
      test/test_keepalive/test_keepalive.yml
  27. 2 2
      test/test_loadbalancing/test_loadbalancing.yml
  28. 1 1
      test/test_logs/test_log-disabled.yml
  29. 1 1
      test/test_logs/test_log-format.yml
  30. 1 1
      test/test_logs/test_log-json-format.yml
  31. 1 1
      test/test_logs/test_log-json.yml
  32. 1 1
      test/test_multiple-hosts/test_multiple-hosts.yml
  33. 1 2
      test/test_multiple-networks/test_multiple-networks.py
  34. 3 3
      test/test_multiple-networks/test_multiple-networks.yml
  35. 2 2
      test/test_nominal/test_nominal.yml
  36. 2 2
      test/test_raw-ip-vhost/test_raw-ip-vhost.yml
  37. 3 3
      test/test_server-down/test_load-balancing.yml
  38. 1 1
      test/test_server-down/test_no-server-down.yml
  39. 1 1
      test/test_server-down/test_server-down.yml
  40. 1 1
      test/test_trust-downstream-proxy/test_default.yml
  41. 1 1
      test/test_trust-downstream-proxy/test_disabled.yml
  42. 1 1
      test/test_trust-downstream-proxy/test_enabled.yml
  43. 2 2
      test/test_unreachable-network/test_unreachable-network.yml
  44. 1 1
      test/test_upstream-name/test_predictable-name.yml
  45. 1 1
      test/test_upstream-name/test_sha1-name.yml
  46. 3 3
      test/test_vhost-in-multiple-networks/test_vhost-in-multiple-networks.py
  47. 1 1
      test/test_vhost-in-multiple-networks/test_vhost-in-multiple-networks.yml

+ 3 - 3
test/test_custom/test_defaults-location.yml

@@ -11,7 +11,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web1.nginx-proxy.example
       VIRTUAL_HOST: web1.nginx-proxy.example
 
 
   web2:
   web2:
@@ -19,7 +19,7 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: web2.nginx-proxy.example
       VIRTUAL_HOST: web2.nginx-proxy.example
 
 
   web3:
   web3:
@@ -27,5 +27,5 @@ services:
     expose:
     expose:
       - "83"
       - "83"
     environment:
     environment:
-      WEB_PORTS: 83
+      WEB_PORTS: "83"
       VIRTUAL_HOST: web3.nginx-proxy.example
       VIRTUAL_HOST: web3.nginx-proxy.example

+ 2 - 2
test/test_custom/test_defaults.yml

@@ -10,7 +10,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web1.nginx-proxy.example
       VIRTUAL_HOST: web1.nginx-proxy.example
 
 
   web2:
   web2:
@@ -18,5 +18,5 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: web2.nginx-proxy.example
       VIRTUAL_HOST: web2.nginx-proxy.example

+ 3 - 3
test/test_custom/test_location-per-vhost.yml

@@ -11,7 +11,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web1.nginx-proxy.example
       VIRTUAL_HOST: web1.nginx-proxy.example
 
 
   web2:
   web2:
@@ -19,7 +19,7 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: web2.nginx-proxy.example
       VIRTUAL_HOST: web2.nginx-proxy.example
   
   
   regex:
   regex:
@@ -27,5 +27,5 @@ services:
     expose:
     expose:
       - "83"
       - "83"
     environment:
     environment:
-      WEB_PORTS: 83
+      WEB_PORTS: "83"
       VIRTUAL_HOST: ~^regex.*\.nginx-proxy\.example$
       VIRTUAL_HOST: ~^regex.*\.nginx-proxy\.example$

+ 3 - 3
test/test_custom/test_per-vhost.yml

@@ -11,7 +11,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web1.nginx-proxy.example
       VIRTUAL_HOST: web1.nginx-proxy.example
 
 
   web2:
   web2:
@@ -19,7 +19,7 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: web2.nginx-proxy.example
       VIRTUAL_HOST: web2.nginx-proxy.example
   
   
   regex:
   regex:
@@ -27,5 +27,5 @@ services:
     expose:
     expose:
       - "83"
       - "83"
     environment:
     environment:
-      WEB_PORTS: 83
+      WEB_PORTS: "83"
       VIRTUAL_HOST: ~^regex.*\.nginx-proxy\.example$
       VIRTUAL_HOST: ~^regex.*\.nginx-proxy\.example$

+ 2 - 2
test/test_custom/test_proxy-wide.yml

@@ -10,7 +10,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web1.nginx-proxy.example
       VIRTUAL_HOST: web1.nginx-proxy.example
 
 
   web2:
   web2:
@@ -18,5 +18,5 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: web2.nginx-proxy.example
       VIRTUAL_HOST: web2.nginx-proxy.example

+ 3 - 3
test/test_debug-endpoint/test_global.yml

@@ -11,7 +11,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: enabled.debug.nginx-proxy.example
       VIRTUAL_HOST: enabled.debug.nginx-proxy.example
   
   
   debug_stripped:
   debug_stripped:
@@ -19,7 +19,7 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST_MULTIPORTS: |-
       VIRTUAL_HOST_MULTIPORTS: |-
         stripped.debug.nginx-proxy.example:
         stripped.debug.nginx-proxy.example:
           "/1":
           "/1":
@@ -56,7 +56,7 @@ services:
     expose:
     expose:
       - "83"
       - "83"
     environment:
     environment:
-      WEB_PORTS: 83
+      WEB_PORTS: "83"
       VIRTUAL_HOST: disabled.debug.nginx-proxy.example
       VIRTUAL_HOST: disabled.debug.nginx-proxy.example
     labels:
     labels:
       com.github.nginx-proxy.nginx-proxy.debug-endpoint: "false"
       com.github.nginx-proxy.nginx-proxy.debug-endpoint: "false"

+ 3 - 3
test/test_debug-endpoint/test_per-container.yml

@@ -9,7 +9,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: disabled1.debug.nginx-proxy.example
       VIRTUAL_HOST: disabled1.debug.nginx-proxy.example
   
   
   debug_disabled2:
   debug_disabled2:
@@ -17,7 +17,7 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: disabled2.debug.nginx-proxy.example
       VIRTUAL_HOST: disabled2.debug.nginx-proxy.example
 
 
 
 
@@ -26,7 +26,7 @@ services:
     expose:
     expose:
       - "83"
       - "83"
     environment:
     environment:
-      WEB_PORTS: 83
+      WEB_PORTS: "83"
       VIRTUAL_HOST: enabled.debug.nginx-proxy.example
       VIRTUAL_HOST: enabled.debug.nginx-proxy.example
     labels:
     labels:
       com.github.nginx-proxy.nginx-proxy.debug-endpoint: "true"
       com.github.nginx-proxy.nginx-proxy.debug-endpoint: "true"

+ 1 - 1
test/test_default-host/test_default-host.yml

@@ -5,7 +5,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web1.tld
       VIRTUAL_HOST: web1.tld
 
 
   # WHEN nginx-proxy runs with DEFAULT_HOST set to web1.tld
   # WHEN nginx-proxy runs with DEFAULT_HOST set to web1.tld

+ 2 - 2
test/test_docker-unix-socket/test_docker-unix-socket.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web1.nginx-proxy.tld
       VIRTUAL_HOST: web1.nginx-proxy.tld
 
 
   web2:
   web2:
@@ -12,7 +12,7 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: web2.nginx-proxy.tld
       VIRTUAL_HOST: web2.nginx-proxy.tld
 
 
   sut:
   sut:

+ 0 - 1
test/test_dockergen/.gitignore

@@ -1 +0,0 @@
-nginx.tmpl

+ 1 - 1
test/test_dockergen/test_dockergen.yml

@@ -19,7 +19,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: whoami.nginx.container.docker
       VIRTUAL_HOST: whoami.nginx.container.docker
 
 
 volumes:
 volumes:

+ 2 - 2
test/test_headers/test_http.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: web.nginx-proxy.tld
       VIRTUAL_HOST: web.nginx-proxy.tld
 
 
   web-server-tokens-off:
   web-server-tokens-off:
@@ -12,7 +12,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: web-server-tokens-off.nginx-proxy.tld
       VIRTUAL_HOST: web-server-tokens-off.nginx-proxy.tld
       SERVER_TOKENS: "off"
       SERVER_TOKENS: "off"
 
 

+ 2 - 2
test/test_headers/test_https.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: web.nginx-proxy.tld
       VIRTUAL_HOST: web.nginx-proxy.tld
 
 
   web-server-tokens-off:
   web-server-tokens-off:
@@ -12,7 +12,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: web-server-tokens-off.nginx-proxy.tld
       VIRTUAL_HOST: web-server-tokens-off.nginx-proxy.tld
       SERVER_TOKENS: "off"
       SERVER_TOKENS: "off"
 
 

+ 1 - 1
test/test_htpasswd/test_htpasswd-regex-virtual-host.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: ~^regex.*\.nginx-proxy\.example$
       VIRTUAL_HOST: ~^regex.*\.nginx-proxy\.example$
 
 
   sut:
   sut:

+ 1 - 1
test/test_htpasswd/test_htpasswd-virtual-host.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: htpasswd.nginx-proxy.tld
       VIRTUAL_HOST: htpasswd.nginx-proxy.tld
 
 
   sut:
   sut:

+ 1 - 1
test/test_htpasswd/test_htpasswd-virtual-path.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: htpasswd.nginx-proxy.tld
       VIRTUAL_HOST: htpasswd.nginx-proxy.tld
       VIRTUAL_PATH: /foo/
       VIRTUAL_PATH: /foo/
       VIRTUAL_DEST: /
       VIRTUAL_DEST: /

+ 1 - 1
test/test_http2/test_http2-global-disabled.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: http2-global-disabled.nginx-proxy.tld
       VIRTUAL_HOST: http2-global-disabled.nginx-proxy.tld
 
 
   sut:
   sut:

+ 1 - 1
test/test_http3/test_http3-global-disabled.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: http3-global-disabled.nginx-proxy.tld
       VIRTUAL_HOST: http3-global-disabled.nginx-proxy.tld
 
 
   sut:
   sut:

+ 1 - 1
test/test_http3/test_http3-global-enabled.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: http3-global-enabled.nginx-proxy.tld
       VIRTUAL_HOST: http3-global-enabled.nginx-proxy.tld
 
 
   sut:
   sut:

+ 3 - 3
test/test_http3/test_http3-vhost.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: http3-vhost-enabled.nginx-proxy.tld
       VIRTUAL_HOST: http3-vhost-enabled.nginx-proxy.tld
     labels:
     labels:
       com.github.nginx-proxy.nginx-proxy.http3.enable: "true"
       com.github.nginx-proxy.nginx-proxy.http3.enable: "true"
@@ -14,7 +14,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: http3-vhost-disabled.nginx-proxy.tld
       VIRTUAL_HOST: http3-vhost-disabled.nginx-proxy.tld
     labels:
     labels:
       com.github.nginx-proxy.nginx-proxy.http3.enable: "false"
       com.github.nginx-proxy.nginx-proxy.http3.enable: "false"
@@ -24,7 +24,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: http3-vhost-default-disabled.nginx-proxy.tld
       VIRTUAL_HOST: http3-vhost-default-disabled.nginx-proxy.tld
 
 
   sut:
   sut:

+ 2 - 2
test/test_internal/test_internal-per-vhost.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web1.nginx-proxy.example
       VIRTUAL_HOST: web1.nginx-proxy.example
       NETWORK_ACCESS: internal
       NETWORK_ACCESS: internal
 
 
@@ -13,7 +13,7 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: web2.nginx-proxy.example
       VIRTUAL_HOST: web2.nginx-proxy.example
 
 
   sut:
   sut:

+ 2 - 2
test/test_internal/test_internal-per-vpath.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: nginx-proxy.example
       VIRTUAL_HOST: nginx-proxy.example
       VIRTUAL_PATH: /web1/
       VIRTUAL_PATH: /web1/
       VIRTUAL_DEST: /
       VIRTUAL_DEST: /
@@ -15,7 +15,7 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: nginx-proxy.example
       VIRTUAL_HOST: nginx-proxy.example
       VIRTUAL_PATH: /web2/
       VIRTUAL_PATH: /web2/
       VIRTUAL_DEST: /
       VIRTUAL_DEST: /

+ 1 - 1
test/test_ipv6/test_ipv6-prefer-ipv4-network.yml

@@ -16,7 +16,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: ipv4only.nginx-proxy.tld
       VIRTUAL_HOST: ipv4only.nginx-proxy.tld
     networks:
     networks:
       ipv4net:
       ipv4net:

+ 1 - 1
test/test_ipv6/test_ipv6-prefer-ipv6-network.yml

@@ -16,7 +16,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: ipv4only.nginx-proxy.tld
       VIRTUAL_HOST: ipv4only.nginx-proxy.tld
     networks:
     networks:
       ipv4net:
       ipv4net:

+ 2 - 2
test/test_ipv6/test_ipv6.yml

@@ -11,7 +11,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web1.nginx-proxy.tld
       VIRTUAL_HOST: web1.nginx-proxy.tld
     networks:
     networks:
       - net1
       - net1
@@ -21,7 +21,7 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: web2.nginx-proxy.tld
       VIRTUAL_HOST: web2.nginx-proxy.tld
     networks:
     networks:
       - net1
       - net1

+ 3 - 3
test/test_keepalive/test_keepalive.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: keepalive-disabled.nginx-proxy.test
       VIRTUAL_HOST: keepalive-disabled.nginx-proxy.test
     labels:
     labels:
       com.github.nginx-proxy.nginx-proxy.keepalive: "disabled"
       com.github.nginx-proxy.nginx-proxy.keepalive: "disabled"
@@ -14,7 +14,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: keepalive-enabled.nginx-proxy.test
       VIRTUAL_HOST: keepalive-enabled.nginx-proxy.test
     labels:
     labels:
       com.github.nginx-proxy.nginx-proxy.keepalive: "64"
       com.github.nginx-proxy.nginx-proxy.keepalive: "64"
@@ -27,7 +27,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: keepalive-auto.nginx-proxy.test
       VIRTUAL_HOST: keepalive-auto.nginx-proxy.test
 
 
   sut:
   sut:

+ 2 - 2
test/test_loadbalancing/test_loadbalancing.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: loadbalance-enabled.nginx-proxy.tld
       VIRTUAL_HOST: loadbalance-enabled.nginx-proxy.tld
     labels:
     labels:
       com.github.nginx-proxy.nginx-proxy.loadbalance: "hash $$remote_addr;"
       com.github.nginx-proxy.nginx-proxy.loadbalance: "hash $$remote_addr;"
@@ -16,7 +16,7 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: loadbalance-disabled.nginx-proxy.tld
       VIRTUAL_HOST: loadbalance-disabled.nginx-proxy.tld
     deploy:
     deploy:
       replicas: 2
       replicas: 2

+ 1 - 1
test/test_logs/test_log-disabled.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: nginx-proxy.test
       VIRTUAL_HOST: nginx-proxy.test
 
 
   sut:
   sut:

+ 1 - 1
test/test_logs/test_log-format.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: nginx-proxy.test
       VIRTUAL_HOST: nginx-proxy.test
 
 
   sut:
   sut:

+ 1 - 1
test/test_logs/test_log-json-format.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: nginx-proxy.test
       VIRTUAL_HOST: nginx-proxy.test
 
 
   sut:
   sut:

+ 1 - 1
test/test_logs/test_log-json.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: nginx-proxy.test
       VIRTUAL_HOST: nginx-proxy.test
 
 
   sut:
   sut:

+ 1 - 1
test/test_multiple-hosts/test_multiple-hosts.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: webA.nginx-proxy.tld,webB.nginx-proxy.tld
       VIRTUAL_HOST: webA.nginx-proxy.tld,webB.nginx-proxy.tld
 
 
   sut:
   sut:

+ 1 - 2
test/test_multiple-networks/test_multiple-networks.py

@@ -21,6 +21,5 @@ def test_multipath(docker_compose, nginxproxy):
     assert r.text == "answer from port 83\n"
     assert r.text == "answer from port 83\n"
     cfg = nginxproxy.get_conf().decode()
     cfg = nginxproxy.get_conf().decode()
     lines = cfg.splitlines()
     lines = cfg.splitlines()
-    web3_server_lines = [l for l in lines
-                         if re.search(r'(?m)^\s*server\s+[^\s]*:83;\s*$', l)]
+    web3_server_lines = [l for l in lines if re.search(r'(?m)^\s*server\s+\S*:83;\s*$', l)]
     assert len(web3_server_lines) == 1
     assert len(web3_server_lines) == 1

+ 3 - 3
test/test_multiple-networks/test_multiple-networks.yml

@@ -20,7 +20,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web1.nginx-proxy.example
       VIRTUAL_HOST: web1.nginx-proxy.example
     networks:
     networks:
       - net1
       - net1
@@ -30,7 +30,7 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: web2.nginx-proxy.example
       VIRTUAL_HOST: web2.nginx-proxy.example
     networks:
     networks:
       - net2
       - net2
@@ -40,7 +40,7 @@ services:
     expose:
     expose:
       - "83"
       - "83"
     environment:
     environment:
-      WEB_PORTS: 83
+      WEB_PORTS: "83"
       VIRTUAL_HOST: web3.nginx-proxy.test
       VIRTUAL_HOST: web3.nginx-proxy.test
     networks:
     networks:
       - net3a
       - net3a

+ 2 - 2
test/test_nominal/test_nominal.yml

@@ -11,7 +11,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web1.nginx-proxy.tld
       VIRTUAL_HOST: web1.nginx-proxy.tld
     networks:
     networks:
       - net1
       - net1
@@ -21,7 +21,7 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: web2.nginx-proxy.tld
       VIRTUAL_HOST: web2.nginx-proxy.tld
     networks:
     networks:
       - net1
       - net1

+ 2 - 2
test/test_raw-ip-vhost/test_raw-ip-vhost.yml

@@ -13,7 +13,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: "172.20.0.4"
       VIRTUAL_HOST: "172.20.0.4"
     networks:
     networks:
       net1:
       net1:
@@ -26,7 +26,7 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: "[fd00::4]"
       VIRTUAL_HOST: "[fd00::4]"
     networks:
     networks:
       net1:
       net1:

+ 3 - 3
test/test_server-down/test_load-balancing.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web.nginx-proxy.tld
       VIRTUAL_HOST: web.nginx-proxy.tld
 
 
   web2:
   web2:
@@ -12,7 +12,7 @@ services:
     expose:
     expose:
       - "82"
       - "82"
     environment:
     environment:
-      WEB_PORTS: 83
+      WEB_PORTS: "83"
       VIRTUAL_HOST: web.nginx-proxy.tld
       VIRTUAL_HOST: web.nginx-proxy.tld
 
 
   web3:
   web3:
@@ -20,7 +20,7 @@ services:
     expose:
     expose:
       - "83"
       - "83"
     environment:
     environment:
-      WEB_PORTS: 83
+      WEB_PORTS: "83"
       VIRTUAL_HOST: web.nginx-proxy.tld
       VIRTUAL_HOST: web.nginx-proxy.tld
     network_mode: "none"
     network_mode: "none"
 
 

+ 1 - 1
test/test_server-down/test_no-server-down.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web.nginx-proxy.tld
       VIRTUAL_HOST: web.nginx-proxy.tld
 
 
   sut:
   sut:

+ 1 - 1
test/test_server-down/test_server-down.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web.nginx-proxy.tld
       VIRTUAL_HOST: web.nginx-proxy.tld
     network_mode: "none"
     network_mode: "none"
 
 

+ 1 - 1
test/test_trust-downstream-proxy/test_default.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: web.nginx-proxy.tld
       VIRTUAL_HOST: web.nginx-proxy.tld
       HTTPS_METHOD: noredirect
       HTTPS_METHOD: noredirect
 
 

+ 1 - 1
test/test_trust-downstream-proxy/test_disabled.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: web.nginx-proxy.tld
       VIRTUAL_HOST: web.nginx-proxy.tld
       HTTPS_METHOD: noredirect
       HTTPS_METHOD: noredirect
 
 

+ 1 - 1
test/test_trust-downstream-proxy/test_enabled.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: web.nginx-proxy.tld
       VIRTUAL_HOST: web.nginx-proxy.tld
       HTTPS_METHOD: noredirect
       HTTPS_METHOD: noredirect
 
 

+ 2 - 2
test/test_unreachable-network/test_unreachable-network.yml

@@ -18,7 +18,7 @@ services:
     expose:
     expose:
       - 81
       - 81
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: webA.nginx-proxy
       VIRTUAL_HOST: webA.nginx-proxy
 
 
   webB:
   webB:
@@ -28,5 +28,5 @@ services:
     expose:
     expose:
       - 82
       - 82
     environment:
     environment:
-      WEB_PORTS: 82
+      WEB_PORTS: "82"
       VIRTUAL_HOST: webB.nginx-proxy
       VIRTUAL_HOST: webB.nginx-proxy

+ 1 - 1
test/test_upstream-name/test_predictable-name.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: web.nginx-proxy.tld
       VIRTUAL_HOST: web.nginx-proxy.tld
 
 
   sut:
   sut:

+ 1 - 1
test/test_upstream-name/test_sha1-name.yml

@@ -4,7 +4,7 @@ services:
     expose:
     expose:
       - "80"
       - "80"
     environment:
     environment:
-      WEB_PORTS: 80
+      WEB_PORTS: "80"
       VIRTUAL_HOST: web.nginx-proxy.tld
       VIRTUAL_HOST: web.nginx-proxy.tld
 
 
   sut:
   sut:

+ 3 - 3
test/test_vhost-in-multiple-networks/test_vhost-in-multiple-networks.py

@@ -1,5 +1,5 @@
 import logging
 import logging
-import time
+from time import sleep
 
 
 import pytest
 import pytest
 
 
@@ -13,11 +13,11 @@ def test_nginx_config_remains_the_same_after_restart(docker_compose, nginxproxy)
     """
     """
     Restarts the Web container and returns nginx-proxy config after restart
     Restarts the Web container and returns nginx-proxy config after restart
     """
     """
-    def get_conf_after_web_container_restart():
+    def get_conf_after_web_container_restart() -> bytes:
         web_containers = docker_compose.containers.list(filters={"ancestor": "web:latest"})
         web_containers = docker_compose.containers.list(filters={"ancestor": "web:latest"})
         assert len(web_containers) == 1
         assert len(web_containers) == 1
         web_containers[0].restart()
         web_containers[0].restart()
-        time.sleep(3)
+        sleep(3)
 
 
         return nginxproxy.get_conf()
         return nginxproxy.get_conf()
 
 

+ 1 - 1
test/test_vhost-in-multiple-networks/test_vhost-in-multiple-networks.yml

@@ -16,7 +16,7 @@ services:
     expose:
     expose:
       - "81"
       - "81"
     environment:
     environment:
-      WEB_PORTS: 81
+      WEB_PORTS: "81"
       VIRTUAL_HOST: web1.nginx-proxy.example
       VIRTUAL_HOST: web1.nginx-proxy.example
     networks:
     networks:
       - net1
       - net1