Integrate Debian host readiness checks
This commit is contained in:
@@ -15,13 +15,15 @@ class AnsibleHandoffTests(unittest.TestCase):
|
||||
preflight = text.index("Run offline deployment preflight")
|
||||
compose_start = text.index("Start the verified release without rebuilding")
|
||||
readiness = text.index("Wait for loopback readiness")
|
||||
public_readiness = text.index("Verify public HTTPS readiness and certificate trust")
|
||||
current = text.index("Select the current successful release")
|
||||
self.assertLess(controller_verify, target_verify)
|
||||
self.assertLess(target_verify, api_build)
|
||||
self.assertLess(api_build, preflight)
|
||||
self.assertLess(preflight, compose_start)
|
||||
self.assertLess(compose_start, readiness)
|
||||
self.assertLess(readiness, current)
|
||||
self.assertLess(readiness, public_readiness)
|
||||
self.assertLess(public_readiness, current)
|
||||
|
||||
def test_playbook_uses_safe_release_controls(self):
|
||||
text = PLAYBOOK.read_text(encoding="utf-8")
|
||||
@@ -37,6 +39,10 @@ class AnsibleHandoffTests(unittest.TestCase):
|
||||
"AUTO_REPLY_ENABLE_LIVE",
|
||||
"no_log: true",
|
||||
"http://127.0.0.1:8080/health/ready",
|
||||
"Reject public API or MongoDB listeners",
|
||||
"Validate Nginx configuration",
|
||||
"validate_certs: true",
|
||||
"enabled: true",
|
||||
):
|
||||
self.assertIn(required, text)
|
||||
self.assertNotIn("ansible.builtin.shell", text)
|
||||
|
||||
Reference in New Issue
Block a user