feat: complete cmpp gateway delivery recovery workflows
This commit is contained in:
@@ -34,6 +34,15 @@ func TestSubmitCommandUnmarshalsQueuePriority(t *testing.T) {
|
||||
"registeredDelivery": 1,
|
||||
"msgFmt": 8
|
||||
},
|
||||
"upstream": {
|
||||
"gatewayHost": "127.0.0.1",
|
||||
"gatewayPort": 17890,
|
||||
"account": "account-a",
|
||||
"passwordCipher": "secret",
|
||||
"cmppVersion": "3.0",
|
||||
"desiredConnections": 2,
|
||||
"windowSize": 16
|
||||
},
|
||||
"retry": {
|
||||
"attempt": 0,
|
||||
"maxAttempts": 3
|
||||
@@ -47,4 +56,10 @@ func TestSubmitCommandUnmarshalsQueuePriority(t *testing.T) {
|
||||
if command.QueuePriority != "priority" {
|
||||
t.Fatalf("QueuePriority = %q, want priority", command.QueuePriority)
|
||||
}
|
||||
if command.Upstream.GatewayHost != "127.0.0.1" || command.Upstream.Account != "account-a" {
|
||||
t.Fatalf("unexpected upstream config: %+v", command.Upstream)
|
||||
}
|
||||
if command.Upstream.DesiredConnections != 2 || command.Upstream.WindowSize != 16 {
|
||||
t.Fatalf("unexpected upstream window config: %+v", command.Upstream)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user