2 // Copyright 2019 AT&T Intellectual Property
3 // Copyright 2019 Nokia
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
17 // This source code is part of the near-RT RIC (RAN Intelligent Controller)
18 // platform project (RICP).
23 "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
24 "github.com/stretchr/testify/mock"
27 type RnibWriterMock struct {
31 func (rnibWriterMock *RnibWriterMock) SaveNodeb(nodebInfo *entities.NodebInfo) error {
32 args := rnibWriterMock.Called(nodebInfo)
43 func (rnibWriterMock *RnibWriterMock) UpdateNodebInfo(nodebInfo *entities.NodebInfo) error {
44 args := rnibWriterMock.Called(nodebInfo)
55 func (rnibWriterMock *RnibWriterMock) SaveRanLoadInformation(inventoryName string, ranLoadInformation *entities.RanLoadInformation) error {
56 args := rnibWriterMock.Called(inventoryName, ranLoadInformation)
67 func (rnibWriterMock *RnibWriterMock) SaveE2TInstance(e2tInstance *entities.E2TInstance) error {
68 args := rnibWriterMock.Called(e2tInstance)
73 func (rnibWriterMock *RnibWriterMock) SaveE2TAddresses(addresses []string) error {
74 args := rnibWriterMock.Called(addresses)
79 func (rnibWriterMock *RnibWriterMock) RemoveE2TInstance(address string) error {
80 args := rnibWriterMock.Called(address)
85 func (rnibWriterMock *RnibWriterMock) UpdateGnbCells(nodebInfo *entities.NodebInfo, servedNrCells []*entities.ServedNRCell) error {
86 args := rnibWriterMock.Called(nodebInfo, servedNrCells)
90 func (rnibWriterMock *RnibWriterMock) RemoveServedNrCells(inventoryName string, servedNrCells []*entities.ServedNRCell) error {
91 args := rnibWriterMock.Called(inventoryName, servedNrCells)
95 func (rnibWriterMock *RnibWriterMock) UpdateNodebInfoOnConnectionStatusInversion(nodebInfo *entities.NodebInfo, event string) error {
96 args := rnibWriterMock.Called(nodebInfo, event)
101 func (rnibWriterMock *RnibWriterMock) SaveGeneralConfiguration(config *entities.GeneralConfiguration) error {
102 args := rnibWriterMock.Called(config)
107 func (rnibWriterMock *RnibWriterMock) RemoveEnb(nodebInfo *entities.NodebInfo) error {
108 args := rnibWriterMock.Called(nodebInfo)
113 func (rnibWriterMock *RnibWriterMock) RemoveServedCells(inventoryName string, servedCells []*entities.ServedCellInfo) error {
114 args := rnibWriterMock.Called(inventoryName, servedCells)
119 func (rnibWriterMock *RnibWriterMock) UpdateEnb(nodebInfo *entities.NodebInfo, servedCells []*entities.ServedCellInfo) error {
120 args := rnibWriterMock.Called(nodebInfo, servedCells)
125 func (rnibWriterMock *RnibWriterMock) AddNbIdentity(nodeType entities.Node_Type, nbIdentity *entities.NbIdentity) error {
126 args := rnibWriterMock.Called(nodeType, nbIdentity)
129 func (rnibWriterMock *RnibWriterMock) RemoveNbIdentity(nodeType entities.Node_Type, nbIdentity *entities.NbIdentity) error {
130 args := rnibWriterMock.Called(nodeType, nbIdentity)
134 func (rnibWriterMock *RnibWriterMock) AddEnb(nodebInfo *entities.NodebInfo) error {
135 args := rnibWriterMock.Called(nodebInfo)