Skip to content

Commit

Permalink
Remove asserts and cm keys deprecated in VS/VSRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean-Coakley committed Nov 1, 2019
1 parent 737a10d commit d9a5e1a
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ metadata:
name: nginx-config
namespace: nginx-ingress
data:
ssl-redirect: "invalid"
proxy-protocol: "invalid"
http2: "invalid"
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ metadata:
name: nginx-config
namespace: nginx-ingress
data:
ssl-redirect: "false"
proxy-protocol: "true"
http2: "true"
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ data:
lb-method: "least_time header inflight" # plus only
max-fails: "invalid"
keepalive: "invalid"
proxy-protocol: "invalid proxy"
redirect-to-https: "invalid"
proxy-protocol: "invalid proxy"
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ data:
max-fails: "invalid"
keepalive: "invalid"
proxy-protocol: "invalid proxy"
redirect-to-https: "invalid"
variables-hash-bucket-size: "0"
variables-hash-max-size: "-1024"
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ data:
max-fails: "3"
keepalive: "32"
proxy-protocol: "true"
redirect-to-https: "true"
upstream-zone-size: "0" # special value
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ data:
max-fails: "3"
keepalive: "32"
proxy-protocol: "true"
redirect-to-https: "true"
upstream-zone-size: "0" # special value
variables-hash-bucket-size: "512"
variables-hash-max-size: "2048"
2 changes: 0 additions & 2 deletions tests/suite/test_virtual_server_configmap_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def assert_keys_with_validation(config, expected_values):
assert f"max_fails={expected_values['max-fails']}" in config
assert f"keepalive {expected_values['keepalive']};" in config
assert "listen 80 proxy_protocol;" in config
assert "if ($http_x_forwarded_proto = 'http') {" in config


def assert_keys_with_validation_in_main_config(config, expected_values):
Expand Down Expand Up @@ -84,7 +83,6 @@ def assert_defaults_of_keys_with_validation(config, unexpected_values):
assert "max_fails=1" in config
assert "keepalive" not in config
assert "listen 80;" in config
assert "if ($http_x_forwarded_proto = 'http') {" not in config
assert "server_tokens \"on\"" in config
assert "random two least_conn;" in config and unexpected_values['lb-method'] not in config
assert f"proxy_send_timeout 60s;" in config
Expand Down

0 comments on commit d9a5e1a

Please sign in to comment.