RIC-961:implement Xn and X2 component IDs correctly in E2M
[ric-plt/e2mgr.git] / E2Manager / mocks / ran_list_manager_mock.go
index 4153681..11c8305 100644 (file)
@@ -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.
@@ -60,6 +61,11 @@ func (m *RanListManagerMock) GetNbIdentityList() []*entities.NbIdentity {
        return args.Get(0).([]*entities.NbIdentity)
 }
 
+func (m *RanListManagerMock) GetNbIdentity(ranName string) (*entities.NbIdentity, error) {
+       args := m.Called(ranName)
+       return args.Get(0).(*entities.NbIdentity), args.Error(1)
+}
+
 func (m *RanListManagerMock) UpdateHealthcheckTimeStampSent(oldRRanName string) (*entities.NbIdentity, *entities.NbIdentity){
        args := m.Called(oldRRanName)
        return args.Get(0).(*entities.NbIdentity), args.Get(1).(*entities.NbIdentity)