X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fproviders%2Fhttpmsghandlerprovider%2Fincoming_request_handler_provider_test.go;fp=E2Manager%2Fproviders%2Fhttpmsghandlerprovider%2Fincoming_request_handler_provider_test.go;h=a692db05f4c9657052110b6a9a8795101b5bbc71;hb=fe8d481d7f3e8d4b889ee3dcd995984eeb64cc6e;hp=761edafebea69e88f5179abd8d8ca12dd9c95130;hpb=dc0d5827b7737a7a3aaa486e94a05d9aa262607e;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/providers/httpmsghandlerprovider/incoming_request_handler_provider_test.go b/E2Manager/providers/httpmsghandlerprovider/incoming_request_handler_provider_test.go index 761edaf..a692db0 100644 --- a/E2Manager/providers/httpmsghandlerprovider/incoming_request_handler_provider_test.go +++ b/E2Manager/providers/httpmsghandlerprovider/incoming_request_handler_provider_test.go @@ -93,6 +93,18 @@ func TestSetGeneralConfigurationHandler(t *testing.T) { assert.True(t, ok) } +func TestHealthCheckRequest(t *testing.T) { + provider := setupTest(t) + handler, err := provider.GetHandler(HealthCheckRequest) + + assert.NotNil(t, provider) + assert.Nil(t, err) + + _, ok := handler.(*httpmsghandlers.HealthCheckRequestHandler) + + assert.True(t, ok) +} + func TestGetShutdownHandlerFailure(t *testing.T) { provider := setupTest(t) _, actual := provider.GetHandler("test")