@@ -190,7 +190,7 @@ func (s *AppInstallControllerTestSuite) TestRunAppPreflights() {
190190 setupMocks : func (apm * apppreflightmanager.MockAppPreflightManager , arm * appreleasemanager.MockAppReleaseManager , acm * appconfig.MockAppConfigManager ) {
191191 mock .InOrder (
192192 acm .On ("GetConfigValues" ).Return (types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, nil ),
193- arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything ).Return (expectedAPF , nil ),
193+ arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything , mock . Anything ).Return (expectedAPF , nil ),
194194 apm .On ("RunAppPreflights" , mock .Anything , mock .MatchedBy (func (opts apppreflightmanager.RunAppPreflightOptions ) bool {
195195 return expectedAPF == opts .AppPreflightSpec
196196 })).Return (nil ),
@@ -216,7 +216,7 @@ func (s *AppInstallControllerTestSuite) TestRunAppPreflights() {
216216 setupMocks : func (apm * apppreflightmanager.MockAppPreflightManager , arm * appreleasemanager.MockAppReleaseManager , acm * appconfig.MockAppConfigManager ) {
217217 mock .InOrder (
218218 acm .On ("GetConfigValues" ).Return (types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, nil ),
219- arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything ).Return (expectedAPF , nil ),
219+ arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything , mock . Anything ).Return (expectedAPF , nil ),
220220 apm .On ("RunAppPreflights" , mock .Anything , mock .MatchedBy (func (opts apppreflightmanager.RunAppPreflightOptions ) bool {
221221 return expectedAPF == opts .AppPreflightSpec
222222 })).Return (nil ),
@@ -242,7 +242,7 @@ func (s *AppInstallControllerTestSuite) TestRunAppPreflights() {
242242 setupMocks : func (apm * apppreflightmanager.MockAppPreflightManager , arm * appreleasemanager.MockAppReleaseManager , acm * appconfig.MockAppConfigManager ) {
243243 mock .InOrder (
244244 acm .On ("GetConfigValues" ).Return (types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, nil ),
245- arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything ).Return (expectedAPF , nil ),
245+ arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything , mock . Anything ).Return (expectedAPF , nil ),
246246 apm .On ("RunAppPreflights" , mock .Anything , mock .MatchedBy (func (opts apppreflightmanager.RunAppPreflightOptions ) bool {
247247 return expectedAPF == opts .AppPreflightSpec
248248 })).Return (nil ),
@@ -268,7 +268,7 @@ func (s *AppInstallControllerTestSuite) TestRunAppPreflights() {
268268 setupMocks : func (apm * apppreflightmanager.MockAppPreflightManager , arm * appreleasemanager.MockAppReleaseManager , acm * appconfig.MockAppConfigManager ) {
269269 mock .InOrder (
270270 acm .On ("GetConfigValues" ).Return (types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, nil ),
271- arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything ).Return (expectedAPF , nil ),
271+ arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything , mock . Anything ).Return (expectedAPF , nil ),
272272 apm .On ("RunAppPreflights" , mock .Anything , mock .MatchedBy (func (opts apppreflightmanager.RunAppPreflightOptions ) bool {
273273 return expectedAPF == opts .AppPreflightSpec
274274 })).Return (nil ),
@@ -294,7 +294,7 @@ func (s *AppInstallControllerTestSuite) TestRunAppPreflights() {
294294 setupMocks : func (apm * apppreflightmanager.MockAppPreflightManager , arm * appreleasemanager.MockAppReleaseManager , acm * appconfig.MockAppConfigManager ) {
295295 mock .InOrder (
296296 acm .On ("GetConfigValues" ).Return (types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, nil ),
297- arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything ).Return (expectedAPF , nil ),
297+ arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything , mock . Anything ).Return (expectedAPF , nil ),
298298 apm .On ("RunAppPreflights" , mock .Anything , mock .MatchedBy (func (opts apppreflightmanager.RunAppPreflightOptions ) bool {
299299 return expectedAPF == opts .AppPreflightSpec
300300 })).Return (nil ),
@@ -313,7 +313,7 @@ func (s *AppInstallControllerTestSuite) TestRunAppPreflights() {
313313 setupMocks : func (apm * apppreflightmanager.MockAppPreflightManager , arm * appreleasemanager.MockAppReleaseManager , acm * appconfig.MockAppConfigManager ) {
314314 mock .InOrder (
315315 acm .On ("GetConfigValues" ).Return (types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, nil ),
316- arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything ).Return (expectedAPF , nil ),
316+ arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything , mock . Anything ).Return (expectedAPF , nil ),
317317 apm .On ("RunAppPreflights" , mock .Anything , mock .MatchedBy (func (opts apppreflightmanager.RunAppPreflightOptions ) bool {
318318 return expectedAPF == opts .AppPreflightSpec
319319 })).Return (nil ),
@@ -332,7 +332,7 @@ func (s *AppInstallControllerTestSuite) TestRunAppPreflights() {
332332 setupMocks : func (apm * apppreflightmanager.MockAppPreflightManager , arm * appreleasemanager.MockAppReleaseManager , acm * appconfig.MockAppConfigManager ) {
333333 mock .InOrder (
334334 acm .On ("GetConfigValues" ).Return (types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, nil ),
335- arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything ).Return (expectedAPF , nil ),
335+ arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything , mock . Anything ).Return (expectedAPF , nil ),
336336 apm .On ("RunAppPreflights" , mock .Anything , mock .MatchedBy (func (opts apppreflightmanager.RunAppPreflightOptions ) bool {
337337 return expectedAPF == opts .AppPreflightSpec
338338 })).Return (nil ),
@@ -358,7 +358,7 @@ func (s *AppInstallControllerTestSuite) TestRunAppPreflights() {
358358 setupMocks : func (apm * apppreflightmanager.MockAppPreflightManager , arm * appreleasemanager.MockAppReleaseManager , acm * appconfig.MockAppConfigManager ) {
359359 mock .InOrder (
360360 acm .On ("GetConfigValues" ).Return (types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, nil ),
361- arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything ).Return (nil , errors .New ("extraction error" )),
361+ arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything , mock . Anything ).Return (nil , errors .New ("extraction error" )),
362362 )
363363 },
364364 expectedErr : true ,
@@ -373,7 +373,7 @@ func (s *AppInstallControllerTestSuite) TestRunAppPreflights() {
373373 setupMocks : func (apm * apppreflightmanager.MockAppPreflightManager , arm * appreleasemanager.MockAppReleaseManager , acm * appconfig.MockAppConfigManager ) {
374374 mock .InOrder (
375375 acm .On ("GetConfigValues" ).Return (types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, nil ),
376- arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything ).Return (expectedAPF , nil ),
376+ arm .On ("ExtractAppPreflightSpec" , mock .Anything , types.AppConfigValues {"test-item" : types.AppConfigValue {Value : "test-value" }}, mock .Anything , mock . Anything ).Return (expectedAPF , nil ),
377377 apm .On ("RunAppPreflights" , mock .Anything , mock .MatchedBy (func (opts apppreflightmanager.RunAppPreflightOptions ) bool {
378378 return expectedAPF == opts .AppPreflightSpec
379379 })).Return (errors .New ("run preflights error" )),
0 commit comments