fix: Generate Stripe idempotency keys server-side #1046
Triggered via pull request
December 9, 2024 19:39
sashko9807
synchronize
#680
Status
Failure
Total duration
16s
Artifacts
–
check-pr-fork.yml
on: pull_request_target
Check label
7s
Security tests
/
Build and scan api container image
Security tests
/
Build and scan migrations container image
Annotations
2 errors and 1 warning
Check label
Process completed with exit code 1.
|
StripeController ► StripeController should subscription without creating new customer,products ► StripeController should subscription without creating new customer,products:
apps/api/src/stripe/stripe.controller.spec.ts#L239
Failed test found in:
test-results.xml
Error:
Error: {"matcherResult":{"message":"expect(received).rejects.toThrow(expected)\n\nExpected message: \"Campaign cannot accept donations in state: complete\"\nReceived message: \"crypto is not defined\"\n\n 195 | email,\n 196 | })\n > 197 | const idempotencyKey = crypto.randomUUID()\n | ^\n 198 | const customer = customerLookup.data[0]\n 199 | //Customer not found. Create new onw\n 200 | if (!customer)\n\n at StripeService.createCustomer (apps/api/src/stripe/stripe.service.ts:197:28)\n at StripeService.setupIntentToSubscription (apps/api/src/stripe/stripe.service.ts:136:22)\n at Object.<anonymous> (apps/api/src/stripe/stripe.controller.spec.ts:232:7)","pass":false},"message":"expect(received).rejects.toThrow(expected)\n\nExpected message: \"Campaign cannot accept donations in state: complete\"\nReceived message: \"crypto is not defined\"\n\n 195 | email,\n 196 | })\n > 197 | const idempotencyKey = crypto.randomUUID()\n | ^\n 198 | const customer = customerLookup.data[0]\n 199 | //Customer not found. Create new onw\n 200 | if (!customer)\n\n at StripeService.createCustomer (apps/api/src/stripe/stripe.service.ts:197:28)\n at StripeService.setupIntentToSubscription (apps/api/src/stripe/stripe.service.ts:136:22)\n at Object.<anonymous> (apps/api/src/stripe/stripe.controller.spec.ts:232:7)"}
|
Check label
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|