X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fproviders%2Fhttpmsghandlerprovider%2Fincoming_request_handler_provider_test.go;h=db1915a92e6f446bf84964f01fb51f120b04896d;hb=refs%2Fchanges%2F09%2F4809%2F6;hp=761edafebea69e88f5179abd8d8ca12dd9c95130;hpb=7000880c4031e607a2fe36046fd097f486476a84;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..db1915a 100644 --- a/E2Manager/providers/httpmsghandlerprovider/incoming_request_handler_provider_test.go +++ b/E2Manager/providers/httpmsghandlerprovider/incoming_request_handler_provider_test.go @@ -1,6 +1,7 @@ // // Copyright 2019 AT&T Intellectual Property // Copyright 2019 Nokia +// Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -81,6 +82,18 @@ func TestShutdownRequestHandler(t *testing.T) { assert.True(t, ok) } +func TestGetNodebIdRequestHandler(t *testing.T) { + provider := setupTest(t) + handler, err := provider.GetHandler(GetNodebIdRequest) + + assert.NotNil(t, provider) + assert.Nil(t, err) + + _, ok := handler.(*httpmsghandlers.GetNodebIdRequestHandler) + + assert.True(t, ok) +} + func TestSetGeneralConfigurationHandler(t *testing.T) { provider := setupTest(t) handler, err := provider.GetHandler(SetGeneralConfigurationRequest) @@ -93,6 +106,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")