fix(deploy): clarify device postgres bootstrap plan

This commit is contained in:
Codex
2026-07-25 22:17:05 +03:00
parent e217723784
commit 1102e25e6e
2 changed files with 27 additions and 1 deletions
@@ -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,