github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/cmd/modelcmd/cloudprovider_mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/cmd/modelcmd (interfaces: TestCloudProvider) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package modelcmd -destination cloudprovider_mock_test.go github.com/juju/juju/cmd/modelcmd TestCloudProvider 7 // 8 9 // Package modelcmd is a generated GoMock package. 10 package modelcmd 11 12 import ( 13 reflect "reflect" 14 15 jsonschema "github.com/juju/jsonschema" 16 cloud "github.com/juju/juju/cloud" 17 environs "github.com/juju/juju/environs" 18 config "github.com/juju/juju/environs/config" 19 context "github.com/juju/juju/environs/context" 20 gomock "go.uber.org/mock/gomock" 21 ) 22 23 // MockTestCloudProvider is a mock of TestCloudProvider interface. 24 type MockTestCloudProvider struct { 25 ctrl *gomock.Controller 26 recorder *MockTestCloudProviderMockRecorder 27 } 28 29 // MockTestCloudProviderMockRecorder is the mock recorder for MockTestCloudProvider. 30 type MockTestCloudProviderMockRecorder struct { 31 mock *MockTestCloudProvider 32 } 33 34 // NewMockTestCloudProvider creates a new mock instance. 35 func NewMockTestCloudProvider(ctrl *gomock.Controller) *MockTestCloudProvider { 36 mock := &MockTestCloudProvider{ctrl: ctrl} 37 mock.recorder = &MockTestCloudProviderMockRecorder{mock} 38 return mock 39 } 40 41 // EXPECT returns an object that allows the caller to indicate expected use. 42 func (m *MockTestCloudProvider) EXPECT() *MockTestCloudProviderMockRecorder { 43 return m.recorder 44 } 45 46 // CloudSchema mocks base method. 47 func (m *MockTestCloudProvider) CloudSchema() *jsonschema.Schema { 48 m.ctrl.T.Helper() 49 ret := m.ctrl.Call(m, "CloudSchema") 50 ret0, _ := ret[0].(*jsonschema.Schema) 51 return ret0 52 } 53 54 // CloudSchema indicates an expected call of CloudSchema. 55 func (mr *MockTestCloudProviderMockRecorder) CloudSchema() *gomock.Call { 56 mr.mock.ctrl.T.Helper() 57 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloudSchema", reflect.TypeOf((*MockTestCloudProvider)(nil).CloudSchema)) 58 } 59 60 // CredentialSchemas mocks base method. 61 func (m *MockTestCloudProvider) CredentialSchemas() map[cloud.AuthType]cloud.CredentialSchema { 62 m.ctrl.T.Helper() 63 ret := m.ctrl.Call(m, "CredentialSchemas") 64 ret0, _ := ret[0].(map[cloud.AuthType]cloud.CredentialSchema) 65 return ret0 66 } 67 68 // CredentialSchemas indicates an expected call of CredentialSchemas. 69 func (mr *MockTestCloudProviderMockRecorder) CredentialSchemas() *gomock.Call { 70 mr.mock.ctrl.T.Helper() 71 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CredentialSchemas", reflect.TypeOf((*MockTestCloudProvider)(nil).CredentialSchemas)) 72 } 73 74 // DetectCredentials mocks base method. 75 func (m *MockTestCloudProvider) DetectCredentials(arg0 string) (*cloud.CloudCredential, error) { 76 m.ctrl.T.Helper() 77 ret := m.ctrl.Call(m, "DetectCredentials", arg0) 78 ret0, _ := ret[0].(*cloud.CloudCredential) 79 ret1, _ := ret[1].(error) 80 return ret0, ret1 81 } 82 83 // DetectCredentials indicates an expected call of DetectCredentials. 84 func (mr *MockTestCloudProviderMockRecorder) DetectCredentials(arg0 any) *gomock.Call { 85 mr.mock.ctrl.T.Helper() 86 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetectCredentials", reflect.TypeOf((*MockTestCloudProvider)(nil).DetectCredentials), arg0) 87 } 88 89 // FinalizeCredential mocks base method. 90 func (m *MockTestCloudProvider) FinalizeCredential(arg0 environs.FinalizeCredentialContext, arg1 environs.FinalizeCredentialParams) (*cloud.Credential, error) { 91 m.ctrl.T.Helper() 92 ret := m.ctrl.Call(m, "FinalizeCredential", arg0, arg1) 93 ret0, _ := ret[0].(*cloud.Credential) 94 ret1, _ := ret[1].(error) 95 return ret0, ret1 96 } 97 98 // FinalizeCredential indicates an expected call of FinalizeCredential. 99 func (mr *MockTestCloudProviderMockRecorder) FinalizeCredential(arg0, arg1 any) *gomock.Call { 100 mr.mock.ctrl.T.Helper() 101 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FinalizeCredential", reflect.TypeOf((*MockTestCloudProvider)(nil).FinalizeCredential), arg0, arg1) 102 } 103 104 // Ping mocks base method. 105 func (m *MockTestCloudProvider) Ping(arg0 context.ProviderCallContext, arg1 string) error { 106 m.ctrl.T.Helper() 107 ret := m.ctrl.Call(m, "Ping", arg0, arg1) 108 ret0, _ := ret[0].(error) 109 return ret0 110 } 111 112 // Ping indicates an expected call of Ping. 113 func (mr *MockTestCloudProviderMockRecorder) Ping(arg0, arg1 any) *gomock.Call { 114 mr.mock.ctrl.T.Helper() 115 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ping", reflect.TypeOf((*MockTestCloudProvider)(nil).Ping), arg0, arg1) 116 } 117 118 // PrepareConfig mocks base method. 119 func (m *MockTestCloudProvider) PrepareConfig(arg0 environs.PrepareConfigParams) (*config.Config, error) { 120 m.ctrl.T.Helper() 121 ret := m.ctrl.Call(m, "PrepareConfig", arg0) 122 ret0, _ := ret[0].(*config.Config) 123 ret1, _ := ret[1].(error) 124 return ret0, ret1 125 } 126 127 // PrepareConfig indicates an expected call of PrepareConfig. 128 func (mr *MockTestCloudProviderMockRecorder) PrepareConfig(arg0 any) *gomock.Call { 129 mr.mock.ctrl.T.Helper() 130 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareConfig", reflect.TypeOf((*MockTestCloudProvider)(nil).PrepareConfig), arg0) 131 } 132 133 // RegisterCredentials mocks base method. 134 func (m *MockTestCloudProvider) RegisterCredentials(arg0 cloud.Cloud) (map[string]*cloud.CloudCredential, error) { 135 m.ctrl.T.Helper() 136 ret := m.ctrl.Call(m, "RegisterCredentials", arg0) 137 ret0, _ := ret[0].(map[string]*cloud.CloudCredential) 138 ret1, _ := ret[1].(error) 139 return ret0, ret1 140 } 141 142 // RegisterCredentials indicates an expected call of RegisterCredentials. 143 func (mr *MockTestCloudProviderMockRecorder) RegisterCredentials(arg0 any) *gomock.Call { 144 mr.mock.ctrl.T.Helper() 145 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterCredentials", reflect.TypeOf((*MockTestCloudProvider)(nil).RegisterCredentials), arg0) 146 } 147 148 // Validate mocks base method. 149 func (m *MockTestCloudProvider) Validate(arg0, arg1 *config.Config) (*config.Config, error) { 150 m.ctrl.T.Helper() 151 ret := m.ctrl.Call(m, "Validate", arg0, arg1) 152 ret0, _ := ret[0].(*config.Config) 153 ret1, _ := ret[1].(error) 154 return ret0, ret1 155 } 156 157 // Validate indicates an expected call of Validate. 158 func (mr *MockTestCloudProviderMockRecorder) Validate(arg0, arg1 any) *gomock.Call { 159 mr.mock.ctrl.T.Helper() 160 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockTestCloudProvider)(nil).Validate), arg0, arg1) 161 } 162 163 // Version mocks base method. 164 func (m *MockTestCloudProvider) Version() int { 165 m.ctrl.T.Helper() 166 ret := m.ctrl.Call(m, "Version") 167 ret0, _ := ret[0].(int) 168 return ret0 169 } 170 171 // Version indicates an expected call of Version. 172 func (mr *MockTestCloudProviderMockRecorder) Version() *gomock.Call { 173 mr.mock.ctrl.T.Helper() 174 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockTestCloudProvider)(nil).Version)) 175 }