feat: harden identity and recovery operations
This commit is contained in:
15
tests/Feature/HealthCheckTest.php
Normal file
15
tests/Feature/HealthCheckTest.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
test('liveness endpoint is public and does not expose internals', function () {
|
||||
$this->get(route('health.live'))
|
||||
->assertOk()
|
||||
->assertHeader('Cache-Control', 'no-store, private')
|
||||
->assertExactJson(['status' => 'ok']);
|
||||
});
|
||||
|
||||
test('readiness endpoint checks the database and cache', function () {
|
||||
$this->get(route('health.ready'))
|
||||
->assertOk()
|
||||
->assertJson(['status' => 'ready'])
|
||||
->assertJsonMissingPath('services');
|
||||
});
|
||||
Reference in New Issue
Block a user