mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-01 08:09:59 +01:00
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()
|