-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathcloud_services_providers_manager_mock.go
304 lines (246 loc) · 11.2 KB
/
cloud_services_providers_manager_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
// Code generated by mockery. DO NOT EDIT.
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2025 Datadog, Inc.
package cloudservice
import (
types "github.com/DataDog/chaos-controller/cloudservice/types"
mock "github.com/stretchr/testify/mock"
)
// CloudServicesProvidersManagerMock is an autogenerated mock type for the CloudServicesProvidersManager type
type CloudServicesProvidersManagerMock struct {
mock.Mock
}
type CloudServicesProvidersManagerMock_Expecter struct {
mock *mock.Mock
}
func (_m *CloudServicesProvidersManagerMock) EXPECT() *CloudServicesProvidersManagerMock_Expecter {
return &CloudServicesProvidersManagerMock_Expecter{mock: &_m.Mock}
}
// GetProviderByName provides a mock function with given fields: name
func (_m *CloudServicesProvidersManagerMock) GetProviderByName(name types.CloudProviderName) *CloudServicesProvider {
ret := _m.Called(name)
if len(ret) == 0 {
panic("no return value specified for GetProviderByName")
}
var r0 *CloudServicesProvider
if rf, ok := ret.Get(0).(func(types.CloudProviderName) *CloudServicesProvider); ok {
r0 = rf(name)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*CloudServicesProvider)
}
}
return r0
}
// CloudServicesProvidersManagerMock_GetProviderByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProviderByName'
type CloudServicesProvidersManagerMock_GetProviderByName_Call struct {
*mock.Call
}
// GetProviderByName is a helper method to define mock.On call
// - name types.CloudProviderName
func (_e *CloudServicesProvidersManagerMock_Expecter) GetProviderByName(name interface{}) *CloudServicesProvidersManagerMock_GetProviderByName_Call {
return &CloudServicesProvidersManagerMock_GetProviderByName_Call{Call: _e.mock.On("GetProviderByName", name)}
}
func (_c *CloudServicesProvidersManagerMock_GetProviderByName_Call) Run(run func(name types.CloudProviderName)) *CloudServicesProvidersManagerMock_GetProviderByName_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(types.CloudProviderName))
})
return _c
}
func (_c *CloudServicesProvidersManagerMock_GetProviderByName_Call) Return(_a0 *CloudServicesProvider) *CloudServicesProvidersManagerMock_GetProviderByName_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *CloudServicesProvidersManagerMock_GetProviderByName_Call) RunAndReturn(run func(types.CloudProviderName) *CloudServicesProvider) *CloudServicesProvidersManagerMock_GetProviderByName_Call {
_c.Call.Return(run)
return _c
}
// GetServiceList provides a mock function with given fields: cloudProviderName
func (_m *CloudServicesProvidersManagerMock) GetServiceList(cloudProviderName types.CloudProviderName) []string {
ret := _m.Called(cloudProviderName)
if len(ret) == 0 {
panic("no return value specified for GetServiceList")
}
var r0 []string
if rf, ok := ret.Get(0).(func(types.CloudProviderName) []string); ok {
r0 = rf(cloudProviderName)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]string)
}
}
return r0
}
// CloudServicesProvidersManagerMock_GetServiceList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetServiceList'
type CloudServicesProvidersManagerMock_GetServiceList_Call struct {
*mock.Call
}
// GetServiceList is a helper method to define mock.On call
// - cloudProviderName types.CloudProviderName
func (_e *CloudServicesProvidersManagerMock_Expecter) GetServiceList(cloudProviderName interface{}) *CloudServicesProvidersManagerMock_GetServiceList_Call {
return &CloudServicesProvidersManagerMock_GetServiceList_Call{Call: _e.mock.On("GetServiceList", cloudProviderName)}
}
func (_c *CloudServicesProvidersManagerMock_GetServiceList_Call) Run(run func(cloudProviderName types.CloudProviderName)) *CloudServicesProvidersManagerMock_GetServiceList_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(types.CloudProviderName))
})
return _c
}
func (_c *CloudServicesProvidersManagerMock_GetServiceList_Call) Return(_a0 []string) *CloudServicesProvidersManagerMock_GetServiceList_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *CloudServicesProvidersManagerMock_GetServiceList_Call) RunAndReturn(run func(types.CloudProviderName) []string) *CloudServicesProvidersManagerMock_GetServiceList_Call {
_c.Call.Return(run)
return _c
}
// GetServicesIPRanges provides a mock function with given fields: cloudProviderName, serviceNames
func (_m *CloudServicesProvidersManagerMock) GetServicesIPRanges(cloudProviderName types.CloudProviderName, serviceNames []string) (map[string][]string, error) {
ret := _m.Called(cloudProviderName, serviceNames)
if len(ret) == 0 {
panic("no return value specified for GetServicesIPRanges")
}
var r0 map[string][]string
var r1 error
if rf, ok := ret.Get(0).(func(types.CloudProviderName, []string) (map[string][]string, error)); ok {
return rf(cloudProviderName, serviceNames)
}
if rf, ok := ret.Get(0).(func(types.CloudProviderName, []string) map[string][]string); ok {
r0 = rf(cloudProviderName, serviceNames)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string][]string)
}
}
if rf, ok := ret.Get(1).(func(types.CloudProviderName, []string) error); ok {
r1 = rf(cloudProviderName, serviceNames)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// CloudServicesProvidersManagerMock_GetServicesIPRanges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetServicesIPRanges'
type CloudServicesProvidersManagerMock_GetServicesIPRanges_Call struct {
*mock.Call
}
// GetServicesIPRanges is a helper method to define mock.On call
// - cloudProviderName types.CloudProviderName
// - serviceNames []string
func (_e *CloudServicesProvidersManagerMock_Expecter) GetServicesIPRanges(cloudProviderName interface{}, serviceNames interface{}) *CloudServicesProvidersManagerMock_GetServicesIPRanges_Call {
return &CloudServicesProvidersManagerMock_GetServicesIPRanges_Call{Call: _e.mock.On("GetServicesIPRanges", cloudProviderName, serviceNames)}
}
func (_c *CloudServicesProvidersManagerMock_GetServicesIPRanges_Call) Run(run func(cloudProviderName types.CloudProviderName, serviceNames []string)) *CloudServicesProvidersManagerMock_GetServicesIPRanges_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(types.CloudProviderName), args[1].([]string))
})
return _c
}
func (_c *CloudServicesProvidersManagerMock_GetServicesIPRanges_Call) Return(_a0 map[string][]string, _a1 error) *CloudServicesProvidersManagerMock_GetServicesIPRanges_Call {
_c.Call.Return(_a0, _a1)
return _c
}
func (_c *CloudServicesProvidersManagerMock_GetServicesIPRanges_Call) RunAndReturn(run func(types.CloudProviderName, []string) (map[string][]string, error)) *CloudServicesProvidersManagerMock_GetServicesIPRanges_Call {
_c.Call.Return(run)
return _c
}
// PullIPRanges provides a mock function with no fields
func (_m *CloudServicesProvidersManagerMock) PullIPRanges() error {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for PullIPRanges")
}
var r0 error
if rf, ok := ret.Get(0).(func() error); ok {
r0 = rf()
} else {
r0 = ret.Error(0)
}
return r0
}
// CloudServicesProvidersManagerMock_PullIPRanges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PullIPRanges'
type CloudServicesProvidersManagerMock_PullIPRanges_Call struct {
*mock.Call
}
// PullIPRanges is a helper method to define mock.On call
func (_e *CloudServicesProvidersManagerMock_Expecter) PullIPRanges() *CloudServicesProvidersManagerMock_PullIPRanges_Call {
return &CloudServicesProvidersManagerMock_PullIPRanges_Call{Call: _e.mock.On("PullIPRanges")}
}
func (_c *CloudServicesProvidersManagerMock_PullIPRanges_Call) Run(run func()) *CloudServicesProvidersManagerMock_PullIPRanges_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *CloudServicesProvidersManagerMock_PullIPRanges_Call) Return(_a0 error) *CloudServicesProvidersManagerMock_PullIPRanges_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *CloudServicesProvidersManagerMock_PullIPRanges_Call) RunAndReturn(run func() error) *CloudServicesProvidersManagerMock_PullIPRanges_Call {
_c.Call.Return(run)
return _c
}
// StartPeriodicPull provides a mock function with no fields
func (_m *CloudServicesProvidersManagerMock) StartPeriodicPull() {
_m.Called()
}
// CloudServicesProvidersManagerMock_StartPeriodicPull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartPeriodicPull'
type CloudServicesProvidersManagerMock_StartPeriodicPull_Call struct {
*mock.Call
}
// StartPeriodicPull is a helper method to define mock.On call
func (_e *CloudServicesProvidersManagerMock_Expecter) StartPeriodicPull() *CloudServicesProvidersManagerMock_StartPeriodicPull_Call {
return &CloudServicesProvidersManagerMock_StartPeriodicPull_Call{Call: _e.mock.On("StartPeriodicPull")}
}
func (_c *CloudServicesProvidersManagerMock_StartPeriodicPull_Call) Run(run func()) *CloudServicesProvidersManagerMock_StartPeriodicPull_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *CloudServicesProvidersManagerMock_StartPeriodicPull_Call) Return() *CloudServicesProvidersManagerMock_StartPeriodicPull_Call {
_c.Call.Return()
return _c
}
func (_c *CloudServicesProvidersManagerMock_StartPeriodicPull_Call) RunAndReturn(run func()) *CloudServicesProvidersManagerMock_StartPeriodicPull_Call {
_c.Run(run)
return _c
}
// StopPeriodicPull provides a mock function with no fields
func (_m *CloudServicesProvidersManagerMock) StopPeriodicPull() {
_m.Called()
}
// CloudServicesProvidersManagerMock_StopPeriodicPull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopPeriodicPull'
type CloudServicesProvidersManagerMock_StopPeriodicPull_Call struct {
*mock.Call
}
// StopPeriodicPull is a helper method to define mock.On call
func (_e *CloudServicesProvidersManagerMock_Expecter) StopPeriodicPull() *CloudServicesProvidersManagerMock_StopPeriodicPull_Call {
return &CloudServicesProvidersManagerMock_StopPeriodicPull_Call{Call: _e.mock.On("StopPeriodicPull")}
}
func (_c *CloudServicesProvidersManagerMock_StopPeriodicPull_Call) Run(run func()) *CloudServicesProvidersManagerMock_StopPeriodicPull_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *CloudServicesProvidersManagerMock_StopPeriodicPull_Call) Return() *CloudServicesProvidersManagerMock_StopPeriodicPull_Call {
_c.Call.Return()
return _c
}
func (_c *CloudServicesProvidersManagerMock_StopPeriodicPull_Call) RunAndReturn(run func()) *CloudServicesProvidersManagerMock_StopPeriodicPull_Call {
_c.Run(run)
return _c
}
// NewCloudServicesProvidersManagerMock creates a new instance of CloudServicesProvidersManagerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewCloudServicesProvidersManagerMock(t interface {
mock.TestingT
Cleanup(func())
}) *CloudServicesProvidersManagerMock {
mock := &CloudServicesProvidersManagerMock{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}