diff options
author | Christian Breunig <christian@breunig.cc> | 2023-09-22 06:17:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-22 06:17:13 +0200 |
commit | 1f6b7168af0d295b81324fd64a4876073de33066 (patch) | |
tree | 3fc3f3d446d173570958f2f2c8bec321c5e0ff83 /smoketest/scripts | |
parent | 7e16cea1897eba08f8e11bc5c600fcf8dc2cb591 (diff) | |
parent | efc1f296826c5b3023e447ea8fe948a1a94056ff (diff) | |
download | vyos-1x-1f6b7168af0d295b81324fd64a4876073de33066.tar.gz vyos-1x-1f6b7168af0d295b81324fd64a4876073de33066.zip |
Merge pull request #2299 from vyos/mergify/bp/sagitta/pr-2294
T5602: Reverse-proxy add option backup for backend server (backport #2294)
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-x | smoketest/scripts/cli/test_load_balancing_reverse_proxy.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_load_balancing_reverse_proxy.py b/smoketest/scripts/cli/test_load_balancing_reverse_proxy.py index a33fd5c18..274b97f22 100755 --- a/smoketest/scripts/cli/test_load_balancing_reverse_proxy.py +++ b/smoketest/scripts/cli/test_load_balancing_reverse_proxy.py @@ -74,6 +74,7 @@ class TestLoadBalancingReverseProxy(VyOSUnitTestSHIM.TestCase): self.cli_set(back_base + [bk_second_name, 'mode', mode]) self.cli_set(back_base + [bk_second_name, 'server', bk_second_name, 'address', bk_server_second]) self.cli_set(back_base + [bk_second_name, 'server', bk_second_name, 'port', bk_server_port]) + self.cli_set(back_base + [bk_second_name, 'server', bk_second_name, 'backup']) self.cli_set(base_path + ['global-parameters', 'max-connections', max_connections]) @@ -106,6 +107,7 @@ class TestLoadBalancingReverseProxy(VyOSUnitTestSHIM.TestCase): self.assertIn(f'backend {bk_second_name}', config) self.assertIn(f'mode {mode}', config) self.assertIn(f'server {bk_second_name} {bk_server_second}:{bk_server_port}', config) + self.assertIn(f'server {bk_second_name} {bk_server_second}:{bk_server_port} backup', config) if __name__ == '__main__': |