hosted slice 2: review fixes, pre-run VPCs and gateways accounted
Task 32 finding 5. ops inventory lists every VPC (the default one marked) and every internet gateway, unfiltered over every page, and before the run's first intent journals them as PRE-RUN facts; the ledger ignores PRE-RUN entries after the first intent, and accounted() counts the pre-run VPC and gateway IDs. An interrupted network apply in an account with a default VPC gateway now resolves NOTCREATED; an unknown detached gateway still leaves the intent unresolved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 files changed,
+256
−11
docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md+5 −1internal/hostedops/cloud.go+8 −3internal/hostedops/fake_test.go+2 −1internal/hostedops/ledger.go+13 −1internal/hostedops/singleton.go+35 −0internal/hostedops/t32_test.go+75 −0internal/hostedops/tf.go+10 −1internal/isolatedjob/awsjob/opsaws/fix1_test.go+3 −1internal/isolatedjob/awsjob/opsaws/fix3_test.go+2 −0internal/isolatedjob/awsjob/opsaws/lookup.go+28 −3internal/isolatedjob/awsjob/opsaws/t32_test.go+75 −0
diff --git a/docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md b/docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md| index 34f1496c..61b9f5eb 100644 |
| --- a/docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md |
| +++ b/docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md |
| @@ -317,7 +317,11 @@ service-managed StackSet from the management account). |
| `ops inventory` writes `inventory.json`: counts of non-default VPCs, instances, buckets, trails, |
| budgets and MicroVM images; every IAM role, bucket and MicroVM image whose name starts with |
| `equipo-hosted`; and the account's S3 public access block and EBS default encryption. A name |
| -collision is a hard stop. Anything else non-zero is a FINDING and is never touched. |
| +collision is a hard stop. Anything else non-zero is a FINDING and is never touched. Before the run's |
| +first intent it also journals every VPC (the default one marked) and every internet gateway, attached |
| +or not, as `PRE-RUN` facts; `ops tf reconcile` counts those IDs as accounted, so the default VPC's |
| +gateway never holds up an interrupted network apply, while a gateway nobody accounts for still leaves |
| +the intent unresolved (Task 32). An inventory after the first intent records no `PRE-RUN` facts. |
| ### 0.6 The applied MicroVM quota (read-only) |
diff --git a/internal/hostedops/cloud.go b/internal/hostedops/cloud.go| index b37eee28..d05abb13 100644 |
| --- a/internal/hostedops/cloud.go |
| +++ b/internal/hostedops/cloud.go |
| @@ -149,9 +149,14 @@ type Quota struct { |
| type Inventory struct { |
| NonDefaultVPCs, Instances, Buckets, Trails, Budgets, MicroVMImages int |
| BudgetsUnreadable string |
| - Roles, BucketNames, ImageNames []string // equipo-hosted* only |
| - AccountPublicBlock PublicAccessBlock |
| - EBSDefaultEncryption bool |
| + // VPCs is every VPC's ID (the default one included), DefaultVPC the |
| + // default VPC's ("" when there is none), and Gateways every internet |
| + // gateway's ID, attached or not: what pre-dates the run (Task 32). |
| + VPCs, Gateways []string |
| + DefaultVPC string |
| + Roles, BucketNames, ImageNames []string // equipo-hosted* only |
| + AccountPublicBlock PublicAccessBlock |
| + EBSDefaultEncryption bool |
| } |
| // LookupKey names a resource for a direct read: a type (a tf resource |
diff --git a/internal/hostedops/fake_test.go b/internal/hostedops/fake_test.go| index 9ce08e37..1ebbc4c0 100644 |
| --- a/internal/hostedops/fake_test.go |
| +++ b/internal/hostedops/fake_test.go |
| @@ -70,6 +70,7 @@ type fakeCloud struct { |
| trust string |
| attachErr error |
| objects map[string][]byte // bucket/key |
| + inv Inventory |
| } |
| func newCloud(clock *fakeClock) *fakeCloud { |
| @@ -297,7 +298,7 @@ func (f *fakeCloud) AlarmStates(context.Context, []string) (map[string]string, e |
| return map[string]string{}, nil |
| } |
| func (f *fakeCloud) Quotas(context.Context) ([]Quota, error) { return nil, nil } |
| -func (f *fakeCloud) Inventory(context.Context) (Inventory, error) { return Inventory{}, nil } |
| +func (f *fakeCloud) Inventory(context.Context) (Inventory, error) { return f.inv, nil } |
| func (f *fakeCloud) Lookup(_ context.Context, k LookupKey) (LookupResult, error) { |
| f.rec("Lookup %s %s %s", k.Type, k.ID, k.Name) |
| if f.lookup == nil { |
diff --git a/internal/hostedops/ledger.go b/internal/hostedops/ledger.go| index f4ee7d26..a74b134a 100644 |
| --- a/internal/hostedops/ledger.go |
| +++ b/internal/hostedops/ledger.go |
| @@ -175,6 +175,13 @@ type Ledger struct { |
| Targets []string |
| TFApplying map[string]bool // roots whose last apply did not finish |
| ImageOf map[string]string // image digest -> image ARN (IMAGE-DIGEST) |
| + // PreRun is what section 0's inventory found before the run created |
| + // anything (PRE-RUN KIND ID, journalled before the first INTENT): |
| + // "vpc" and "internet-gateway" IDs, by kind. A PRE-RUN entry after the |
| + // first intent is ignored, so the run's own resources are never taken |
| + // for pre-existing ones (Task 32). |
| + PreRun map[string][]string |
| + begun bool // an INTENT has been journalled |
| } |
| // Wait is a wait-human clock. |
| @@ -192,7 +199,7 @@ func LoadLedger(j *Journal) (*Ledger, error) { |
| } |
| l := &Ledger{Entries: es, Deleted: map[string]bool{}, Notes: map[string]string{}, VMs: map[string]*VMSeen{}, |
| Hosts: map[string]*Host{}, Owned: map[string]bool{}, Waits: map[string]Wait{}, Settled: map[string]time.Time{}, |
| - TFApplying: map[string]bool{}, ImageOf: map[string]string{}} |
| + TFApplying: map[string]bool{}, ImageOf: map[string]string{}, PreRun: map[string][]string{}} |
| for _, e := range es { |
| l.apply(e) |
| } |
| @@ -203,7 +210,12 @@ func (l *Ledger) apply(e Entry) { |
| switch e.Verb { |
| case "INIT": |
| l.Run = e.Attr("run") |
| + case "PRE-RUN": |
| + if k, id := e.Field(0), e.Field(1); !l.begun && id != "" && !slices.Contains(l.PreRun[k], id) { |
| + l.PreRun[k] = append(l.PreRun[k], id) |
| + } |
| case "INTENT": |
| + l.begun = true |
| in := &Intent{Entry: e, Kind: e.Field(0), Name: e.Field(1), Token: e.Field(2), State: "open"} |
| if in.Kind == "cert-launch" { // equipo-hosted-certify: IMAGE SIZE LAUNCHBY ATTEMPT |
| in.Token = e.Field(4) |
diff --git a/internal/hostedops/singleton.go b/internal/hostedops/singleton.go| index ce5bcb1e..4c680331 100644 |
| --- a/internal/hostedops/singleton.go |
| +++ b/internal/hostedops/singleton.go |
| @@ -432,6 +432,9 @@ func cmdInventory(o *Ops, args []string) error { |
| if err != nil { |
| return err |
| } |
| + if err := o.preRun(l, inv); err != nil { |
| + return err |
| + } |
| var collide []string |
| for _, n := range append(append(append([]string{}, inv.Roles...), inv.BucketNames...), inv.ImageNames...) { |
| if !ownName(l, n) { |
| @@ -456,6 +459,38 @@ func cmdInventory(o *Ops, args []string) error { |
| return nil |
| } |
| +// preRun journals what pre-dates the run (Task 32): every VPC, the |
| +// default one marked, and every internet gateway, as PRE-RUN facts that |
| +// reconciliation counts as accounted. Only before the run's first intent: |
| +// later, the account holds the run's own resources too, and nothing is |
| +// recorded. |
| +func (o *Ops) preRun(l *Ledger, inv Inventory) error { |
| + for _, e := range l.Entries { |
| + if e.Verb == "INTENT" { |
| + return o.jw("NOTE", "pre-run: not recorded, the run has begun") |
| + } |
| + } |
| + for _, v := range inv.VPCs { |
| + def := "" |
| + if v == inv.DefaultVPC { |
| + def = " default" |
| + } |
| + if !slices.Contains(l.PreRun["vpc"], v) { |
| + if err := o.jw("PRE-RUN", "vpc %s%s", v, def); err != nil { |
| + return err |
| + } |
| + } |
| + } |
| + for _, g := range inv.Gateways { |
| + if !slices.Contains(l.PreRun["internet-gateway"], g) { |
| + if err := o.jw("PRE-RUN", "internet-gateway %s", g); err != nil { |
| + return err |
| + } |
| + } |
| + } |
| + return nil |
| +} |
| + |
| // ownName reports whether this run recorded name (so a rerun of 0.5 does |
| // not call its own resources a collision). |
| func ownName(l *Ledger, n string) bool { |
diff --git a/internal/hostedops/t32_test.go b/internal/hostedops/t32_test.go| index ed61c919..1b837618 100644 |
| --- a/internal/hostedops/t32_test.go |
| +++ b/internal/hostedops/t32_test.go |
| @@ -3,6 +3,7 @@ package hostedops |
| import ( |
| "os" |
| "path/filepath" |
| + "slices" |
| "strings" |
| "testing" |
| @@ -75,3 +76,77 @@ func TestGuardPrintsBoundRole(t *testing.T) { |
| t.Fatalf("guard -print-role as another role = %d, printed %q; want 99 and nothing", code, stdout.String()) |
| } |
| } |
| + |
| +// Finding 5: section 0's inventory records every VPC (the default one |
| +// included) and every internet gateway that pre-dates the run as PRE-RUN |
| +// facts; reconciliation counts them as accounted, so an interrupted |
| +// network apply in an account with a default VPC gateway resolves the |
| +// gateway intent NOTCREATED, while a gateway nobody accounts for keeps it |
| +// unresolved. |
| + |
| +// gatewayLookup answers a gateway lookup as the adapter does |
| +// (opsaws ec2ByIdentity): no tagged match; absence is definitive only |
| +// when every gateway listed in the account is accounted. |
| +func gatewayLookup(listed ...string) func(LookupKey) (LookupResult, error) { |
| + return func(k LookupKey) (LookupResult, error) { |
| + if k.Type != "aws_internet_gateway" { |
| + return LookupResult{Definitive: true}, nil |
| + } |
| + for _, id := range listed { |
| + if !slices.Contains(k.Accounted, id) { |
| + return LookupResult{}, nil |
| + } |
| + } |
| + return LookupResult{Definitive: true}, nil |
| + } |
| +} |
| + |
| +const igwIntent = "INTENT tf network/module.network.aws_internet_gateway.services - type=aws_internet_gateway run=r1 nametag=equipo-hosted-services parent=vpc-0svc" |
| + |
| +func TestPreRunGatewayAccounted(t *testing.T) { |
| + for _, tc := range []struct { |
| + name string |
| + listed []string |
| + code int |
| + resolved string |
| + }{ |
| + {"the default VPC's gateway", []string{"igw-0default"}, 0, StateAbsent}, |
| + {"and an unknown detached gateway", []string{"igw-0default", "igw-0stray"}, ExitStop, StateUnresolved}, |
| + } { |
| + t.Run(tc.name, func(t *testing.T) { |
| + r, fake := tfRig(t) |
| + r.cloud.inv = Inventory{VPCs: []string{"vpc-0default"}, DefaultVPC: "vpc-0default", Gateways: []string{"igw-0default"}} |
| + r.want(0, "inventory") |
| + if !r.has("PRE-RUN", "internet-gateway igw-0default") || !r.has("PRE-RUN", "vpc vpc-0default") { |
| + t.Fatalf("the inventory recorded no pre-run facts:\n%s", journalText(r)) |
| + } |
| + r.journal(igwIntent) |
| + os.WriteFile(filepath.Join(fake, "plan.json"), []byte(`{"planned_values":{"root_module":{}}}`), 0o600) |
| + r.cloud.lookup = gatewayLookup(tc.listed...) |
| + r.want(tc.code, "tf", "reconcile", "network") |
| + if got := r.ledger().CreationState("tf", "network/module.network.aws_internet_gateway.services"); got != tc.resolved { |
| + t.Fatalf("the gateway intent is %s, want %s", got, tc.resolved) |
| + } |
| + }) |
| + } |
| +} |
| + |
| +// TestPreRunFactsOnlyBeforeTheRun: an inventory taken after the run began |
| +// creating things records no pre-run facts, and none journalled after the |
| +// first intent is counted: the run's own gateway is never accounted as |
| +// pre-existing. |
| +func TestPreRunFactsOnlyBeforeTheRun(t *testing.T) { |
| + r, fake := tfRig(t, igwIntent) |
| + r.cloud.inv = Inventory{Gateways: []string{"igw-0ours"}} |
| + r.want(0, "inventory") |
| + if r.has("PRE-RUN", "igw-0ours") { |
| + t.Fatalf("an inventory after the run began recorded pre-run facts:\n%s", journalText(r)) |
| + } |
| + r.journal("PRE-RUN internet-gateway igw-0ours") |
| + if slices.Contains(accounted(r.ledger(), "aws_internet_gateway"), "igw-0ours") { |
| + t.Fatal("a pre-run fact journalled after the run began was accounted") |
| + } |
| + os.WriteFile(filepath.Join(fake, "plan.json"), []byte(`{"planned_values":{"root_module":{}}}`), 0o600) |
| + r.cloud.lookup = gatewayLookup("igw-0ours") |
| + r.want(ExitStop, "tf", "reconcile", "network") |
| +} |
diff --git a/internal/hostedops/tf.go b/internal/hostedops/tf.go| index 3138dc4e..4904d2ba 100644 |
| --- a/internal/hostedops/tf.go |
| +++ b/internal/hostedops/tf.go |
| @@ -692,9 +692,18 @@ func parentDeleted(l *Ledger, id string) bool { |
| return false |
| } |
| -// accounted are the IDs of typ the ledger already holds. |
| +// accounted are the IDs of typ the ledger already holds: the run's own |
| +// records, and for a VPC or an internet gateway the ones section 0's |
| +// inventory found before the run began (PRE-RUN; Task 32), such as the |
| +// default VPC's gateway. Anything else listed stays unexplained. |
| func accounted(l *Ledger, typ string) []string { |
| var ids []string |
| + switch typ { |
| + case "aws_vpc": |
| + ids = append(ids, l.PreRun["vpc"]...) |
| + case "aws_internet_gateway": |
| + ids = append(ids, l.PreRun["internet-gateway"]...) |
| + } |
| for _, r := range l.Recorded("tf") { |
| if r.Attr("type") == typ && r.Attr("id") != "" { |
| ids = append(ids, r.Attr("id")) |
diff --git a/internal/isolatedjob/awsjob/opsaws/fix1_test.go b/internal/isolatedjob/awsjob/opsaws/fix1_test.go| index 9e17c558..fa998635 100644 |
| --- a/internal/isolatedjob/awsjob/opsaws/fix1_test.go |
| +++ b/internal/isolatedjob/awsjob/opsaws/fix1_test.go |
| @@ -272,13 +272,15 @@ func TestSDKRequestShapes(t *testing.T) { |
| cl, _ := openFake(t, func(c call) (any, error) { |
| switch in := c.In.(type) { |
| case *ec2.DescribeVpcsInput: |
| - if filters(in.Filters)["is-default"] != "false" { |
| + if len(in.Filters) != 0 { // every VPC, the default one too (Task 32) |
| t.Errorf("vpc filters %v", filters(in.Filters)) |
| } |
| if in.NextToken == nil { |
| return &ec2.DescribeVpcsOutput{Vpcs: make([]ec2types.Vpc, 1), NextToken: aws.String("2")}, nil |
| } |
| return &ec2.DescribeVpcsOutput{Vpcs: make([]ec2types.Vpc, 2)}, nil |
| + case *ec2.DescribeInternetGatewaysInput: |
| + return &ec2.DescribeInternetGatewaysOutput{}, nil |
| case *ec2.DescribeInstancesInput: |
| if in.NextToken == nil { |
| return &ec2.DescribeInstancesOutput{Reservations: []ec2types.Reservation{{Instances: make([]ec2types.Instance, 1)}}, NextToken: aws.String("2")}, nil |
diff --git a/internal/isolatedjob/awsjob/opsaws/fix3_test.go b/internal/isolatedjob/awsjob/opsaws/fix3_test.go| index 4ab6a1bc..3926e2dd 100644 |
| --- a/internal/isolatedjob/awsjob/opsaws/fix3_test.go |
| +++ b/internal/isolatedjob/awsjob/opsaws/fix3_test.go |
| @@ -76,6 +76,8 @@ func TestInventoryBudgetsTwoPages(t *testing.T) { |
| return &budgets.DescribeBudgetsOutput{Budgets: []budgettypes.Budget{{BudgetName: aws.String("b")}, {BudgetName: aws.String("c")}}}, nil |
| case *ec2.DescribeVpcsInput: |
| return &ec2.DescribeVpcsOutput{}, nil |
| + case *ec2.DescribeInternetGatewaysInput: |
| + return &ec2.DescribeInternetGatewaysOutput{}, nil |
| case *ec2.DescribeInstancesInput: |
| return &ec2.DescribeInstancesOutput{}, nil |
| case *s3.ListBucketsInput: |
diff --git a/internal/isolatedjob/awsjob/opsaws/lookup.go b/internal/isolatedjob/awsjob/opsaws/lookup.go| index 547c720f..5f7bcf53 100644 |
| --- a/internal/isolatedjob/awsjob/opsaws/lookup.go |
| +++ b/internal/isolatedjob/awsjob/opsaws/lookup.go |
| @@ -438,13 +438,38 @@ func (c *cloud) listEC2(ctx context.Context, typ string, f []ec2types.Filter) (i |
| // Inventory is 0.5's read-only sweep. |
| func (c *cloud) Inventory(ctx context.Context) (hostedops.Inventory, error) { |
| var inv hostedops.Inventory |
| - vp := ec2.NewDescribeVpcsPaginator(c.cl.ec2, &ec2.DescribeVpcsInput{Filters: []ec2types.Filter{{Name: aws.String("is-default"), Values: []string{"false"}}}}) |
| - for vp.HasMorePages() { |
| + // Every VPC and every internet gateway, unfiltered and over every |
| + // page: what pre-dates the run (PRE-RUN, Task 32). |
| + vp := ec2.NewDescribeVpcsPaginator(c.cl.ec2, &ec2.DescribeVpcsInput{}) |
| + for page := 0; vp.HasMorePages(); page++ { |
| + if page >= maxPages { |
| + return inv, errors.New("DescribeVpcs: too many pages") |
| + } |
| r, err := vp.NextPage(ctx) |
| if err != nil { |
| return inv, fmt.Errorf("DescribeVpcs: %w", err) |
| } |
| - inv.NonDefaultVPCs += len(r.Vpcs) |
| + for _, v := range r.Vpcs { |
| + inv.VPCs = append(inv.VPCs, aws.ToString(v.VpcId)) |
| + if aws.ToBool(v.IsDefault) { |
| + inv.DefaultVPC = aws.ToString(v.VpcId) |
| + } else { |
| + inv.NonDefaultVPCs++ |
| + } |
| + } |
| + } |
| + gp := ec2.NewDescribeInternetGatewaysPaginator(c.cl.ec2, &ec2.DescribeInternetGatewaysInput{}) |
| + for page := 0; gp.HasMorePages(); page++ { |
| + if page >= maxPages { |
| + return inv, errors.New("DescribeInternetGateways: too many pages") |
| + } |
| + r, err := gp.NextPage(ctx) |
| + if err != nil { |
| + return inv, fmt.Errorf("DescribeInternetGateways: %w", err) |
| + } |
| + for _, g := range r.InternetGateways { |
| + inv.Gateways = append(inv.Gateways, aws.ToString(g.InternetGatewayId)) |
| + } |
| } |
| ip := ec2.NewDescribeInstancesPaginator(c.cl.ec2, &ec2.DescribeInstancesInput{}) |
| for ip.HasMorePages() { |
diff --git a/internal/isolatedjob/awsjob/opsaws/t32_test.go b/internal/isolatedjob/awsjob/opsaws/t32_test.go| new file mode 100644 |
| index 00000000..b9de604d |
| --- /dev/null |
| +++ b/internal/isolatedjob/awsjob/opsaws/t32_test.go |
| @@ -0,0 +1,75 @@ |
| +package opsaws |
| + |
| +import ( |
| + "context" |
| + "fmt" |
| + "slices" |
| + "testing" |
| + |
| + "github.com/aws/aws-sdk-go-v2/aws" |
| + "github.com/aws/aws-sdk-go-v2/service/budgets" |
| + "github.com/aws/aws-sdk-go-v2/service/cloudtrail" |
| + "github.com/aws/aws-sdk-go-v2/service/ec2" |
| + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" |
| + "github.com/aws/aws-sdk-go-v2/service/iam" |
| + vms "github.com/aws/aws-sdk-go-v2/service/lambdamicrovms" |
| + "github.com/aws/aws-sdk-go-v2/service/s3" |
| + "github.com/aws/smithy-go" |
| +) |
| + |
| +// Task 32 (the whole-branch review's fix wave). |
| + |
| +// Finding 5: the inventory lists every VPC, the default one included and |
| +// marked, and every internet gateway, attached or not, unfiltered and over |
| +// every page; the count of non-default VPCs is unchanged. |
| +func TestInventoryListsVPCsAndGateways(t *testing.T) { |
| + cl, _ := openFake(t, func(c call) (any, error) { |
| + switch in := c.In.(type) { |
| + case *ec2.DescribeVpcsInput: |
| + if len(in.Filters) != 0 { |
| + t.Errorf("VPCs listed with filters %v", in.Filters) |
| + } |
| + if in.NextToken == nil { |
| + return &ec2.DescribeVpcsOutput{Vpcs: []ec2types.Vpc{{VpcId: aws.String("vpc-0default"), IsDefault: aws.Bool(true)}}, NextToken: aws.String("p2")}, nil |
| + } |
| + return &ec2.DescribeVpcsOutput{Vpcs: []ec2types.Vpc{{VpcId: aws.String("vpc-0other"), IsDefault: aws.Bool(false)}}}, nil |
| + case *ec2.DescribeInternetGatewaysInput: |
| + if len(in.Filters) != 0 { |
| + t.Errorf("gateways listed with filters %v", in.Filters) |
| + } |
| + if in.NextToken == nil { |
| + return &ec2.DescribeInternetGatewaysOutput{InternetGateways: []ec2types.InternetGateway{{InternetGatewayId: aws.String("igw-0default"), |
| + Attachments: []ec2types.InternetGatewayAttachment{{VpcId: aws.String("vpc-0default")}}}}, NextToken: aws.String("p2")}, nil |
| + } |
| + return &ec2.DescribeInternetGatewaysOutput{InternetGateways: []ec2types.InternetGateway{{InternetGatewayId: aws.String("igw-0loose")}}}, nil |
| + case *ec2.DescribeInstancesInput: |
| + return &ec2.DescribeInstancesOutput{}, nil |
| + case *s3.ListBucketsInput: |
| + return &s3.ListBucketsOutput{}, nil |
| + case *cloudtrail.DescribeTrailsInput: |
| + return &cloudtrail.DescribeTrailsOutput{}, nil |
| + case *budgets.DescribeBudgetsInput: |
| + return &budgets.DescribeBudgetsOutput{}, nil |
| + case *iam.ListRolesInput: |
| + return &iam.ListRolesOutput{}, nil |
| + case *vms.ListMicrovmImagesInput: |
| + return &vms.ListMicrovmImagesOutput{}, nil |
| + case *ec2.GetEbsEncryptionByDefaultInput: |
| + return &ec2.GetEbsEncryptionByDefaultOutput{}, nil |
| + } |
| + if c.Op == "GetPublicAccessBlock" { |
| + return nil, &smithy.GenericAPIError{Code: "NoSuchPublicAccessBlockConfiguration"} |
| + } |
| + return nil, fmt.Errorf("unexpected %s", c.Op) |
| + }) |
| + inv, err := cl.Inventory(context.Background()) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + if !slices.Equal(inv.VPCs, []string{"vpc-0default", "vpc-0other"}) || inv.DefaultVPC != "vpc-0default" || inv.NonDefaultVPCs != 1 { |
| + t.Fatalf("VPCs %v, default %q, %d non-default; want both over two pages, the default marked, 1", inv.VPCs, inv.DefaultVPC, inv.NonDefaultVPCs) |
| + } |
| + if !slices.Equal(inv.Gateways, []string{"igw-0default", "igw-0loose"}) { |
| + t.Fatalf("gateways %v, want both over two pages, attached or not", inv.Gateways) |
| + } |
| +} |