package resolution import ( "testing" "git.novox.be/novox/mesh-delivery/contracts/go/clients/meshdeliveryclient" ) // Each verb release 6 removed from the delivery seat is a row refusing it by name with the replacement the seat's client // gives (the list is the contract's, not the SDK's: novox/hq ADR 0634 ยง2), and the rows are exactly those verbs. func TestTheDeliverySeatRefusesTheRemovedVerbsByNameWithTheClientsReplacement(t *testing.T) { removed := meshdeliveryclient.RemovedVerbs() rows := 0 for _, v := range deliveryVerbs() { want, isRemoved := removed[v.Name] if !isRemoved { continue } rows++ if v.Description != meshdeliveryclient.RemovedPrefix+want || !v.Optional { t.Errorf("%s = %q (optional %v), want %q", v.Name, v.Description, v.Optional, meshdeliveryclient.RemovedPrefix+want) } } if rows != len(removed) { t.Errorf("%d rows refuse a removed verb, the client names %d", rows, len(removed)) } if len(removed) != 5 { t.Errorf("the removed verbs are %v", removed) } }