fix: reconcile shared-channel receipts and protocol logs
This commit is contained in:
@@ -139,6 +139,8 @@ func TestInboundServerAuthenticatesAndSubmits(t *testing.T) {
|
||||
}
|
||||
acknowledgements <- event
|
||||
w.WriteHeader(http.StatusOK)
|
||||
case "/api/gateway/events/protocol-log":
|
||||
_ = json.NewEncoder(w).Encode(map[string]bool{"accepted": true})
|
||||
default:
|
||||
t.Fatalf("unexpected api path: %s", r.URL.Path)
|
||||
}
|
||||
@@ -316,6 +318,8 @@ func TestInboundServerForwardsLongMessageFragmentsWithoutUDHAndAcknowledgesEachS
|
||||
_ = json.NewEncoder(w).Encode([]pendingDelivery{})
|
||||
case "/api/gateway/events/inbound/connection":
|
||||
w.WriteHeader(http.StatusOK)
|
||||
case "/api/gateway/events/protocol-log":
|
||||
_ = json.NewEncoder(w).Encode(map[string]bool{"accepted": true})
|
||||
default:
|
||||
t.Fatalf("unexpected api path: %s", r.URL.Path)
|
||||
}
|
||||
@@ -410,6 +414,8 @@ func TestSubmitResponsePrecedesQueuedFailureReceipt(t *testing.T) {
|
||||
}})
|
||||
case "/api/gateway/events/inbound/connection", "/api/gateway/events/downstream/sent":
|
||||
w.WriteHeader(http.StatusOK)
|
||||
case "/api/gateway/events/protocol-log":
|
||||
_ = json.NewEncoder(w).Encode(map[string]bool{"accepted": true})
|
||||
default:
|
||||
t.Fatalf("unexpected api path: %s", r.URL.Path)
|
||||
}
|
||||
@@ -467,6 +473,8 @@ func TestDailyLimitRejectsSubmitSynchronouslyWithoutPendingReceipt(t *testing.T)
|
||||
_ = json.NewEncoder(w).Encode([]pendingDelivery{})
|
||||
case "/api/gateway/events/inbound/connection":
|
||||
w.WriteHeader(http.StatusOK)
|
||||
case "/api/gateway/events/protocol-log":
|
||||
_ = json.NewEncoder(w).Encode(map[string]bool{"accepted": true})
|
||||
default:
|
||||
t.Fatalf("unexpected api path: %s", r.URL.Path)
|
||||
}
|
||||
@@ -562,6 +570,8 @@ func TestInboundServerNegotiatesCMPP2AndUsesAuthenticatedAccountForSubmit(t *tes
|
||||
_ = json.NewEncoder(w).Encode([]pendingDelivery{})
|
||||
case "/api/gateway/events/inbound/connection":
|
||||
w.WriteHeader(http.StatusOK)
|
||||
case "/api/gateway/events/protocol-log":
|
||||
_ = json.NewEncoder(w).Encode(map[string]bool{"accepted": true})
|
||||
default:
|
||||
t.Fatalf("unexpected api path: %s", r.URL.Path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user