This commit is contained in:
David Schroeder
2026-07-29 17:22:18 -05:00
parent 8bd60e2f52
commit c0bbfb3447
4 changed files with 27 additions and 3 deletions
+14
View File
@@ -62,4 +62,18 @@ assert_equal $'remote:pve2\nlocal:pve1' \
"$(cat "$update_log")" \
"online remotes and initiating node update once"
TAPM_CLUSTER_NODE_ROWS() {
printf 'pve1\tonline\npve2\tonline\n'
}
TAPM_UPDATE_REMOTE_NODE() {
printf 'remote update output\n'
}
INSTALL_LOCAL_UPDATES() {
printf 'local update output\n'
}
expected_output=$'Updating TA-ProxMenu across 2 cluster node(s)...\n\nUpdating remote node pve2...\nremote update output\nRemote node pve2 is updated.\n\nUpdating local node pve1...\nlocal update output\nLocal node pve1 is updated.\n\nTA-ProxMenu is updated on all 2 cluster node(s).'
assert_equal "$expected_output" \
"$(INSTALL_CLUSTER_UPDATES)" \
"each node update is grouped with blank lines only between node blocks"
finish_tests