Skip to content

Commit e5d39b9

Browse files
Merge pull request #143 from lenkan/test-integration
running integration tests
2 parents bcd83fc + e972f8f commit e5d39b9

File tree

14 files changed

+486
-280
lines changed

14 files changed

+486
-280
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
19-
os: [ macOS-latest, ubuntu-latest]
19+
os: [macOS-latest, ubuntu-latest]
2020

2121
steps:
2222
- name: Checkout repo
@@ -39,3 +39,23 @@ jobs:
3939
uses: codecov/codecov-action@v3
4040
env:
4141
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
42+
43+
test:
44+
name: Run integration test
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Checkout repo
48+
uses: actions/checkout@v2
49+
50+
- uses: actions/setup-node@v2
51+
with:
52+
node-version: '18.12.1'
53+
cache: 'npm'
54+
- name: install deps
55+
run: npm ci
56+
- name: Build
57+
run: npm run build
58+
- name: Start dependencies
59+
run: docker compose up deps
60+
- name: Run integration test
61+
run: npm run test:integration

config/keria.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"iurls": [
3+
"http://witness-demo:5642/oobi/BBilc4-L3tFUnfM_wJr4S4OJanAv_VmF_dJNN6vkf2Ha/controller?name=Wan&tag=witness",
4+
"http://witness-demo:5643/oobi/BLskRTInXnMxWaGqcpSyMgo0nYbalW99cGZESrz3zapM/controller?name=Wes&tag=witness",
5+
"http://witness-demo:5644/oobi/BIKKuvBwpmDVA4Ds-EpL5bt9OqPzWPja2LigFYZN2YfX/controller?name=Wil&tag=witness"
6+
],
7+
"keria": {
8+
"dt": "2022-01-20T12:57:59.823350+00:00",
9+
"curls": ["http://keria:3902"]
10+
}
11+
}

config/witness-demo/wan.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"dt": "2022-01-20T12:57:59.823350+00:00",
3+
"wan": {
4+
"dt": "2022-01-20T12:57:59.823350+00:00",
5+
"curls": ["tcp://witness-demo:5632/", "http://witness-demo:5642/"]
6+
},
7+
"iurls": []
8+
}

config/witness-demo/wes.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"wes": {
3+
"dt": "2022-01-20T12:57:59.823350+00:00",
4+
"curls": ["tcp://witness-demo:5634/", "http://witness-demo:5644/"]
5+
},
6+
"dt": "2022-01-20T12:57:59.823350+00:00",
7+
"iurls": []
8+
}

config/witness-demo/wil.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"wil": {
3+
"dt": "2022-01-20T12:57:59.823350+00:00",
4+
"curls": ["tcp://witness-demo:5633/", "http://witness-demo:5643/"]
5+
},
6+
"dt": "2022-01-20T12:57:59.823350+00:00",
7+
"iurls": []
8+
}

config/witness-demo/wit.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"wit": {
3+
"dt": "2022-01-20T12:57:59.823350+00:00",
4+
"curls": ["tcp://witness-demo:5635/", "http://witness-demo:5645/"]
5+
},
6+
"dt": "2022-01-20T12:57:59.823350+00:00",
7+
"iurls": []
8+
}

config/witness-demo/wub.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"wub": {
3+
"dt": "2022-01-20T12:57:59.823350+00:00",
4+
"curls": ["tcp://witness-demo:5636/", "http://witness-demo:5646/"]
5+
},
6+
"dt": "2022-01-20T12:57:59.823350+00:00",
7+
"iurls": []
8+
}

config/witness-demo/wyz.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"wyz": {
3+
"dt": "2022-01-20T12:57:59.823350+00:00",
4+
"curls": ["tcp://witness-demo:5637/", "http://witness-demo:5647/"]
5+
},
6+
"dt": "2022-01-20T12:57:59.823350+00:00",
7+
"iurls": []
8+
}

docker-compose.yaml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
services:
2+
vlei-server:
3+
image: gleif/vlei
4+
command:
5+
- vLEI-server
6+
- -s
7+
- ./schema/acdc
8+
- -c
9+
- ./samples/acdc/
10+
- -o
11+
- ./samples/oobis/
12+
healthcheck:
13+
test:
14+
- CMD
15+
- curl
16+
- -f
17+
- http://localhost:7723/oobi/EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao
18+
interval: 2s
19+
timeout: 3s
20+
retries: 5
21+
start_period: 2s
22+
ports:
23+
- 7723:7723
24+
25+
keria:
26+
image: weboftrust/keria:latest
27+
environment:
28+
- KERI_AGENT_CORS=1
29+
- KERI_URL=http://keria:3902
30+
volumes:
31+
- ./config/keria.json:/keria/config/keri/cf/keria.json
32+
entrypoint: keria
33+
command:
34+
- start
35+
- --config-dir
36+
- /keria/config
37+
- --config-file
38+
- keria
39+
- --name
40+
- agent
41+
healthcheck:
42+
test: ['CMD', 'curl', '-f', 'http://localhost:3902/spec.yaml']
43+
interval: 2s
44+
timeout: 3s
45+
retries: 5
46+
start_period: 2s
47+
ports:
48+
- 3901:3901
49+
- 3902:3902
50+
- 3903:3903
51+
52+
witness-demo:
53+
image: weboftrust/keri-witness-demo:1.1.0
54+
healthcheck:
55+
test: ['CMD', 'curl', '-f', 'http://localhost:5642/oobi']
56+
interval: 2s
57+
timeout: 3s
58+
retries: 5
59+
start_period: 2s
60+
volumes:
61+
- ./config/witness-demo:/keripy/scripts/keri/cf/main
62+
ports:
63+
- 5642:5642
64+
- 5643:5643
65+
- 5644:5644
66+
67+
deps:
68+
image: alpine
69+
command: ['echo', 'Dependencies running']
70+
depends_on:
71+
vlei-server:
72+
condition: service_healthy
73+
keria:
74+
condition: service_healthy
75+
witness-demo:
76+
condition: service_healthy

0 commit comments

Comments
 (0)