Extract the restore_command object-store selection out of Restore into a
pure resolveRestoreObjectStore helper and add table-driven coverage for
the routing decision, including the designated-primary promotion case
(both switchover and failover) that previously had no regression test.
The refactor is behavior-preserving; it also makes the gocognit
suppression on Restore unnecessary, so it is dropped.
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>