Skip to content

Conversation

@beniaminmunteanu
Copy link
Member

@beniaminmunteanu beniaminmunteanu commented Jul 9, 2025

Changes proposed in this pull request

  • This PR makes use of the testcontainers package in order to create testing runtime docker containers.

It is using the same setup as the backend and auth packages

Checklist

  • Related issues linked using fixes #number
  • Tests added/updated
  • Make sure that all checks pass
  • Bruno collection updated (if necessary)
  • Documentation issue created with user-docs label (if necessary)
  • OpenAPI specs updated (if necessary)

@netlify
Copy link

netlify bot commented Jul 9, 2025

Deploy Preview for brilliant-pasca-3e80ec canceled.

Name Link
🔨 Latest commit 874f615
🔍 Latest deploy log https://app.netlify.com/projects/brilliant-pasca-3e80ec/deploys/686e19ac85db710008c637ca

@github-actions github-actions bot added the type: tests Testing related label Jul 9, 2025
@github-actions
Copy link

github-actions bot commented Jul 9, 2025

🚀 Performance Test Results

Test Configuration:

  • VUs: 4
  • Duration: 1m0s

Test Metrics:

  • Requests/s: 42.53
  • Iterations/s: 14.19
  • Failed Requests: 0.00% (0 of 2559)
📜 Logs

> [email protected] run-tests:testenv /home/runner/work/rafiki/rafiki/test/performance
> ./scripts/run-tests.sh -e test "-k" "-q" "--vus" "4" "--duration" "1m"

Cloud Nine GraphQL API is up: http://localhost:3101/graphql
Cloud Nine Wallet Address is up: http://localhost:3100/
Happy Life Bank Address is up: http://localhost:4100/
cloud-nine-wallet-test-backend already set
cloud-nine-wallet-test-auth already set
happy-life-bank-test-backend already set
happy-life-bank-test-auth already set
     data_received..................: 924 kB 15 kB/s
     data_sent......................: 2.0 MB 33 kB/s
     http_req_blocked...............: avg=6.59µs  min=2.23µs   med=5.26µs   max=587.29µs p(90)=6.35µs   p(95)=6.85µs  
     http_req_connecting............: avg=333ns   min=0s       med=0s       max=280.35µs p(90)=0s       p(95)=0s      
     http_req_duration..............: avg=93.43ms min=7.8ms    med=80.68ms  max=517.02ms p(90)=152.81ms p(95)=179.6ms 
       { expected_response:true }...: avg=93.43ms min=7.8ms    med=80.68ms  max=517.02ms p(90)=152.81ms p(95)=179.6ms 
     http_req_failed................: 0.00%  ✓ 0         ✗ 2559
     http_req_receiving.............: avg=87.24µs min=29.22µs  med=75.51µs  max=1.33ms   p(90)=111.95µs p(95)=148.44µs
     http_req_sending...............: avg=36.71µs min=9.23µs   med=28.27µs  max=1ms      p(90)=40.98µs  p(95)=58.1µs  
     http_req_tls_handshaking.......: avg=0s      min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=93.31ms min=7.62ms   med=80.58ms  max=516.96ms p(90)=152.5ms  p(95)=179.28ms
     http_reqs......................: 2559   42.52834/s
     iteration_duration.............: avg=281.6ms min=194.29ms med=264.15ms max=1.1s     p(90)=354.94ms p(95)=397.5ms 
     iterations.....................: 854    14.192733/s
     vus............................: 4      min=4       max=4 
     vus_max........................: 4      min=4       max=4 

@beniaminmunteanu beniaminmunteanu changed the base branch from main to pos-card-services July 9, 2025 07:27
@beniaminmunteanu beniaminmunteanu changed the title Raf 1115/test container card service feat(card-service): introduce testcontainers for database and redis Jul 9, 2025
@github-actions github-actions bot removed the type: tests Testing related label Jul 9, 2025
@beniaminmunteanu beniaminmunteanu marked this pull request as ready for review July 9, 2025 10:25
@beniaminmunteanu beniaminmunteanu requested a review from njlie July 9, 2025 10:25
@beniaminmunteanu beniaminmunteanu merged commit 7ade8bf into pos-card-services Jul 9, 2025
38 checks passed
@beniaminmunteanu beniaminmunteanu deleted the raf-1115/test-container-card-service branch July 9, 2025 11:50
@beniaminmunteanu beniaminmunteanu self-assigned this Jul 9, 2025
njlie pushed a commit that referenced this pull request Aug 18, 2025
…3533)

* feat(card-service): add testcontainers setup

* chore(cards-service): lockfile

* feat(cards-service): fix test containers setup

* fix(cards-service): fix type issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants