mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-05 00:23:33 +01:00
654f4d9202
Refactor the health check API Signed-off-by: Wenkai Yin <yinw@vmware.com>
12 lines
356 B
Python
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)
|