update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user