harbor/tests/apitests/python/test_health_check.py
Wenkai Yin 654f4d9202 Refactor health check API
Refactor the health check API

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2021-04-15 14:50:27 +08:00

12 lines
356 B
Python

# coding: utf-8
from library.base import Base
class Health(Base, object):
def __init__(self):
super(Health,self).__init__(api_type = "health")
def testHealthCheck(self):
status, code, _ = self._get_client(**kwargs).get_health_with_http_info()
self.assertEqual(code, 200)
self.assertEqual("healthy", status.status)