mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-01 16:19:37 +01:00
e20b538141
Add e2e test case for health check API Signed-off-by: Wenkai Yin <yinw@vmware.com>
17 lines
425 B
Python
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()
|