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 @@ -516,3 +516,17 @@ func TestPrivateZonePermissions(t *testing.T) {
516516 })
517517 })
518518}
519+
520+ func TestPublicIPv4PoolPermissions (t * testing.T ) {
521+ t .Run ("Should include IPv4Pool permissions when IPv4 pool specified" , func (t * testing.T ) {
522+ ic := validInstallConfig ()
523+ ic .AWS .PublicIpv4Pool = "custom-ipv4-pool"
524+ requiredPerms := RequiredPermissionGroups (ic )
525+ assert .Contains (t , requiredPerms , PermissionPublicIpv4Pool )
526+ })
527+ t .Run ("Should not include IPv4Pool permissions when IPv4 pool not specified" , func (t * testing.T ) {
528+ ic := validInstallConfig ()
529+ requiredPerms := RequiredPermissionGroups (ic )
530+ assert .NotContains (t , requiredPerms , PermissionPublicIpv4Pool )
531+ })
532+ }
You can’t perform that action at this time.
0 commit comments