fix(deploy): clarify device postgres bootstrap plan
This commit is contained in:
@@ -165,6 +165,21 @@ class DevicePlanePostgresBootstrapTest(unittest.TestCase):
|
||||
):
|
||||
RUNNER.preflight_device_plane_postgres_bootstrap()
|
||||
|
||||
def test_plan_selection_is_unambiguous_for_bootstrap_and_application(self):
|
||||
self.assertEqual(
|
||||
RUNNER.device_plane_postgres_plan_selection(None),
|
||||
"preserved-prerequisite:not-selected",
|
||||
)
|
||||
self.assertEqual(
|
||||
RUNNER.device_plane_postgres_plan_selection("absent"),
|
||||
"bootstrap-selected:create-if-absent",
|
||||
)
|
||||
with self.assertRaisesRegex(
|
||||
RUNNER.DeployError,
|
||||
"plan preflight state is invalid",
|
||||
):
|
||||
RUNNER.device_plane_postgres_plan_selection("unknown")
|
||||
|
||||
def test_bootstrap_health_acceptance_is_database_service_only(self):
|
||||
with mock.patch.object(
|
||||
RUNNER,
|
||||
|
||||
Reference in New Issue
Block a user