summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-10-10 16:13:33 +0100
committerGitHub <noreply@github.com>2024-10-10 16:13:33 +0100
commit9615610ec9daf28d271afbdfb471426a7748db2b (patch)
treef64837212af055db0af54e2c87c8ff0426645637 /smoketest
parent3bc900722892dba525b7cd6bada4e6327b01fffe (diff)
parent7765e037b9fc9913b58a39bfa39209ebfd3b3f71 (diff)
downloadvyos-1x-9615610ec9daf28d271afbdfb471426a7748db2b.tar.gz
vyos-1x-9615610ec9daf28d271afbdfb471426a7748db2b.zip
Merge pull request #4147 from sarthurdev/haproxy
haproxy: T6745: Rename reverse-proxy to haproxy
Diffstat (limited to 'smoketest')
-rw-r--r--smoketest/configs/basic-vyos21
-rwxr-xr-xsmoketest/scripts/cli/test_load-balancing_haproxy.py (renamed from smoketest/scripts/cli/test_load-balancing_reverse-proxy.py)2
2 files changed, 22 insertions, 1 deletions
diff --git a/smoketest/configs/basic-vyos b/smoketest/configs/basic-vyos
index e95d7458f..242f3d1de 100644
--- a/smoketest/configs/basic-vyos
+++ b/smoketest/configs/basic-vyos
@@ -32,6 +32,27 @@ interfaces {
loopback lo {
}
}
+load-balancing {
+ reverse-proxy {
+ backend bk-01 {
+ balance "round-robin"
+ mode "tcp"
+ server srv01 {
+ address "192.0.2.11"
+ port "8881"
+ }
+ server srv02 {
+ address "192.0.2.12"
+ port "8882"
+ }
+ }
+ service my-tcp-api {
+ backend "bk-01"
+ mode "tcp"
+ port "8888"
+ }
+ }
+}
protocols {
static {
arp 192.168.0.20 {
diff --git a/smoketest/scripts/cli/test_load-balancing_reverse-proxy.py b/smoketest/scripts/cli/test_load-balancing_haproxy.py
index 34f77b95d..967eb3869 100755
--- a/smoketest/scripts/cli/test_load-balancing_reverse-proxy.py
+++ b/smoketest/scripts/cli/test_load-balancing_haproxy.py
@@ -24,7 +24,7 @@ from vyos.utils.file import read_file
PROCESS_NAME = 'haproxy'
HAPROXY_CONF = '/run/haproxy/haproxy.cfg'
-base_path = ['load-balancing', 'reverse-proxy']
+base_path = ['load-balancing', 'haproxy']
proxy_interface = 'eth1'
valid_ca_cert = """