@@ -80,13 +80,13 @@ cleanup() {
8080 rm -rf results/*
8181}
8282
83- # Run test: update config, reload (with or without sync ), verify routes
84- # Args: test_name, client, sync (0|1|skip), config_content, must_have_pattern, must_not_have_pattern
85- # sync =skip: don't send mgmt command, just verify routes (for reconnect tests)
83+ # Run test: update config, reload (with or without update-clients ), verify routes
84+ # Args: test_name, client, update_clients (0|1|skip), config_content, must_have_pattern, must_not_have_pattern
85+ # update_clients =skip: don't send mgmt command, just verify routes (for reconnect tests)
8686run_test () {
8787 local test_name=" $1 "
8888 local client=" $2 "
89- local sync =" $3 "
89+ local update_clients =" $3 "
9090 local config_content=" $4 "
9191 local must_have=" $5 "
9292 local must_not_have=" $6 "
@@ -99,9 +99,9 @@ run_test() {
9999
100100 update_server_config " $config_content "
101101
102- if [ " $sync " != " skip" ]; then
102+ if [ " $update_clients " != " skip" ]; then
103103 local cmd=" reload-push-options"
104- [ " $sync " = " 1" ] && cmd=" reload-push-options sync "
104+ [ " $update_clients " = " 1" ] && cmd=" reload-push-options update-clients "
105105
106106 local result=$( mgmt " $cmd " )
107107 echo " Management response: $result "
@@ -111,7 +111,7 @@ run_test() {
111111 fi
112112 pass " $test_name : command succeeded"
113113
114- if [ " $sync " = " 1" ]; then
114+ if [ " $update_clients " = " 1" ]; then
115115 wait_for_client_ready " $client " " $log_lines "
116116 else
117117 sleep 2
@@ -167,8 +167,8 @@ docker compose build
167167docker compose up -d --wait
168168wait_for_clients
169169
170- # Test 1: No sync - routes must NOT change (still have initial routes, not the new 192.168.30.0)
171- run_test " Test 1: No sync " client1 0 \
170+ # Test 1: No update-clients - routes must NOT change (still have initial routes, not the new 192.168.30.0)
171+ run_test " Test 1: No update-clients " client1 0 \
172172 ' push "route 192.168.10.0 255.255.255.0"
173173push "route 192.168.20.0 255.255.255.0"
174174push "route 192.168.30.0 255.255.255.0"
@@ -251,7 +251,7 @@ routes_config+='push "dhcp-option DNS 8.8.8.8"'
251251update_server_config " $routes_config "
252252
253253log_lines=$( get_client_log_lines client1)
254- result=$( mgmt " reload-push-options sync " )
254+ result=$( mgmt " reload-push-options update-clients " )
255255echo " Management response: $result "
256256
257257if ! echo " $result " | grep -q " SUCCESS" ; then
0 commit comments