https://tools.ietf.org/html/draft-inadarei-api-health-check-04 closes odoo/odoo#56522 Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
13 lines
415 B
Python
13 lines
415 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.tests import HttpCase
|
|
|
|
|
|
class TestWebController(HttpCase):
|
|
def test_health(self):
|
|
response = self.url_open('/web/health')
|
|
self.assertEqual(response.status_code, 200)
|
|
payload = response.json()
|
|
self.assertEqual(payload['status'], 'pass')
|
|
self.assertNotIn('session_id', response.cookies)
|