| index 689cc4cb1..49c68ace8 100644 |
| --- a/internal/registry/forward_writers_test.go |
| +++ b/internal/registry/forward_writers_test.go |
| @@ -319,6 +319,13 @@ func replicaWriterCase(name string) writerCase { |
| func routeWriterCases() []writerCase { |
| ctx := context.Background() |
| cases := []writerCase{ |
| + {name: "DeleteWithdrawnRoute", encloses: []string{"DeleteWithdrawnRoute"}, |
| + setup: func(t *testing.T, r *Registry) (string, writerCall) { |
| + rt := Route{Host: "withdraw.example.com", Account: "bbw", App: "shop", Kind: "instance", Status: "ready", Provisioned: true, Hibernate: true, Pool: "old", Region: "ie", Incarnation: 1} |
| + mustUpsert(t, r, rt) |
| + expected := mustRoute(t, r, rt.Host) |
| + return rt.Host, func(bool) (bool, error) { return r.DeleteWithdrawnRoute(ctx, expected) } |
| + }}, |
| demoClaimSeedWriterCase("CompareSeedGate"), |
| demoClaimSeedWriterCase("DeleteSeedRoute"), |
| replicaWriterCase("SetReplicaAssignment"), |
| @@ -574,6 +581,7 @@ func routeWriterCases() []writerCase { |
| // boolWriters are the cases whose writer answers with a bool: the positive |
| // arm must see true. |
| var boolWriters = map[string]bool{ |
| + "DeleteWithdrawnRoute": true, |
| "DeleteSeedRoute": true, |
| "DeleteReplicaAssignment": true, "ReplaceReplicaAssignment": true, |
| "InstallLifetimeIf": true, "SetHoldIf": true, "SetHoldIfSeq": true, "HandHold": true, "ReleaseHold": true, |