Add R5 content to master
[ric-plt/e2mgr.git] / E2Manager / mocks / rnibWriterMock.go
index d6b1ef9..3503d10 100644 (file)
@@ -13,7 +13,9 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-//
+
+//  This source code is part of the near-RT RIC (RAN Intelligent Controller)
+//  platform project (RICP).
 
 package mocks
 
@@ -61,3 +63,43 @@ func (rnibWriterMock *RnibWriterMock) SaveRanLoadInformation(inventoryName strin
 
        return nil
 }
+
+func (rnibWriterMock *RnibWriterMock) SaveE2TInstance(e2tInstance *entities.E2TInstance) error {
+       args := rnibWriterMock.Called(e2tInstance)
+
+       return args.Error(0)
+}
+
+func (rnibWriterMock *RnibWriterMock) SaveE2TAddresses(addresses []string) error {
+       args := rnibWriterMock.Called(addresses)
+
+       return args.Error(0)
+}
+
+func (rnibWriterMock *RnibWriterMock) RemoveE2TInstance(address string) error {
+       args := rnibWriterMock.Called(address)
+
+       return args.Error(0)
+}
+
+func (rnibWriterMock *RnibWriterMock) UpdateGnbCells(nodebInfo *entities.NodebInfo, servedNrCells []*entities.ServedNRCell) error {
+       args := rnibWriterMock.Called(nodebInfo, servedNrCells)
+       return args.Error(0)
+}
+
+func (rnibWriterMock *RnibWriterMock) RemoveServedNrCells(inventoryName string, servedNrCells []*entities.ServedNRCell) error {
+       args := rnibWriterMock.Called(inventoryName, servedNrCells)
+       return args.Error(0)
+}
+
+func (rnibWriterMock *RnibWriterMock) UpdateNodebInfoOnConnectionStatusInversion(nodebInfo *entities.NodebInfo, stateChangeMessageChannel string, event string) error {
+       args := rnibWriterMock.Called(nodebInfo, stateChangeMessageChannel, event)
+
+       return args.Error(0)
+}
+
+func (rnibWriterMock *RnibWriterMock) SaveGeneralConfiguration(config *entities.GeneralConfiguration) error {
+       args := rnibWriterMock.Called(config)
+
+       return args.Error(0)
+}
\ No newline at end of file