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

     1  // Code generated by mockery v2.14.0. DO NOT EDIT.
     2  
     3  package automock
     4  
     5  import (
     6  	edp "github.com/kyma-project/kyma-environment-broker/internal/edp"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // EDPClient is an autogenerated mock type for the EDPClient type
    11  type EDPClient struct {
    12  	mock.Mock
    13  }
    14  
    15  // CreateDataTenant provides a mock function with given fields: data
    16  func (_m *EDPClient) CreateDataTenant(data edp.DataTenantPayload) error {
    17  	ret := _m.Called(data)
    18  
    19  	var r0 error
    20  	if rf, ok := ret.Get(0).(func(edp.DataTenantPayload) error); ok {
    21  		r0 = rf(data)
    22  	} else {
    23  		r0 = ret.Error(0)
    24  	}
    25  
    26  	return r0
    27  }
    28  
    29  // CreateMetadataTenant provides a mock function with given fields: name, env, data
    30  func (_m *EDPClient) CreateMetadataTenant(name string, env string, data edp.MetadataTenantPayload) error {
    31  	ret := _m.Called(name, env, data)
    32  
    33  	var r0 error
    34  	if rf, ok := ret.Get(0).(func(string, string, edp.MetadataTenantPayload) error); ok {
    35  		r0 = rf(name, env, data)
    36  	} else {
    37  		r0 = ret.Error(0)
    38  	}
    39  
    40  	return r0
    41  }
    42  
    43  // DeleteDataTenant provides a mock function with given fields: name, env
    44  func (_m *EDPClient) DeleteDataTenant(name string, env string) error {
    45  	ret := _m.Called(name, env)
    46  
    47  	var r0 error
    48  	if rf, ok := ret.Get(0).(func(string, string) error); ok {
    49  		r0 = rf(name, env)
    50  	} else {
    51  		r0 = ret.Error(0)
    52  	}
    53  
    54  	return r0
    55  }
    56  
    57  // DeleteMetadataTenant provides a mock function with given fields: name, env, key
    58  func (_m *EDPClient) DeleteMetadataTenant(name string, env string, key string) error {
    59  	ret := _m.Called(name, env, key)
    60  
    61  	var r0 error
    62  	if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
    63  		r0 = rf(name, env, key)
    64  	} else {
    65  		r0 = ret.Error(0)
    66  	}
    67  
    68  	return r0
    69  }
    70  
    71  type mockConstructorTestingTNewEDPClient interface {
    72  	mock.TestingT
    73  	Cleanup(func())
    74  }
    75  
    76  // NewEDPClient creates a new instance of EDPClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    77  func NewEDPClient(t mockConstructorTestingTNewEDPClient) *EDPClient {
    78  	mock := &EDPClient{}
    79  	mock.Mock.Test(t)
    80  
    81  	t.Cleanup(func() { mock.AssertExpectations(t) })
    82  
    83  	return mock
    84  }