forked from nordic-institute/X-Road
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusage_scenario.yml
65 lines (63 loc) · 2.12 KB
/
usage_scenario.yml
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
---
name: X-Road initialization scenario
author: Raido Kaju <[email protected]>
description: Sets up the X-Road instance for GMT testing
compose-file: !include Docker/xrd-dev-stack/compose.yaml
services:
cs:
image: ghcr.io/nordic-institute/xrddev-central-server:latest
ss0:
image: ghcr.io/nordic-institute/xrddev-security-server:latest
ss1:
image: ghcr.io/nordic-institute/xrddev-security-server:latest
testca:
image: ghcr.io/nordic-institute/xrddev-testca:latest
issoap:
image: niis/example-adapter:latest
isrest:
volumes:
- ./Docker/xrd-dev-stack/wiremock_mappings:/home/wiremock/mappings
hurl:
build:
context: ./Docker/xrd-dev-stack/.
dockerfile: ./hurl/Dockerfile
volumes:
- ./Docker/xrd-dev-stack/hurl-src:/hurl-src:ro
- ca-volume:/hurl-files/ca:ro
# Workaround to keep the hurl container running so that we can do the setup, which runs an exec command
command: --interactive hurl-src/setup.hurl
setup-commands:
- hurl --insecure --variables-file /hurl-src/vars.env --file-root /hurl-files /hurl-src/setup.hurl --very-verbose --retry 18 --retry-interval 10000
tester:
image: alpine
volumes:
- ./Docker/xrd-dev-stack/gmt-test-suite:/tests:ro
# Workaround to keep the container running, not sure why it drops otherwise
command: tail -f /dev/null
setup-commands:
- apk add --no-cache curl bash
flow:
- name: Test with 100
container: tester
commands:
- type: console
command: /tests/run-tests.sh /tests 100 100
note: Run 100 sequential and 100 parallel requests
log-stdout: false
log-stderr: true
- name: Test with 200
container: tester
commands:
- type: console
command: /tests/run-tests.sh /tests 200 200
note: Run 200 sequential and 200 parallel requests
log-stdout: false
log-stderr: true
- name: Test with 500
container: tester
commands:
- type: console
command: /tests/run-tests.sh /tests 500 500
note: Run 500 sequential and 500 parallel requests
log-stdout: false
log-stderr: true