more changes
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 36s
Build and Publish / BuildAndDeployArm64 (push) Successful in 3m59s

This commit is contained in:
matst80
2025-12-01 20:15:48 +01:00
parent c227870f13
commit 060b3dfbf0
22 changed files with 316 additions and 242 deletions

View File

@@ -459,25 +459,25 @@ func TestVoucherMutations(t *testing.T) {
applyErrorContains(t, reg, g, msgRemoveVoucher(firstId), "not applied")
}
func TestCheckoutMutations(t *testing.T) {
reg := newRegistry()
g := newTestGrain()
// func TestCheckoutMutations(t *testing.T) {
// reg := newRegistry()
// g := newTestGrain()
applyOK(t, reg, g, msgInitializeCheckout("ORD-1", "PENDING", true))
if g.OrderReference != "ORD-1" || g.PaymentStatus != "PENDING" || !g.PaymentInProgress {
t.Fatalf("initialize checkout failed: ref=%s status=%s inProgress=%v",
g.OrderReference, g.PaymentStatus, g.PaymentInProgress)
}
// applyOK(t, reg, g, msgInitializeCheckout("ORD-1", "PENDING", true))
// if g.OrderReference != "ORD-1" || g.PaymentStatus != "PENDING" || !g.PaymentInProgress {
// t.Fatalf("initialize checkout failed: ref=%s status=%s inProgress=%v",
// g.OrderReference, g.PaymentStatus, g.PaymentInProgress)
// }
applyOK(t, reg, g, msgOrderCreated("ORD-1", "COMPLETED"))
if g.OrderReference != "ORD-1" || g.PaymentStatus != "COMPLETED" || g.PaymentInProgress {
t.Fatalf("order created mutation failed: ref=%s status=%s inProgress=%v",
g.OrderReference, g.PaymentStatus, g.PaymentInProgress)
}
// applyOK(t, reg, g, msgOrderCreated("ORD-1", "COMPLETED"))
// if g.OrderReference != "ORD-1" || g.PaymentStatus != "COMPLETED" || g.PaymentInProgress {
// t.Fatalf("order created mutation failed: ref=%s status=%s inProgress=%v",
// g.OrderReference, g.PaymentStatus, g.PaymentInProgress)
// }
applyErrorContains(t, reg, g, msgInitializeCheckout("", "X", true), "missing orderId")
applyErrorContains(t, reg, g, msgOrderCreated("", "X"), "missing orderId")
}
// applyErrorContains(t, reg, g, msgInitializeCheckout("", "X", true), "missing orderId")
// applyErrorContains(t, reg, g, msgOrderCreated("", "X"), "missing orderId")
// }
func TestSubscriptionDetailsMutation(t *testing.T) {
reg := newRegistry()