
* basic list, create, and invoke working * all commands working * added support for create script body from file and invoke params from file * linter cleanup * update defaults to existing parameters if not provided * updated generated mock files, added mock files for scripts, added basic script create test * added mock script list * cleanup pass, fixed not using params in list call * added update mock test * fixed mock tests requiring go 1.18 * updated openapi, integrated overrides upstream, added new override to fix codegen bug * added nil check * fixed routes
128 lines
4.7 KiB
Go
128 lines
4.7 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/influxdata/influx-cli/v2/api (interfaces: SetupApi)
|
|
|
|
// Package mock is a generated GoMock package.
|
|
package mock
|
|
|
|
import (
|
|
context "context"
|
|
http "net/http"
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
api "github.com/influxdata/influx-cli/v2/api"
|
|
)
|
|
|
|
// MockSetupApi is a mock of SetupApi interface.
|
|
type MockSetupApi struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockSetupApiMockRecorder
|
|
}
|
|
|
|
// MockSetupApiMockRecorder is the mock recorder for MockSetupApi.
|
|
type MockSetupApiMockRecorder struct {
|
|
mock *MockSetupApi
|
|
}
|
|
|
|
// NewMockSetupApi creates a new mock instance.
|
|
func NewMockSetupApi(ctrl *gomock.Controller) *MockSetupApi {
|
|
mock := &MockSetupApi{ctrl: ctrl}
|
|
mock.recorder = &MockSetupApiMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockSetupApi) EXPECT() *MockSetupApiMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// GetSetup mocks base method.
|
|
func (m *MockSetupApi) GetSetup(arg0 context.Context) api.ApiGetSetupRequest {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetSetup", arg0)
|
|
ret0, _ := ret[0].(api.ApiGetSetupRequest)
|
|
return ret0
|
|
}
|
|
|
|
// GetSetup indicates an expected call of GetSetup.
|
|
func (mr *MockSetupApiMockRecorder) GetSetup(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSetup", reflect.TypeOf((*MockSetupApi)(nil).GetSetup), arg0)
|
|
}
|
|
|
|
// GetSetupExecute mocks base method.
|
|
func (m *MockSetupApi) GetSetupExecute(arg0 api.ApiGetSetupRequest) (api.InlineResponse200, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetSetupExecute", arg0)
|
|
ret0, _ := ret[0].(api.InlineResponse200)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetSetupExecute indicates an expected call of GetSetupExecute.
|
|
func (mr *MockSetupApiMockRecorder) GetSetupExecute(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSetupExecute", reflect.TypeOf((*MockSetupApi)(nil).GetSetupExecute), arg0)
|
|
}
|
|
|
|
// GetSetupExecuteWithHttpInfo mocks base method.
|
|
func (m *MockSetupApi) GetSetupExecuteWithHttpInfo(arg0 api.ApiGetSetupRequest) (api.InlineResponse200, *http.Response, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetSetupExecuteWithHttpInfo", arg0)
|
|
ret0, _ := ret[0].(api.InlineResponse200)
|
|
ret1, _ := ret[1].(*http.Response)
|
|
ret2, _ := ret[2].(error)
|
|
return ret0, ret1, ret2
|
|
}
|
|
|
|
// GetSetupExecuteWithHttpInfo indicates an expected call of GetSetupExecuteWithHttpInfo.
|
|
func (mr *MockSetupApiMockRecorder) GetSetupExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSetupExecuteWithHttpInfo", reflect.TypeOf((*MockSetupApi)(nil).GetSetupExecuteWithHttpInfo), arg0)
|
|
}
|
|
|
|
// PostSetup mocks base method.
|
|
func (m *MockSetupApi) PostSetup(arg0 context.Context) api.ApiPostSetupRequest {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PostSetup", arg0)
|
|
ret0, _ := ret[0].(api.ApiPostSetupRequest)
|
|
return ret0
|
|
}
|
|
|
|
// PostSetup indicates an expected call of PostSetup.
|
|
func (mr *MockSetupApiMockRecorder) PostSetup(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostSetup", reflect.TypeOf((*MockSetupApi)(nil).PostSetup), arg0)
|
|
}
|
|
|
|
// PostSetupExecute mocks base method.
|
|
func (m *MockSetupApi) PostSetupExecute(arg0 api.ApiPostSetupRequest) (api.OnboardingResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PostSetupExecute", arg0)
|
|
ret0, _ := ret[0].(api.OnboardingResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// PostSetupExecute indicates an expected call of PostSetupExecute.
|
|
func (mr *MockSetupApiMockRecorder) PostSetupExecute(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostSetupExecute", reflect.TypeOf((*MockSetupApi)(nil).PostSetupExecute), arg0)
|
|
}
|
|
|
|
// PostSetupExecuteWithHttpInfo mocks base method.
|
|
func (m *MockSetupApi) PostSetupExecuteWithHttpInfo(arg0 api.ApiPostSetupRequest) (api.OnboardingResponse, *http.Response, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PostSetupExecuteWithHttpInfo", arg0)
|
|
ret0, _ := ret[0].(api.OnboardingResponse)
|
|
ret1, _ := ret[1].(*http.Response)
|
|
ret2, _ := ret[2].(error)
|
|
return ret0, ret1, ret2
|
|
}
|
|
|
|
// PostSetupExecuteWithHttpInfo indicates an expected call of PostSetupExecuteWithHttpInfo.
|
|
func (mr *MockSetupApiMockRecorder) PostSetupExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostSetupExecuteWithHttpInfo", reflect.TypeOf((*MockSetupApi)(nil).PostSetupExecuteWithHttpInfo), arg0)
|
|
}
|