Browse Source

fix example test 06

Fabrizio Furnari 1 month ago
parent
commit
1693366aa1
1 changed files with 2 additions and 4 deletions
  1. 2 4
      example_tests/06-backend_configuration.py

+ 2 - 4
example_tests/06-backend_configuration.py

@@ -14,7 +14,7 @@ class ExampleBackendConfigurationTest(BaseProxyTest):
             # Host and port are used both by the HTTP backend and in the
             # Host and port are used both by the HTTP backend and in the
             # reverse proxy configuration
             # reverse proxy configuration
             host="127.0.0.1",
             host="127.0.0.1",
-            port="9999",
+            port=9999,
             # Response headers, body and status are sent to the reverse proxy
             # Response headers, body and status are sent to the reverse proxy
             # at each request
             # at each request
             response_headers={
             response_headers={
@@ -29,9 +29,7 @@ class ExampleBackendConfigurationTest(BaseProxyTest):
         self.expected_headers = {
         self.expected_headers = {
             "x-test-2": "5678",
             "x-test-2": "5678",
         }
         }
-        self.forbidden_client_headers = {
-            "x-test-3": "abcd",
-        }
+        self.forbidden_client_headers = ["x-test-3"]
 
 
         self.expected_header_patterns = {
         self.expected_header_patterns = {
             "x-test-1": r"^[1-4]{4}$",
             "x-test-1": r"^[1-4]{4}$",