File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
pkg/asset/installconfig/aws Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -559,3 +559,17 @@ func TestBasePermissions(t *testing.T) {
559559 assert .NotContains (t , requiredPerms , PermissionDeleteBase )
560560 })
561561}
562+
563+ func TestDeleteIgnitionPermissions (t * testing.T ) {
564+ t .Run ("Should include delete ignition permissions" , func (t * testing.T ) {
565+ ic := validInstallConfig ()
566+ requiredPerms := RequiredPermissionGroups (ic )
567+ assert .Contains (t , requiredPerms , PermissionDeleteIgnitionObjects )
568+ })
569+ t .Run ("Should not include delete ignition permission when specified" , func (t * testing.T ) {
570+ ic := validInstallConfig ()
571+ ic .AWS .BestEffortDeleteIgnition = true
572+ requiredPerms := RequiredPermissionGroups (ic )
573+ assert .NotContains (t , requiredPerms , PermissionDeleteIgnitionObjects )
574+ })
575+ }
You can’t perform that action at this time.
0 commit comments