github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/process/provisioning/automock/provisioner_input_creator.go (about)

     1  // Code generated by mockery v2.10.0. DO NOT EDIT.
     2  
     3  package automock
     4  
     5  import (
     6  	gardener "github.com/kyma-project/kyma-environment-broker/common/gardener"
     7  	gqlschema "github.com/kyma-project/control-plane/components/provisioner/pkg/gqlschema"
     8  
     9  	internal "github.com/kyma-project/kyma-environment-broker/internal"
    10  
    11  	keb "github.com/kyma-incubator/reconciler/pkg/keb"
    12  
    13  	mock "github.com/stretchr/testify/mock"
    14  )
    15  
    16  // ProvisionerInputCreator is an autogenerated mock type for the ProvisionerInputCreator type
    17  type ProvisionerInputCreator struct {
    18  	mock.Mock
    19  }
    20  
    21  // AppendGlobalOverrides provides a mock function with given fields: overrides
    22  func (_m *ProvisionerInputCreator) AppendGlobalOverrides(overrides []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator {
    23  	ret := _m.Called(overrides)
    24  
    25  	var r0 internal.ProvisionerInputCreator
    26  	if rf, ok := ret.Get(0).(func([]*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator); ok {
    27  		r0 = rf(overrides)
    28  	} else {
    29  		if ret.Get(0) != nil {
    30  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
    31  		}
    32  	}
    33  
    34  	return r0
    35  }
    36  
    37  // AppendOverrides provides a mock function with given fields: component, overrides
    38  func (_m *ProvisionerInputCreator) AppendOverrides(component string, overrides []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator {
    39  	ret := _m.Called(component, overrides)
    40  
    41  	var r0 internal.ProvisionerInputCreator
    42  	if rf, ok := ret.Get(0).(func(string, []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator); ok {
    43  		r0 = rf(component, overrides)
    44  	} else {
    45  		if ret.Get(0) != nil {
    46  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
    47  		}
    48  	}
    49  
    50  	return r0
    51  }
    52  
    53  // CreateClusterConfiguration provides a mock function with given fields:
    54  func (_m *ProvisionerInputCreator) CreateClusterConfiguration() (keb.Cluster, error) {
    55  	ret := _m.Called()
    56  
    57  	var r0 keb.Cluster
    58  	if rf, ok := ret.Get(0).(func() keb.Cluster); ok {
    59  		r0 = rf()
    60  	} else {
    61  		r0 = ret.Get(0).(keb.Cluster)
    62  	}
    63  
    64  	var r1 error
    65  	if rf, ok := ret.Get(1).(func() error); ok {
    66  		r1 = rf()
    67  	} else {
    68  		r1 = ret.Error(1)
    69  	}
    70  
    71  	return r0, r1
    72  }
    73  
    74  // CreateProvisionClusterInput provides a mock function with given fields:
    75  func (_m *ProvisionerInputCreator) CreateProvisionClusterInput() (gqlschema.ProvisionRuntimeInput, error) {
    76  	ret := _m.Called()
    77  
    78  	var r0 gqlschema.ProvisionRuntimeInput
    79  	if rf, ok := ret.Get(0).(func() gqlschema.ProvisionRuntimeInput); ok {
    80  		r0 = rf()
    81  	} else {
    82  		r0 = ret.Get(0).(gqlschema.ProvisionRuntimeInput)
    83  	}
    84  
    85  	var r1 error
    86  	if rf, ok := ret.Get(1).(func() error); ok {
    87  		r1 = rf()
    88  	} else {
    89  		r1 = ret.Error(1)
    90  	}
    91  
    92  	return r0, r1
    93  }
    94  
    95  // CreateProvisionRuntimeInput provides a mock function with given fields:
    96  func (_m *ProvisionerInputCreator) CreateProvisionRuntimeInput() (gqlschema.ProvisionRuntimeInput, error) {
    97  	ret := _m.Called()
    98  
    99  	var r0 gqlschema.ProvisionRuntimeInput
   100  	if rf, ok := ret.Get(0).(func() gqlschema.ProvisionRuntimeInput); ok {
   101  		r0 = rf()
   102  	} else {
   103  		r0 = ret.Get(0).(gqlschema.ProvisionRuntimeInput)
   104  	}
   105  
   106  	var r1 error
   107  	if rf, ok := ret.Get(1).(func() error); ok {
   108  		r1 = rf()
   109  	} else {
   110  		r1 = ret.Error(1)
   111  	}
   112  
   113  	return r0, r1
   114  }
   115  
   116  // CreateUpgradeRuntimeInput provides a mock function with given fields:
   117  func (_m *ProvisionerInputCreator) CreateUpgradeRuntimeInput() (gqlschema.UpgradeRuntimeInput, error) {
   118  	ret := _m.Called()
   119  
   120  	var r0 gqlschema.UpgradeRuntimeInput
   121  	if rf, ok := ret.Get(0).(func() gqlschema.UpgradeRuntimeInput); ok {
   122  		r0 = rf()
   123  	} else {
   124  		r0 = ret.Get(0).(gqlschema.UpgradeRuntimeInput)
   125  	}
   126  
   127  	var r1 error
   128  	if rf, ok := ret.Get(1).(func() error); ok {
   129  		r1 = rf()
   130  	} else {
   131  		r1 = ret.Error(1)
   132  	}
   133  
   134  	return r0, r1
   135  }
   136  
   137  // CreateUpgradeShootInput provides a mock function with given fields:
   138  func (_m *ProvisionerInputCreator) CreateUpgradeShootInput() (gqlschema.UpgradeShootInput, error) {
   139  	ret := _m.Called()
   140  
   141  	var r0 gqlschema.UpgradeShootInput
   142  	if rf, ok := ret.Get(0).(func() gqlschema.UpgradeShootInput); ok {
   143  		r0 = rf()
   144  	} else {
   145  		r0 = ret.Get(0).(gqlschema.UpgradeShootInput)
   146  	}
   147  
   148  	var r1 error
   149  	if rf, ok := ret.Get(1).(func() error); ok {
   150  		r1 = rf()
   151  	} else {
   152  		r1 = ret.Error(1)
   153  	}
   154  
   155  	return r0, r1
   156  }
   157  
   158  // DisableOptionalComponent provides a mock function with given fields: componentName
   159  func (_m *ProvisionerInputCreator) DisableOptionalComponent(componentName string) internal.ProvisionerInputCreator {
   160  	ret := _m.Called(componentName)
   161  
   162  	var r0 internal.ProvisionerInputCreator
   163  	if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok {
   164  		r0 = rf(componentName)
   165  	} else {
   166  		if ret.Get(0) != nil {
   167  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
   168  		}
   169  	}
   170  
   171  	return r0
   172  }
   173  
   174  // EnableOptionalComponent provides a mock function with given fields: componentName
   175  func (_m *ProvisionerInputCreator) EnableOptionalComponent(componentName string) internal.ProvisionerInputCreator {
   176  	ret := _m.Called(componentName)
   177  
   178  	var r0 internal.ProvisionerInputCreator
   179  	if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok {
   180  		r0 = rf(componentName)
   181  	} else {
   182  		if ret.Get(0) != nil {
   183  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
   184  		}
   185  	}
   186  
   187  	return r0
   188  }
   189  
   190  // Configuration provides a mock function with given fields:
   191  func (_m *ProvisionerInputCreator) Configuration() *internal.ConfigForPlan {
   192  	ret := _m.Called()
   193  
   194  	var r0 *internal.ConfigForPlan
   195  	if rf, ok := ret.Get(0).(func() *internal.ConfigForPlan); ok {
   196  		r0 = rf()
   197  	} else {
   198  		r0 = ret.Get(0).(*internal.ConfigForPlan)
   199  	}
   200  
   201  	return r0
   202  }
   203  
   204  // Provider provides a mock function with given fields:
   205  func (_m *ProvisionerInputCreator) Provider() internal.CloudProvider {
   206  	ret := _m.Called()
   207  
   208  	var r0 internal.CloudProvider
   209  	if rf, ok := ret.Get(0).(func() internal.CloudProvider); ok {
   210  		r0 = rf()
   211  	} else {
   212  		r0 = ret.Get(0).(internal.CloudProvider)
   213  	}
   214  
   215  	return r0
   216  }
   217  
   218  // SetClusterName provides a mock function with given fields: name
   219  func (_m *ProvisionerInputCreator) SetClusterName(name string) internal.ProvisionerInputCreator {
   220  	ret := _m.Called(name)
   221  
   222  	var r0 internal.ProvisionerInputCreator
   223  	if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok {
   224  		r0 = rf(name)
   225  	} else {
   226  		if ret.Get(0) != nil {
   227  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
   228  		}
   229  	}
   230  
   231  	return r0
   232  }
   233  
   234  // SetInstanceID provides a mock function with given fields: instanceID
   235  func (_m *ProvisionerInputCreator) SetInstanceID(instanceID string) internal.ProvisionerInputCreator {
   236  	ret := _m.Called(instanceID)
   237  
   238  	var r0 internal.ProvisionerInputCreator
   239  	if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok {
   240  		r0 = rf(instanceID)
   241  	} else {
   242  		if ret.Get(0) != nil {
   243  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
   244  		}
   245  	}
   246  
   247  	return r0
   248  }
   249  
   250  // SetKubeconfig provides a mock function with given fields: kcfg
   251  func (_m *ProvisionerInputCreator) SetKubeconfig(kcfg string) internal.ProvisionerInputCreator {
   252  	ret := _m.Called(kcfg)
   253  
   254  	var r0 internal.ProvisionerInputCreator
   255  	if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok {
   256  		r0 = rf(kcfg)
   257  	} else {
   258  		if ret.Get(0) != nil {
   259  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
   260  		}
   261  	}
   262  
   263  	return r0
   264  }
   265  
   266  // SetLabel provides a mock function with given fields: key, value
   267  func (_m *ProvisionerInputCreator) SetLabel(key string, value string) internal.ProvisionerInputCreator {
   268  	ret := _m.Called(key, value)
   269  
   270  	var r0 internal.ProvisionerInputCreator
   271  	if rf, ok := ret.Get(0).(func(string, string) internal.ProvisionerInputCreator); ok {
   272  		r0 = rf(key, value)
   273  	} else {
   274  		if ret.Get(0) != nil {
   275  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
   276  		}
   277  	}
   278  
   279  	return r0
   280  }
   281  
   282  // SetOIDCLastValues provides a mock function with given fields: oidcConfig
   283  func (_m *ProvisionerInputCreator) SetOIDCLastValues(oidcConfig gqlschema.OIDCConfigInput) internal.ProvisionerInputCreator {
   284  	ret := _m.Called(oidcConfig)
   285  
   286  	var r0 internal.ProvisionerInputCreator
   287  	if rf, ok := ret.Get(0).(func(gqlschema.OIDCConfigInput) internal.ProvisionerInputCreator); ok {
   288  		r0 = rf(oidcConfig)
   289  	} else {
   290  		if ret.Get(0) != nil {
   291  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
   292  		}
   293  	}
   294  
   295  	return r0
   296  }
   297  
   298  // SetOverrides provides a mock function with given fields: component, overrides
   299  func (_m *ProvisionerInputCreator) SetOverrides(component string, overrides []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator {
   300  	ret := _m.Called(component, overrides)
   301  
   302  	var r0 internal.ProvisionerInputCreator
   303  	if rf, ok := ret.Get(0).(func(string, []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator); ok {
   304  		r0 = rf(component, overrides)
   305  	} else {
   306  		if ret.Get(0) != nil {
   307  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
   308  		}
   309  	}
   310  
   311  	return r0
   312  }
   313  
   314  // SetProvisioningParameters provides a mock function with given fields: params
   315  func (_m *ProvisionerInputCreator) SetProvisioningParameters(params internal.ProvisioningParameters) internal.ProvisionerInputCreator {
   316  	ret := _m.Called(params)
   317  
   318  	var r0 internal.ProvisionerInputCreator
   319  	if rf, ok := ret.Get(0).(func(internal.ProvisioningParameters) internal.ProvisionerInputCreator); ok {
   320  		r0 = rf(params)
   321  	} else {
   322  		if ret.Get(0) != nil {
   323  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
   324  		}
   325  	}
   326  
   327  	return r0
   328  }
   329  
   330  // SetRuntimeID provides a mock function with given fields: runtimeID
   331  func (_m *ProvisionerInputCreator) SetRuntimeID(runtimeID string) internal.ProvisionerInputCreator {
   332  	ret := _m.Called(runtimeID)
   333  
   334  	var r0 internal.ProvisionerInputCreator
   335  	if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok {
   336  		r0 = rf(runtimeID)
   337  	} else {
   338  		if ret.Get(0) != nil {
   339  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
   340  		}
   341  	}
   342  
   343  	return r0
   344  }
   345  
   346  // SetShootDNSProviders provides a mock function with given fields: dnsProviders
   347  func (_m *ProvisionerInputCreator) SetShootDNSProviders(dnsProviders gardener.DNSProvidersData) internal.ProvisionerInputCreator {
   348  	ret := _m.Called(dnsProviders)
   349  
   350  	var r0 internal.ProvisionerInputCreator
   351  	if rf, ok := ret.Get(0).(func(gardener.DNSProvidersData) internal.ProvisionerInputCreator); ok {
   352  		r0 = rf(dnsProviders)
   353  	} else {
   354  		if ret.Get(0) != nil {
   355  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
   356  		}
   357  	}
   358  
   359  	return r0
   360  }
   361  
   362  // SetShootDomain provides a mock function with given fields: shootDomain
   363  func (_m *ProvisionerInputCreator) SetShootDomain(shootDomain string) internal.ProvisionerInputCreator {
   364  	ret := _m.Called(shootDomain)
   365  
   366  	var r0 internal.ProvisionerInputCreator
   367  	if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok {
   368  		r0 = rf(shootDomain)
   369  	} else {
   370  		if ret.Get(0) != nil {
   371  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
   372  		}
   373  	}
   374  
   375  	return r0
   376  }
   377  
   378  // SetShootName provides a mock function with given fields: _a0
   379  func (_m *ProvisionerInputCreator) SetShootName(_a0 string) internal.ProvisionerInputCreator {
   380  	ret := _m.Called(_a0)
   381  
   382  	var r0 internal.ProvisionerInputCreator
   383  	if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok {
   384  		r0 = rf(_a0)
   385  	} else {
   386  		if ret.Get(0) != nil {
   387  			r0 = ret.Get(0).(internal.ProvisionerInputCreator)
   388  		}
   389  	}
   390  
   391  	return r0
   392  }