J release: Release container Image
[ric-plt/e2mgr.git] / E2Manager / mocks / ran_list_manager_mock.go
index 9606070..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.
@@ -59,3 +60,24 @@ func (m *RanListManagerMock) GetNbIdentityList() []*entities.NbIdentity {
        args := m.Called()
        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)
+}
+
+func (m *RanListManagerMock) UpdateHealthcheckTimeStampReceived(oldRRanName string) (*entities.NbIdentity, *entities.NbIdentity){
+       args := m.Called(oldRRanName)
+       return args.Get(0).(*entities.NbIdentity), args.Get(1).(*entities.NbIdentity)
+}
+
+func (m *RanListManagerMock) UpdateNbIdentities(nodeType entities.Node_Type, oldNbIdentities []*entities.NbIdentity, newNbIdentities []*entities.NbIdentity) error{
+       args:= m.Called(nodeType, oldNbIdentities, newNbIdentities)
+       return args.Error(0)
+}
+