def tearDown(self):
pass
- def test_health_check(self):
+ def test_vnfpkgm_health_check(self):
response = self.client.get("/api/vnfpkgm/v1/health_check")
self.assertEqual(status.HTTP_200_OK, response.status_code, response.content)
resp_data = json.loads(response.content)
self.assertEqual({"status": "active"}, resp_data)
+
+ def test_nsd_health_check(self):
+ response = self.client.get("/api/nsd/v1/health_check")
+ self.assertEqual(status.HTTP_200_OK, response.status_code, response.content)
+ resp_data = json.loads(response.content)
+ self.assertEqual({"status": "active"}, resp_data)
+
+ def test_catalog_health_check(self):
+ response = self.client.get("/api/catalog/v1/health_check")
+ self.assertEqual(status.HTTP_200_OK, response.status_code, response.content)
+ resp_data = json.loads(response.content)
+ self.assertEqual({"status": "active"}, resp_data)
+
+ def test_parser_health_check(self):
+ response = self.client.get("/api/parser/v1/health_check")
+ self.assertEqual(status.HTTP_200_OK, response.status_code, response.content)
+ resp_data = json.loads(response.content)
+ self.assertEqual({"status": "active"}, resp_data)
# health check
url(r'^api/vnfpkgm/v1/health_check$', HealthCheckView.as_view()),
+ url(r'^api/nsd/v1/health_check$', HealthCheckView.as_view()),
+ url(r'^api/catalog/v1/health_check$', HealthCheckView.as_view()),
+ url(r'^api/parser/v1/health_check$', HealthCheckView.as_view()),
]