Skip to content

Commit 7a83c25

Browse files
committed
Update reload_push_options tests: sync -> update-clients
1 parent 9a740f2 commit 7a83c25

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

tests/reload_push_options/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ cd tests/reload_push_options
1818

1919
| Test | Description |
2020
|------|-------------|
21-
| 1 | Basic reload without sync - existing clients unchanged |
22-
| 2 | Sync with new route added |
23-
| 3 | Sync with route removed |
24-
| 4 | Sync with all routes removed |
25-
| 5 | Sync with only new routes (complete replacement) |
26-
| 6 | Sync with mixed changes (add + remove) |
21+
| 1 | Basic reload without update-clients - existing clients unchanged |
22+
| 2 | Update clients with new route added |
23+
| 3 | Update clients with route removed |
24+
| 4 | Update clients with all routes removed |
25+
| 5 | Update clients with only new routes (complete replacement) |
26+
| 6 | Update clients with mixed changes (add + remove) |
2727
| 7 | New client receives updated config |
2828
| 8 | Stress test with 500 routes |
2929

@@ -60,7 +60,7 @@ nc localhost 7505
6060
help
6161
status
6262
reload-push-options
63-
reload-push-options sync
63+
reload-push-options update-clients
6464
```
6565

6666
## Files

tests/reload_push_options/run.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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)
8686
run_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
167167
docker compose up -d --wait
168168
wait_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"
173173
push "route 192.168.20.0 255.255.255.0"
174174
push "route 192.168.30.0 255.255.255.0"
@@ -251,7 +251,7 @@ routes_config+='push "dhcp-option DNS 8.8.8.8"'
251251
update_server_config "$routes_config"
252252

253253
log_lines=$(get_client_log_lines client1)
254-
result=$(mgmt "reload-push-options sync")
254+
result=$(mgmt "reload-push-options update-clients")
255255
echo "Management response: $result"
256256

257257
if ! echo "$result" | grep -q "SUCCESS"; then

0 commit comments

Comments
 (0)