github.com/argoproj/argo-cd/v3@v3.2.1/controller/hydrator/mocks/Dependencies.go (about)

     1  // Code generated by mockery; DO NOT EDIT.
     2  // github.com/vektra/mockery
     3  // template: testify
     4  
     5  package mocks
     6  
     7  import (
     8  	"context"
     9  
    10  	"github.com/argoproj/argo-cd/v3/controller/hydrator/types"
    11  	"github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"
    12  	"github.com/argoproj/argo-cd/v3/reposerver/apiclient"
    13  	mock "github.com/stretchr/testify/mock"
    14  	"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
    15  )
    16  
    17  // NewDependencies creates a new instance of Dependencies. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    18  // The first argument is typically a *testing.T value.
    19  func NewDependencies(t interface {
    20  	mock.TestingT
    21  	Cleanup(func())
    22  }) *Dependencies {
    23  	mock := &Dependencies{}
    24  	mock.Mock.Test(t)
    25  
    26  	t.Cleanup(func() { mock.AssertExpectations(t) })
    27  
    28  	return mock
    29  }
    30  
    31  // Dependencies is an autogenerated mock type for the Dependencies type
    32  type Dependencies struct {
    33  	mock.Mock
    34  }
    35  
    36  type Dependencies_Expecter struct {
    37  	mock *mock.Mock
    38  }
    39  
    40  func (_m *Dependencies) EXPECT() *Dependencies_Expecter {
    41  	return &Dependencies_Expecter{mock: &_m.Mock}
    42  }
    43  
    44  // AddHydrationQueueItem provides a mock function for the type Dependencies
    45  func (_mock *Dependencies) AddHydrationQueueItem(key types.HydrationQueueKey) {
    46  	_mock.Called(key)
    47  	return
    48  }
    49  
    50  // Dependencies_AddHydrationQueueItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddHydrationQueueItem'
    51  type Dependencies_AddHydrationQueueItem_Call struct {
    52  	*mock.Call
    53  }
    54  
    55  // AddHydrationQueueItem is a helper method to define mock.On call
    56  //   - key types.HydrationQueueKey
    57  func (_e *Dependencies_Expecter) AddHydrationQueueItem(key interface{}) *Dependencies_AddHydrationQueueItem_Call {
    58  	return &Dependencies_AddHydrationQueueItem_Call{Call: _e.mock.On("AddHydrationQueueItem", key)}
    59  }
    60  
    61  func (_c *Dependencies_AddHydrationQueueItem_Call) Run(run func(key types.HydrationQueueKey)) *Dependencies_AddHydrationQueueItem_Call {
    62  	_c.Call.Run(func(args mock.Arguments) {
    63  		var arg0 types.HydrationQueueKey
    64  		if args[0] != nil {
    65  			arg0 = args[0].(types.HydrationQueueKey)
    66  		}
    67  		run(
    68  			arg0,
    69  		)
    70  	})
    71  	return _c
    72  }
    73  
    74  func (_c *Dependencies_AddHydrationQueueItem_Call) Return() *Dependencies_AddHydrationQueueItem_Call {
    75  	_c.Call.Return()
    76  	return _c
    77  }
    78  
    79  func (_c *Dependencies_AddHydrationQueueItem_Call) RunAndReturn(run func(key types.HydrationQueueKey)) *Dependencies_AddHydrationQueueItem_Call {
    80  	_c.Run(run)
    81  	return _c
    82  }
    83  
    84  // GetHydratorCommitMessageTemplate provides a mock function for the type Dependencies
    85  func (_mock *Dependencies) GetHydratorCommitMessageTemplate() (string, error) {
    86  	ret := _mock.Called()
    87  
    88  	if len(ret) == 0 {
    89  		panic("no return value specified for GetHydratorCommitMessageTemplate")
    90  	}
    91  
    92  	var r0 string
    93  	var r1 error
    94  	if returnFunc, ok := ret.Get(0).(func() (string, error)); ok {
    95  		return returnFunc()
    96  	}
    97  	if returnFunc, ok := ret.Get(0).(func() string); ok {
    98  		r0 = returnFunc()
    99  	} else {
   100  		r0 = ret.Get(0).(string)
   101  	}
   102  	if returnFunc, ok := ret.Get(1).(func() error); ok {
   103  		r1 = returnFunc()
   104  	} else {
   105  		r1 = ret.Error(1)
   106  	}
   107  	return r0, r1
   108  }
   109  
   110  // Dependencies_GetHydratorCommitMessageTemplate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHydratorCommitMessageTemplate'
   111  type Dependencies_GetHydratorCommitMessageTemplate_Call struct {
   112  	*mock.Call
   113  }
   114  
   115  // GetHydratorCommitMessageTemplate is a helper method to define mock.On call
   116  func (_e *Dependencies_Expecter) GetHydratorCommitMessageTemplate() *Dependencies_GetHydratorCommitMessageTemplate_Call {
   117  	return &Dependencies_GetHydratorCommitMessageTemplate_Call{Call: _e.mock.On("GetHydratorCommitMessageTemplate")}
   118  }
   119  
   120  func (_c *Dependencies_GetHydratorCommitMessageTemplate_Call) Run(run func()) *Dependencies_GetHydratorCommitMessageTemplate_Call {
   121  	_c.Call.Run(func(args mock.Arguments) {
   122  		run()
   123  	})
   124  	return _c
   125  }
   126  
   127  func (_c *Dependencies_GetHydratorCommitMessageTemplate_Call) Return(s string, err error) *Dependencies_GetHydratorCommitMessageTemplate_Call {
   128  	_c.Call.Return(s, err)
   129  	return _c
   130  }
   131  
   132  func (_c *Dependencies_GetHydratorCommitMessageTemplate_Call) RunAndReturn(run func() (string, error)) *Dependencies_GetHydratorCommitMessageTemplate_Call {
   133  	_c.Call.Return(run)
   134  	return _c
   135  }
   136  
   137  // GetProcessableAppProj provides a mock function for the type Dependencies
   138  func (_mock *Dependencies) GetProcessableAppProj(app *v1alpha1.Application) (*v1alpha1.AppProject, error) {
   139  	ret := _mock.Called(app)
   140  
   141  	if len(ret) == 0 {
   142  		panic("no return value specified for GetProcessableAppProj")
   143  	}
   144  
   145  	var r0 *v1alpha1.AppProject
   146  	var r1 error
   147  	if returnFunc, ok := ret.Get(0).(func(*v1alpha1.Application) (*v1alpha1.AppProject, error)); ok {
   148  		return returnFunc(app)
   149  	}
   150  	if returnFunc, ok := ret.Get(0).(func(*v1alpha1.Application) *v1alpha1.AppProject); ok {
   151  		r0 = returnFunc(app)
   152  	} else {
   153  		if ret.Get(0) != nil {
   154  			r0 = ret.Get(0).(*v1alpha1.AppProject)
   155  		}
   156  	}
   157  	if returnFunc, ok := ret.Get(1).(func(*v1alpha1.Application) error); ok {
   158  		r1 = returnFunc(app)
   159  	} else {
   160  		r1 = ret.Error(1)
   161  	}
   162  	return r0, r1
   163  }
   164  
   165  // Dependencies_GetProcessableAppProj_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProcessableAppProj'
   166  type Dependencies_GetProcessableAppProj_Call struct {
   167  	*mock.Call
   168  }
   169  
   170  // GetProcessableAppProj is a helper method to define mock.On call
   171  //   - app *v1alpha1.Application
   172  func (_e *Dependencies_Expecter) GetProcessableAppProj(app interface{}) *Dependencies_GetProcessableAppProj_Call {
   173  	return &Dependencies_GetProcessableAppProj_Call{Call: _e.mock.On("GetProcessableAppProj", app)}
   174  }
   175  
   176  func (_c *Dependencies_GetProcessableAppProj_Call) Run(run func(app *v1alpha1.Application)) *Dependencies_GetProcessableAppProj_Call {
   177  	_c.Call.Run(func(args mock.Arguments) {
   178  		var arg0 *v1alpha1.Application
   179  		if args[0] != nil {
   180  			arg0 = args[0].(*v1alpha1.Application)
   181  		}
   182  		run(
   183  			arg0,
   184  		)
   185  	})
   186  	return _c
   187  }
   188  
   189  func (_c *Dependencies_GetProcessableAppProj_Call) Return(appProject *v1alpha1.AppProject, err error) *Dependencies_GetProcessableAppProj_Call {
   190  	_c.Call.Return(appProject, err)
   191  	return _c
   192  }
   193  
   194  func (_c *Dependencies_GetProcessableAppProj_Call) RunAndReturn(run func(app *v1alpha1.Application) (*v1alpha1.AppProject, error)) *Dependencies_GetProcessableAppProj_Call {
   195  	_c.Call.Return(run)
   196  	return _c
   197  }
   198  
   199  // GetProcessableApps provides a mock function for the type Dependencies
   200  func (_mock *Dependencies) GetProcessableApps() (*v1alpha1.ApplicationList, error) {
   201  	ret := _mock.Called()
   202  
   203  	if len(ret) == 0 {
   204  		panic("no return value specified for GetProcessableApps")
   205  	}
   206  
   207  	var r0 *v1alpha1.ApplicationList
   208  	var r1 error
   209  	if returnFunc, ok := ret.Get(0).(func() (*v1alpha1.ApplicationList, error)); ok {
   210  		return returnFunc()
   211  	}
   212  	if returnFunc, ok := ret.Get(0).(func() *v1alpha1.ApplicationList); ok {
   213  		r0 = returnFunc()
   214  	} else {
   215  		if ret.Get(0) != nil {
   216  			r0 = ret.Get(0).(*v1alpha1.ApplicationList)
   217  		}
   218  	}
   219  	if returnFunc, ok := ret.Get(1).(func() error); ok {
   220  		r1 = returnFunc()
   221  	} else {
   222  		r1 = ret.Error(1)
   223  	}
   224  	return r0, r1
   225  }
   226  
   227  // Dependencies_GetProcessableApps_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProcessableApps'
   228  type Dependencies_GetProcessableApps_Call struct {
   229  	*mock.Call
   230  }
   231  
   232  // GetProcessableApps is a helper method to define mock.On call
   233  func (_e *Dependencies_Expecter) GetProcessableApps() *Dependencies_GetProcessableApps_Call {
   234  	return &Dependencies_GetProcessableApps_Call{Call: _e.mock.On("GetProcessableApps")}
   235  }
   236  
   237  func (_c *Dependencies_GetProcessableApps_Call) Run(run func()) *Dependencies_GetProcessableApps_Call {
   238  	_c.Call.Run(func(args mock.Arguments) {
   239  		run()
   240  	})
   241  	return _c
   242  }
   243  
   244  func (_c *Dependencies_GetProcessableApps_Call) Return(applicationList *v1alpha1.ApplicationList, err error) *Dependencies_GetProcessableApps_Call {
   245  	_c.Call.Return(applicationList, err)
   246  	return _c
   247  }
   248  
   249  func (_c *Dependencies_GetProcessableApps_Call) RunAndReturn(run func() (*v1alpha1.ApplicationList, error)) *Dependencies_GetProcessableApps_Call {
   250  	_c.Call.Return(run)
   251  	return _c
   252  }
   253  
   254  // GetRepoObjs provides a mock function for the type Dependencies
   255  func (_mock *Dependencies) GetRepoObjs(ctx context.Context, app *v1alpha1.Application, source v1alpha1.ApplicationSource, revision string, project *v1alpha1.AppProject) ([]*unstructured.Unstructured, *apiclient.ManifestResponse, error) {
   256  	ret := _mock.Called(ctx, app, source, revision, project)
   257  
   258  	if len(ret) == 0 {
   259  		panic("no return value specified for GetRepoObjs")
   260  	}
   261  
   262  	var r0 []*unstructured.Unstructured
   263  	var r1 *apiclient.ManifestResponse
   264  	var r2 error
   265  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.Application, v1alpha1.ApplicationSource, string, *v1alpha1.AppProject) ([]*unstructured.Unstructured, *apiclient.ManifestResponse, error)); ok {
   266  		return returnFunc(ctx, app, source, revision, project)
   267  	}
   268  	if returnFunc, ok := ret.Get(0).(func(context.Context, *v1alpha1.Application, v1alpha1.ApplicationSource, string, *v1alpha1.AppProject) []*unstructured.Unstructured); ok {
   269  		r0 = returnFunc(ctx, app, source, revision, project)
   270  	} else {
   271  		if ret.Get(0) != nil {
   272  			r0 = ret.Get(0).([]*unstructured.Unstructured)
   273  		}
   274  	}
   275  	if returnFunc, ok := ret.Get(1).(func(context.Context, *v1alpha1.Application, v1alpha1.ApplicationSource, string, *v1alpha1.AppProject) *apiclient.ManifestResponse); ok {
   276  		r1 = returnFunc(ctx, app, source, revision, project)
   277  	} else {
   278  		if ret.Get(1) != nil {
   279  			r1 = ret.Get(1).(*apiclient.ManifestResponse)
   280  		}
   281  	}
   282  	if returnFunc, ok := ret.Get(2).(func(context.Context, *v1alpha1.Application, v1alpha1.ApplicationSource, string, *v1alpha1.AppProject) error); ok {
   283  		r2 = returnFunc(ctx, app, source, revision, project)
   284  	} else {
   285  		r2 = ret.Error(2)
   286  	}
   287  	return r0, r1, r2
   288  }
   289  
   290  // Dependencies_GetRepoObjs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepoObjs'
   291  type Dependencies_GetRepoObjs_Call struct {
   292  	*mock.Call
   293  }
   294  
   295  // GetRepoObjs is a helper method to define mock.On call
   296  //   - ctx context.Context
   297  //   - app *v1alpha1.Application
   298  //   - source v1alpha1.ApplicationSource
   299  //   - revision string
   300  //   - project *v1alpha1.AppProject
   301  func (_e *Dependencies_Expecter) GetRepoObjs(ctx interface{}, app interface{}, source interface{}, revision interface{}, project interface{}) *Dependencies_GetRepoObjs_Call {
   302  	return &Dependencies_GetRepoObjs_Call{Call: _e.mock.On("GetRepoObjs", ctx, app, source, revision, project)}
   303  }
   304  
   305  func (_c *Dependencies_GetRepoObjs_Call) Run(run func(ctx context.Context, app *v1alpha1.Application, source v1alpha1.ApplicationSource, revision string, project *v1alpha1.AppProject)) *Dependencies_GetRepoObjs_Call {
   306  	_c.Call.Run(func(args mock.Arguments) {
   307  		var arg0 context.Context
   308  		if args[0] != nil {
   309  			arg0 = args[0].(context.Context)
   310  		}
   311  		var arg1 *v1alpha1.Application
   312  		if args[1] != nil {
   313  			arg1 = args[1].(*v1alpha1.Application)
   314  		}
   315  		var arg2 v1alpha1.ApplicationSource
   316  		if args[2] != nil {
   317  			arg2 = args[2].(v1alpha1.ApplicationSource)
   318  		}
   319  		var arg3 string
   320  		if args[3] != nil {
   321  			arg3 = args[3].(string)
   322  		}
   323  		var arg4 *v1alpha1.AppProject
   324  		if args[4] != nil {
   325  			arg4 = args[4].(*v1alpha1.AppProject)
   326  		}
   327  		run(
   328  			arg0,
   329  			arg1,
   330  			arg2,
   331  			arg3,
   332  			arg4,
   333  		)
   334  	})
   335  	return _c
   336  }
   337  
   338  func (_c *Dependencies_GetRepoObjs_Call) Return(unstructureds []*unstructured.Unstructured, manifestResponse *apiclient.ManifestResponse, err error) *Dependencies_GetRepoObjs_Call {
   339  	_c.Call.Return(unstructureds, manifestResponse, err)
   340  	return _c
   341  }
   342  
   343  func (_c *Dependencies_GetRepoObjs_Call) RunAndReturn(run func(ctx context.Context, app *v1alpha1.Application, source v1alpha1.ApplicationSource, revision string, project *v1alpha1.AppProject) ([]*unstructured.Unstructured, *apiclient.ManifestResponse, error)) *Dependencies_GetRepoObjs_Call {
   344  	_c.Call.Return(run)
   345  	return _c
   346  }
   347  
   348  // GetWriteCredentials provides a mock function for the type Dependencies
   349  func (_mock *Dependencies) GetWriteCredentials(ctx context.Context, repoURL string, project string) (*v1alpha1.Repository, error) {
   350  	ret := _mock.Called(ctx, repoURL, project)
   351  
   352  	if len(ret) == 0 {
   353  		panic("no return value specified for GetWriteCredentials")
   354  	}
   355  
   356  	var r0 *v1alpha1.Repository
   357  	var r1 error
   358  	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) (*v1alpha1.Repository, error)); ok {
   359  		return returnFunc(ctx, repoURL, project)
   360  	}
   361  	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) *v1alpha1.Repository); ok {
   362  		r0 = returnFunc(ctx, repoURL, project)
   363  	} else {
   364  		if ret.Get(0) != nil {
   365  			r0 = ret.Get(0).(*v1alpha1.Repository)
   366  		}
   367  	}
   368  	if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
   369  		r1 = returnFunc(ctx, repoURL, project)
   370  	} else {
   371  		r1 = ret.Error(1)
   372  	}
   373  	return r0, r1
   374  }
   375  
   376  // Dependencies_GetWriteCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWriteCredentials'
   377  type Dependencies_GetWriteCredentials_Call struct {
   378  	*mock.Call
   379  }
   380  
   381  // GetWriteCredentials is a helper method to define mock.On call
   382  //   - ctx context.Context
   383  //   - repoURL string
   384  //   - project string
   385  func (_e *Dependencies_Expecter) GetWriteCredentials(ctx interface{}, repoURL interface{}, project interface{}) *Dependencies_GetWriteCredentials_Call {
   386  	return &Dependencies_GetWriteCredentials_Call{Call: _e.mock.On("GetWriteCredentials", ctx, repoURL, project)}
   387  }
   388  
   389  func (_c *Dependencies_GetWriteCredentials_Call) Run(run func(ctx context.Context, repoURL string, project string)) *Dependencies_GetWriteCredentials_Call {
   390  	_c.Call.Run(func(args mock.Arguments) {
   391  		var arg0 context.Context
   392  		if args[0] != nil {
   393  			arg0 = args[0].(context.Context)
   394  		}
   395  		var arg1 string
   396  		if args[1] != nil {
   397  			arg1 = args[1].(string)
   398  		}
   399  		var arg2 string
   400  		if args[2] != nil {
   401  			arg2 = args[2].(string)
   402  		}
   403  		run(
   404  			arg0,
   405  			arg1,
   406  			arg2,
   407  		)
   408  	})
   409  	return _c
   410  }
   411  
   412  func (_c *Dependencies_GetWriteCredentials_Call) Return(repository *v1alpha1.Repository, err error) *Dependencies_GetWriteCredentials_Call {
   413  	_c.Call.Return(repository, err)
   414  	return _c
   415  }
   416  
   417  func (_c *Dependencies_GetWriteCredentials_Call) RunAndReturn(run func(ctx context.Context, repoURL string, project string) (*v1alpha1.Repository, error)) *Dependencies_GetWriteCredentials_Call {
   418  	_c.Call.Return(run)
   419  	return _c
   420  }
   421  
   422  // PersistAppHydratorStatus provides a mock function for the type Dependencies
   423  func (_mock *Dependencies) PersistAppHydratorStatus(orig *v1alpha1.Application, newStatus *v1alpha1.SourceHydratorStatus) {
   424  	_mock.Called(orig, newStatus)
   425  	return
   426  }
   427  
   428  // Dependencies_PersistAppHydratorStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PersistAppHydratorStatus'
   429  type Dependencies_PersistAppHydratorStatus_Call struct {
   430  	*mock.Call
   431  }
   432  
   433  // PersistAppHydratorStatus is a helper method to define mock.On call
   434  //   - orig *v1alpha1.Application
   435  //   - newStatus *v1alpha1.SourceHydratorStatus
   436  func (_e *Dependencies_Expecter) PersistAppHydratorStatus(orig interface{}, newStatus interface{}) *Dependencies_PersistAppHydratorStatus_Call {
   437  	return &Dependencies_PersistAppHydratorStatus_Call{Call: _e.mock.On("PersistAppHydratorStatus", orig, newStatus)}
   438  }
   439  
   440  func (_c *Dependencies_PersistAppHydratorStatus_Call) Run(run func(orig *v1alpha1.Application, newStatus *v1alpha1.SourceHydratorStatus)) *Dependencies_PersistAppHydratorStatus_Call {
   441  	_c.Call.Run(func(args mock.Arguments) {
   442  		var arg0 *v1alpha1.Application
   443  		if args[0] != nil {
   444  			arg0 = args[0].(*v1alpha1.Application)
   445  		}
   446  		var arg1 *v1alpha1.SourceHydratorStatus
   447  		if args[1] != nil {
   448  			arg1 = args[1].(*v1alpha1.SourceHydratorStatus)
   449  		}
   450  		run(
   451  			arg0,
   452  			arg1,
   453  		)
   454  	})
   455  	return _c
   456  }
   457  
   458  func (_c *Dependencies_PersistAppHydratorStatus_Call) Return() *Dependencies_PersistAppHydratorStatus_Call {
   459  	_c.Call.Return()
   460  	return _c
   461  }
   462  
   463  func (_c *Dependencies_PersistAppHydratorStatus_Call) RunAndReturn(run func(orig *v1alpha1.Application, newStatus *v1alpha1.SourceHydratorStatus)) *Dependencies_PersistAppHydratorStatus_Call {
   464  	_c.Run(run)
   465  	return _c
   466  }
   467  
   468  // RequestAppRefresh provides a mock function for the type Dependencies
   469  func (_mock *Dependencies) RequestAppRefresh(appName string, appNamespace string) error {
   470  	ret := _mock.Called(appName, appNamespace)
   471  
   472  	if len(ret) == 0 {
   473  		panic("no return value specified for RequestAppRefresh")
   474  	}
   475  
   476  	var r0 error
   477  	if returnFunc, ok := ret.Get(0).(func(string, string) error); ok {
   478  		r0 = returnFunc(appName, appNamespace)
   479  	} else {
   480  		r0 = ret.Error(0)
   481  	}
   482  	return r0
   483  }
   484  
   485  // Dependencies_RequestAppRefresh_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestAppRefresh'
   486  type Dependencies_RequestAppRefresh_Call struct {
   487  	*mock.Call
   488  }
   489  
   490  // RequestAppRefresh is a helper method to define mock.On call
   491  //   - appName string
   492  //   - appNamespace string
   493  func (_e *Dependencies_Expecter) RequestAppRefresh(appName interface{}, appNamespace interface{}) *Dependencies_RequestAppRefresh_Call {
   494  	return &Dependencies_RequestAppRefresh_Call{Call: _e.mock.On("RequestAppRefresh", appName, appNamespace)}
   495  }
   496  
   497  func (_c *Dependencies_RequestAppRefresh_Call) Run(run func(appName string, appNamespace string)) *Dependencies_RequestAppRefresh_Call {
   498  	_c.Call.Run(func(args mock.Arguments) {
   499  		var arg0 string
   500  		if args[0] != nil {
   501  			arg0 = args[0].(string)
   502  		}
   503  		var arg1 string
   504  		if args[1] != nil {
   505  			arg1 = args[1].(string)
   506  		}
   507  		run(
   508  			arg0,
   509  			arg1,
   510  		)
   511  	})
   512  	return _c
   513  }
   514  
   515  func (_c *Dependencies_RequestAppRefresh_Call) Return(err error) *Dependencies_RequestAppRefresh_Call {
   516  	_c.Call.Return(err)
   517  	return _c
   518  }
   519  
   520  func (_c *Dependencies_RequestAppRefresh_Call) RunAndReturn(run func(appName string, appNamespace string) error) *Dependencies_RequestAppRefresh_Call {
   521  	_c.Call.Return(run)
   522  	return _c
   523  }