Add RMR_VCTL_FILE in order to control RMR debug level
[ric-plt/e2mgr.git] / E2Manager / mocks / e2t_instances_manager_mock.go
1 //
2 // Copyright 2019 AT&T Intellectual Property
3 // Copyright 2019 Nokia
4 //
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
8 //
9 //      http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18 //  This source code is part of the near-RT RIC (RAN Intelligent Controller)
19 //  platform project (RICP).
20
21 package mocks
22
23 import (
24         "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
25         "github.com/stretchr/testify/mock"
26 )
27
28 type E2TInstancesManagerMock struct {
29         mock.Mock
30 }
31
32 func (m *E2TInstancesManagerMock) GetE2TInstance(e2tAddress string) (*entities.E2TInstance, error) {
33         args := m.Called(e2tAddress)
34
35         return args.Get(0).(*entities.E2TInstance), args.Error(1)
36 }
37
38 func (m *E2TInstancesManagerMock) AddE2TInstance(e2tInstanceAddress string) error {
39         args := m.Called(e2tInstanceAddress)
40         return args.Error(0)
41 }
42
43 func (m *E2TInstancesManagerMock) RemoveE2TInstance(e2tInstance *entities.E2TInstance) error {
44         args := m.Called(e2tInstance)
45         return args.Error(0)
46 }
47
48 func (m *E2TInstancesManagerMock) SelectE2TInstance() (string, error) {
49         args := m.Called()
50         return args.String(0), args.Error(1)
51 }
52
53 func (m *E2TInstancesManagerMock) AddRanToInstance(ranName string, e2tAddress string) error {
54         args := m.Called(ranName, e2tAddress)
55         return args.Error(0)
56
57 }
58 func (m *E2TInstancesManagerMock) RemoveRanFromInstance(ranName string, e2tAddress string) error {
59         args := m.Called(ranName, e2tAddress)
60         return args.Error(0)
61
62 }
63
64 func (m *E2TInstancesManagerMock) GetE2TInstances() ([]*entities.E2TInstance, error) {
65         args := m.Called()
66
67         return args.Get(0).([]*entities.E2TInstance), args.Error(1)
68 }
69
70 func (m *E2TInstancesManagerMock) GetE2TInstancesNoLogs() ([]*entities.E2TInstance, error) {
71         args := m.Called()
72
73         return args.Get(0).([]*entities.E2TInstance), args.Error(1)
74 }
75
76 func (m *E2TInstancesManagerMock) ResetKeepAliveTimestamp(e2tAddress string) error {
77         args := m.Called(e2tAddress)
78         return args.Error(0)
79
80 }
81
82 func (m *E2TInstancesManagerMock) ActivateE2TInstance(e2tInstance *entities.E2TInstance) error {
83         args := m.Called(e2tInstance)
84         return args.Error(0)
85 }
86
87 func (m *E2TInstancesManagerMock) GetE2TAddresses() ([]string, error) {
88         args := m.Called()
89         return args.Get(0).([]string), args.Error(1)
90 }
91
92 func (m *E2TInstancesManagerMock) ClearRansOfAllE2TInstances() error {
93         args := m.Called()
94         return args.Error(0)
95 }