harbor/tests/apitests/python/test_health_check.py
Wenkai Yin e20b538141 Add e2e test case for health check API
Add e2e test case for health check API

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-10-29 13:48:06 +08:00

17 lines
425 B
Python

# coding: utf-8
from __future__ import absolute_import
import unittest
import testutils
class TestHealthCheck(unittest.TestCase):
def testHealthCheck(self):
client = testutils.GetProductApi("admin", "Harbor12345")
status, code, _ = client.health_get_with_http_info()
self.assertEqual(code, 200)
self.assertEqual("healthy", status.status)
if __name__ == '__main__':
unittest.main()