X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fhandlers%2Fhttpmsghandlers%2Fsetup_request_handler_test.go;h=9f1fbb2cb8dc8325cd247d09b5940859729a250e;hb=refs%2Fchanges%2F68%2F1968%2F1;hp=5556eb1f6948ce30577b50a11db5cb48b16e1a45;hpb=99e39b485bd66dad8afadbc1f3c3c3b0ca3569b5;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/handlers/httpmsghandlers/setup_request_handler_test.go b/E2Manager/handlers/httpmsghandlers/setup_request_handler_test.go index 5556eb1..9f1fbb2 100644 --- a/E2Manager/handlers/httpmsghandlers/setup_request_handler_test.go +++ b/E2Manager/handlers/httpmsghandlers/setup_request_handler_test.go @@ -84,7 +84,7 @@ func TestX2SetupHandleInvalidIpError(t *testing.T) { readerMock.AssertNotCalled(t, "GetNodeb") } -func TestX2SetupHandleGetNodebFailure(t *testing.T) { +func TestSetupGetNodebFailure(t *testing.T) { readerMock, _, handler, _, _ := initSetupRequestTest(t, entities.E2ApplicationProtocol_X2_SETUP_REQUEST) rnibErr := &common.ValidationError{} @@ -243,7 +243,7 @@ func TestSetupExistingRanWithoutAssocE2TInstanceSelectNoInstanceErrorUpdateFailu ranSetupManagerMock.AssertNotCalled(t, "ExecuteSetup") } -func TestSetupExistingRanWithoutAssocE2TInstanceSelectErrorDisconnected(t *testing.T) { +func TestSetupExistingRanWithoutAssocE2TInstanceSelectErrorAlreadyDisconnected(t *testing.T) { readerMock, writerMock, handler, e2tInstancesManagerMock, ranSetupManagerMock := initSetupRequestTest(t, entities.E2ApplicationProtocol_X2_SETUP_REQUEST) nb := &entities.NodebInfo{RanName: RanName, AssociatedE2TInstanceAddress:"", ConnectionStatus:entities.ConnectionStatus_DISCONNECTED} readerMock.On("GetNodeb", RanName).Return(nb , nil) @@ -326,7 +326,7 @@ func TestSetupExistingRanWithAssocE2TInstanceUpdateNodebFailure(t *testing.T) { ranSetupManagerMock.AssertNotCalled(t, "ExecuteSetup") } -func TestSetupExistingConnectedRanWithAssocE2TInstanceSuccess(t *testing.T) { +func TestSetupExistingRanWithAssocE2TInstanceConnectedSuccess(t *testing.T) { readerMock, writerMock, handler, e2tInstancesManagerMock, ranSetupManagerMock := initSetupRequestTest(t, entities.E2ApplicationProtocol_X2_SETUP_REQUEST) nb := &entities.NodebInfo{RanName: RanName, AssociatedE2TInstanceAddress:E2TAddress, ConnectionStatus: entities.ConnectionStatus_CONNECTED} readerMock.On("GetNodeb", RanName).Return(nb , nil)