@@ -322,35 +322,6 @@ func TestApply_InstallationWithPreflightPermissionsEnabled(t *testing.T) {
322322 require .Nil (t , objs )
323323 })
324324
325- t .Run ("fails during installation because of missing RBAC rules" , func (t * testing.T ) {
326- mockAcg := & mockActionGetter {
327- getClientErr : driver .ErrReleaseNotFound ,
328- desiredRel : & release.Release {
329- Info : & release.Info {Status : release .StatusDeployed },
330- Manifest : validManifest ,
331- },
332- }
333- helmApplier := applier.Helm {
334- ActionClientGetter : mockAcg ,
335- PreAuthorizer : & errorPreAuthorizer {},
336- BundleToHelmChartFn : convert .RegistryV1ToHelmChart ,
337- }
338- // Use a ClusterExtension with valid Spec fields.
339- validCE := & ocv1.ClusterExtension {
340- Spec : ocv1.ClusterExtensionSpec {
341- Namespace : "default" ,
342- ServiceAccount : ocv1.ServiceAccountReference {
343- Name : "default" ,
344- },
345- },
346- }
347- objs , state , err := helmApplier .Apply (context .TODO (), validFS , validCE , testObjectLabels , testStorageLabels )
348- require .Error (t , err )
349- require .ErrorContains (t , err , "problem running preauthorization" )
350- require .Equal (t , "" , state )
351- require .Nil (t , objs )
352- })
353-
354325 t .Run ("fails during installation because of pre-authorization failure" , func (t * testing.T ) {
355326 mockAcg := & mockActionGetter {
356327 getClientErr : driver .ErrReleaseNotFound ,
0 commit comments