github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/provisioner/automock/client.go (about) 1 // Code generated by mockery v2.14.0. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 gqlschema "github.com/kyma-project/control-plane/components/provisioner/pkg/gqlschema" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // Client is an autogenerated mock type for the Client type 11 type Client struct { 12 mock.Mock 13 } 14 15 // DeprovisionRuntime provides a mock function with given fields: accountID, runtimeID 16 func (_m *Client) DeprovisionRuntime(accountID string, runtimeID string) (string, error) { 17 ret := _m.Called(accountID, runtimeID) 18 19 var r0 string 20 if rf, ok := ret.Get(0).(func(string, string) string); ok { 21 r0 = rf(accountID, runtimeID) 22 } else { 23 r0 = ret.Get(0).(string) 24 } 25 26 var r1 error 27 if rf, ok := ret.Get(1).(func(string, string) error); ok { 28 r1 = rf(accountID, runtimeID) 29 } else { 30 r1 = ret.Error(1) 31 } 32 33 return r0, r1 34 } 35 36 // ProvisionRuntime provides a mock function with given fields: accountID, subAccountID, config 37 func (_m *Client) ProvisionRuntime(accountID string, subAccountID string, config gqlschema.ProvisionRuntimeInput) (gqlschema.OperationStatus, error) { 38 ret := _m.Called(accountID, subAccountID, config) 39 40 var r0 gqlschema.OperationStatus 41 if rf, ok := ret.Get(0).(func(string, string, gqlschema.ProvisionRuntimeInput) gqlschema.OperationStatus); ok { 42 r0 = rf(accountID, subAccountID, config) 43 } else { 44 r0 = ret.Get(0).(gqlschema.OperationStatus) 45 } 46 47 var r1 error 48 if rf, ok := ret.Get(1).(func(string, string, gqlschema.ProvisionRuntimeInput) error); ok { 49 r1 = rf(accountID, subAccountID, config) 50 } else { 51 r1 = ret.Error(1) 52 } 53 54 return r0, r1 55 } 56 57 // ReconnectRuntimeAgent provides a mock function with given fields: accountID, runtimeID 58 func (_m *Client) ReconnectRuntimeAgent(accountID string, runtimeID string) (string, error) { 59 ret := _m.Called(accountID, runtimeID) 60 61 var r0 string 62 if rf, ok := ret.Get(0).(func(string, string) string); ok { 63 r0 = rf(accountID, runtimeID) 64 } else { 65 r0 = ret.Get(0).(string) 66 } 67 68 var r1 error 69 if rf, ok := ret.Get(1).(func(string, string) error); ok { 70 r1 = rf(accountID, runtimeID) 71 } else { 72 r1 = ret.Error(1) 73 } 74 75 return r0, r1 76 } 77 78 // RuntimeOperationStatus provides a mock function with given fields: accountID, operationID 79 func (_m *Client) RuntimeOperationStatus(accountID string, operationID string) (gqlschema.OperationStatus, error) { 80 ret := _m.Called(accountID, operationID) 81 82 var r0 gqlschema.OperationStatus 83 if rf, ok := ret.Get(0).(func(string, string) gqlschema.OperationStatus); ok { 84 r0 = rf(accountID, operationID) 85 } else { 86 r0 = ret.Get(0).(gqlschema.OperationStatus) 87 } 88 89 var r1 error 90 if rf, ok := ret.Get(1).(func(string, string) error); ok { 91 r1 = rf(accountID, operationID) 92 } else { 93 r1 = ret.Error(1) 94 } 95 96 return r0, r1 97 } 98 99 // RuntimeStatus provides a mock function with given fields: accountID, runtimeID 100 func (_m *Client) RuntimeStatus(accountID string, runtimeID string) (gqlschema.RuntimeStatus, error) { 101 ret := _m.Called(accountID, runtimeID) 102 103 var r0 gqlschema.RuntimeStatus 104 if rf, ok := ret.Get(0).(func(string, string) gqlschema.RuntimeStatus); ok { 105 r0 = rf(accountID, runtimeID) 106 } else { 107 r0 = ret.Get(0).(gqlschema.RuntimeStatus) 108 } 109 110 var r1 error 111 if rf, ok := ret.Get(1).(func(string, string) error); ok { 112 r1 = rf(accountID, runtimeID) 113 } else { 114 r1 = ret.Error(1) 115 } 116 117 return r0, r1 118 } 119 120 // UpgradeRuntime provides a mock function with given fields: accountID, runtimeID, config 121 func (_m *Client) UpgradeRuntime(accountID string, runtimeID string, config gqlschema.UpgradeRuntimeInput) (gqlschema.OperationStatus, error) { 122 ret := _m.Called(accountID, runtimeID, config) 123 124 var r0 gqlschema.OperationStatus 125 if rf, ok := ret.Get(0).(func(string, string, gqlschema.UpgradeRuntimeInput) gqlschema.OperationStatus); ok { 126 r0 = rf(accountID, runtimeID, config) 127 } else { 128 r0 = ret.Get(0).(gqlschema.OperationStatus) 129 } 130 131 var r1 error 132 if rf, ok := ret.Get(1).(func(string, string, gqlschema.UpgradeRuntimeInput) error); ok { 133 r1 = rf(accountID, runtimeID, config) 134 } else { 135 r1 = ret.Error(1) 136 } 137 138 return r0, r1 139 } 140 141 // UpgradeShoot provides a mock function with given fields: accountID, runtimeID, config 142 func (_m *Client) UpgradeShoot(accountID string, runtimeID string, config gqlschema.UpgradeShootInput) (gqlschema.OperationStatus, error) { 143 ret := _m.Called(accountID, runtimeID, config) 144 145 var r0 gqlschema.OperationStatus 146 if rf, ok := ret.Get(0).(func(string, string, gqlschema.UpgradeShootInput) gqlschema.OperationStatus); ok { 147 r0 = rf(accountID, runtimeID, config) 148 } else { 149 r0 = ret.Get(0).(gqlschema.OperationStatus) 150 } 151 152 var r1 error 153 if rf, ok := ret.Get(1).(func(string, string, gqlschema.UpgradeShootInput) error); ok { 154 r1 = rf(accountID, runtimeID, config) 155 } else { 156 r1 = ret.Error(1) 157 } 158 159 return r0, r1 160 } 161 162 type mockConstructorTestingTNewClient interface { 163 mock.TestingT 164 Cleanup(func()) 165 } 166 167 // NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 168 func NewClient(t mockConstructorTestingTNewClient) *Client { 169 mock := &Client{} 170 mock.Mock.Test(t) 171 172 t.Cleanup(func() { mock.AssertExpectations(t) }) 173 174 return mock 175 }