-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.test-v2.yml
More file actions
92 lines (89 loc) · 3.51 KB
/
docker-compose.test-v2.yml
File metadata and controls
92 lines (89 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
services:
newman:
image: node:22-alpine
working_dir: /app
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- .:/app
- ./reports:/app/reports
environment:
- NODE_ENV=test
- DEV_BASE_URL=${DEV_BASE_URL:-http://host.docker.internal:8000}
- PROD_BASE_URL=${PROD_BASE_URL:-https://stampchain.io}
- NEWMAN_COLLECTION=${NEWMAN_COLLECTION:-tests/postman/collections/comprehensive.json}
- NEWMAN_ENVIRONMENT=${NEWMAN_ENVIRONMENT:-tests/postman/environments/comprehensive.json}
- NEWMAN_REPORTERS=${NEWMAN_REPORTERS:-cli,html,json}
- NEWMAN_ITERATIONS=${NEWMAN_ITERATIONS:-1}
- NEWMAN_DELAY_REQUEST=${NEWMAN_DELAY_REQUEST:-0}
- NEWMAN_TIMEOUT=${NEWMAN_TIMEOUT:-30000}
- NEWMAN_VERBOSE=${NEWMAN_VERBOSE:-false}
- NEWMAN_BAIL=${NEWMAN_BAIL:-false}
- NEWMAN_FOLDER=${NEWMAN_FOLDER:-}
- REPORT_PREFIX=${REPORT_PREFIX:-newman}
command: sh scripts/run-newman-enhanced.sh
# Regression testing - v2.3
newman-regression:
image: node:22-alpine
working_dir: /app
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- .:/app
- ./reports:/app/reports
environment:
- NODE_ENV=test
- DEV_BASE_URL=${DEV_BASE_URL:-http://host.docker.internal:8000}
- PROD_BASE_URL=${PROD_BASE_URL:-https://stampchain.io}
- NEWMAN_COLLECTION=tests/postman/collections/regression-v23.json
- NEWMAN_ENVIRONMENT=${NEWMAN_ENVIRONMENT:-tests/postman/environments/comprehensive.json}
- NEWMAN_REPORTERS=${NEWMAN_REPORTERS:-cli,html,json}
- NEWMAN_ITERATIONS=${NEWMAN_ITERATIONS:-1}
- NEWMAN_DELAY_REQUEST=${NEWMAN_DELAY_REQUEST:-0}
- NEWMAN_TIMEOUT=${NEWMAN_TIMEOUT:-30000}
- NEWMAN_VERBOSE=${NEWMAN_VERBOSE:-false}
- NEWMAN_BAIL=${NEWMAN_BAIL:-false}
- REPORT_PREFIX=newman-regression
command: sh scripts/run-newman-enhanced.sh
# Pagination validation testing
newman-pagination:
image: node:22-alpine
working_dir: /app
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- .:/app
- ./reports:/app/reports
environment:
- NODE_ENV=test
- BASE_URL=${BASE_URL:-https://stampchain.io}
- CURRENT_ENV=${CURRENT_ENV:-prod}
- NEWMAN_COLLECTION=tests/postman/collections/pagination-validation.json
- NEWMAN_ENVIRONMENT=${NEWMAN_ENVIRONMENT:-tests/postman/environments/comprehensive.json}
- NEWMAN_REPORTERS=${NEWMAN_REPORTERS:-cli,html,json}
- NEWMAN_ITERATIONS=${NEWMAN_ITERATIONS:-1}
- NEWMAN_DELAY_REQUEST=${NEWMAN_DELAY_REQUEST:-0}
- NEWMAN_TIMEOUT=${NEWMAN_TIMEOUT:-30000}
- NEWMAN_VERBOSE=${NEWMAN_VERBOSE:-false}
- NEWMAN_BAIL=${NEWMAN_BAIL:-false}
- REPORT_PREFIX=newman-pagination
command: sh scripts/run-newman-pagination-validation-simple.sh
# Smoke testing - quick health check
newman-smoke:
image: node:22-alpine
working_dir: /app
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- .:/app
- ./reports:/app/reports
environment:
- NODE_ENV=test
- BASE_URL=${BASE_URL:-http://host.docker.internal:8000}
- NEWMAN_COLLECTION=tests/postman/collections/smoke.json
- NEWMAN_ENVIRONMENT=${NEWMAN_ENVIRONMENT:-tests/postman/environments/default.json}
- NEWMAN_REPORTERS=${NEWMAN_REPORTERS:-cli,html,json}
- NEWMAN_BAIL=${NEWMAN_BAIL:-true}
- NEWMAN_TIMEOUT=${NEWMAN_TIMEOUT:-5000}
- REPORT_PREFIX=newman-smoke
command: sh scripts/run-newman-enhanced.sh