payment tests
Some checks failed
Deploy / build-deploy (push) Failing after 4m58s

This commit is contained in:
Jorijn van der Graaf 2026-08-20 01:36:42 +02:00
commit 45992c4f91
10 changed files with 670 additions and 13 deletions

View file

@ -268,6 +268,25 @@ extern "C" Configuration CrafterBuildProject(std::span<const std::string_view> a
.Requires("tool:gpg")
.Timeout(std::chrono::seconds(180));
// ── live-provider suites ──────────────────────────────────────
// The two payment rails against their REAL counterparts: Mollie's
// API on a test-mode key, and the EURC rail settling an actual
// on-chain transfer on Base Sepolia. Both are MANDATORY deploy
// gates in CI (the workflow supplies MOLLIE_TEST_API_KEY and
// EURC_E2E_PRIVATE_KEY, and the suites fail there if either is
// missing); locally they skip unless those variables are exported.
// That gate lives in the suites themselves rather than in a
// Requires() — a Requires would skip silently when the credential
// vanished, which is exactly the pass this gate must never give.
// Timeouts cover real network: Mollie is a few round trips; the
// EURC suite waits out block inclusion plus the rail's 30 s poll.
cfg.AddTest("ShouldCreateMollieTestPayments", harness)
.Dependencies({ &cfg, shared, network }).Args({ serverBin })
.Timeout(std::chrono::seconds(120));
cfg.AddTest("ShouldSettleEurcOnTestnet", harness)
.Dependencies({ &cfg, shared, network }).Args({ serverBin })
.Timeout(std::chrono::seconds(300));
return cfg;
}