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) UpdateNodebInfoAndPublish(nodebInfo *entities.NodebInfo) error {
56 args := rnibWriterMock.Called(nodebInfo)
67 func (rnibWriterMock *RnibWriterMock) SaveRanLoadInformation(inventoryName string, ranLoadInformation *entities.RanLoadInformation) error {
68 args := rnibWriterMock.Called(inventoryName, ranLoadInformation)
79 func (rnibWriterMock *RnibWriterMock) SaveE2TInstance(e2tInstance *entities.E2TInstance) error {
80 args := rnibWriterMock.Called(e2tInstance)
85 func (rnibWriterMock *RnibWriterMock) SaveE2TAddresses(addresses []string) error {
86 args := rnibWriterMock.Called(addresses)
91 func (rnibWriterMock *RnibWriterMock) RemoveE2TInstance(address string) error {
92 args := rnibWriterMock.Called(address)
97 func (rnibWriterMock *RnibWriterMock) UpdateGnbCells(nodebInfo *entities.NodebInfo, servedNrCells []*entities.ServedNRCell) error {
98 args := rnibWriterMock.Called(nodebInfo, servedNrCells)
102 func (rnibWriterMock *RnibWriterMock) RemoveServedNrCells(inventoryName string, servedNrCells []*entities.ServedNRCell) error {
103 args := rnibWriterMock.Called(inventoryName, servedNrCells)
107 func (rnibWriterMock *RnibWriterMock) UpdateNodebInfoOnConnectionStatusInversion(nodebInfo *entities.NodebInfo, event string) error {
108 args := rnibWriterMock.Called(nodebInfo, event)
113 func (rnibWriterMock *RnibWriterMock) SaveGeneralConfiguration(config *entities.GeneralConfiguration) error {
114 args := rnibWriterMock.Called(config)
119 func (rnibWriterMock *RnibWriterMock) RemoveEnb(nodebInfo *entities.NodebInfo) error {
120 args := rnibWriterMock.Called(nodebInfo)
125 func (rnibWriterMock *RnibWriterMock) RemoveServedCells(inventoryName string, servedCells []*entities.ServedCellInfo) error {
126 args := rnibWriterMock.Called(inventoryName, servedCells)
131 func (rnibWriterMock *RnibWriterMock) UpdateEnb(nodebInfo *entities.NodebInfo, servedCells []*entities.ServedCellInfo) error {
132 args := rnibWriterMock.Called(nodebInfo, servedCells)
137 func (rnibWriterMock *RnibWriterMock) AddNbIdentity(nodeType entities.Node_Type, nbIdentity *entities.NbIdentity) error {
138 args := rnibWriterMock.Called(nodeType, nbIdentity)
141 func (rnibWriterMock *RnibWriterMock) RemoveNbIdentity(nodeType entities.Node_Type, nbIdentity *entities.NbIdentity) error {
142 args := rnibWriterMock.Called(nodeType, nbIdentity)
146 func (rnibWriterMock *RnibWriterMock) AddEnb(nodebInfo *entities.NodebInfo) error {
147 args := rnibWriterMock.Called(nodebInfo)
151 func (rnibWriterMock *RnibWriterMock) UpdateNbIdentities(nodeType entities.Node_Type, oldNbIdentities []*entities.NbIdentity, newNbIdentities []*entities.NbIdentity) error {
152 args := rnibWriterMock.Called(nodeType, oldNbIdentities, newNbIdentities)