Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running integration tests #143

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macOS-latest, ubuntu-latest]
os: [macOS-latest, ubuntu-latest]

steps:
- name: Checkout repo
Expand All @@ -39,3 +39,23 @@ jobs:
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

test:
name: Run integration test
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '18.12.1'
cache: 'npm'
- name: install deps
run: npm ci
- name: Build
run: npm run build
- name: Start dependencies
run: docker compose up deps
- name: Run integration test
run: npm run test:integration
11 changes: 11 additions & 0 deletions config/keria.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"iurls": [
"http://witness-demo:5642/oobi/BBilc4-L3tFUnfM_wJr4S4OJanAv_VmF_dJNN6vkf2Ha/controller?name=Wan&tag=witness",
"http://witness-demo:5643/oobi/BLskRTInXnMxWaGqcpSyMgo0nYbalW99cGZESrz3zapM/controller?name=Wes&tag=witness",
"http://witness-demo:5644/oobi/BIKKuvBwpmDVA4Ds-EpL5bt9OqPzWPja2LigFYZN2YfX/controller?name=Wil&tag=witness"
],
"keria": {
"dt": "2022-01-20T12:57:59.823350+00:00",
"curls": ["http://keria:3902"]
}
}
8 changes: 8 additions & 0 deletions config/witness-demo/wan.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"dt": "2022-01-20T12:57:59.823350+00:00",
"wan": {
"dt": "2022-01-20T12:57:59.823350+00:00",
"curls": ["tcp://witness-demo:5632/", "http://witness-demo:5642/"]
},
"iurls": []
}
8 changes: 8 additions & 0 deletions config/witness-demo/wes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"wes": {
"dt": "2022-01-20T12:57:59.823350+00:00",
"curls": ["tcp://witness-demo:5634/", "http://witness-demo:5644/"]
},
"dt": "2022-01-20T12:57:59.823350+00:00",
"iurls": []
}
8 changes: 8 additions & 0 deletions config/witness-demo/wil.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"wil": {
"dt": "2022-01-20T12:57:59.823350+00:00",
"curls": ["tcp://witness-demo:5633/", "http://witness-demo:5643/"]
},
"dt": "2022-01-20T12:57:59.823350+00:00",
"iurls": []
}
8 changes: 8 additions & 0 deletions config/witness-demo/wit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"wit": {
"dt": "2022-01-20T12:57:59.823350+00:00",
"curls": ["tcp://witness-demo:5635/", "http://witness-demo:5645/"]
},
"dt": "2022-01-20T12:57:59.823350+00:00",
"iurls": []
}
8 changes: 8 additions & 0 deletions config/witness-demo/wub.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"wub": {
"dt": "2022-01-20T12:57:59.823350+00:00",
"curls": ["tcp://witness-demo:5636/", "http://witness-demo:5646/"]
},
"dt": "2022-01-20T12:57:59.823350+00:00",
"iurls": []
}
8 changes: 8 additions & 0 deletions config/witness-demo/wyz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"wyz": {
"dt": "2022-01-20T12:57:59.823350+00:00",
"curls": ["tcp://witness-demo:5637/", "http://witness-demo:5647/"]
},
"dt": "2022-01-20T12:57:59.823350+00:00",
"iurls": []
}
76 changes: 76 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
services:
vlei-server:
image: gleif/vlei
command:
- vLEI-server
- -s
- ./schema/acdc
- -c
- ./samples/acdc/
- -o
- ./samples/oobis/
healthcheck:
test:
- CMD
- curl
- -f
- http://localhost:7723/oobi/EBfdlu8R27Fbx-ehrqwImnK-8Cm79sqbAQ4MmvEAYqao
interval: 2s
timeout: 3s
retries: 5
start_period: 2s
ports:
- 7723:7723

keria:
image: weboftrust/keria:latest
environment:
- KERI_AGENT_CORS=1
- KERI_URL=http://keria:3902
volumes:
- ./config/keria.json:/keria/config/keri/cf/keria.json
entrypoint: keria
command:
- start
- --config-dir
- /keria/config
- --config-file
- keria
- --name
- agent
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3902/spec.yaml']
interval: 2s
timeout: 3s
retries: 5
start_period: 2s
ports:
- 3901:3901
- 3902:3902
- 3903:3903

witness-demo:
image: weboftrust/keri-witness-demo:1.1.0
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:5642/oobi']
interval: 2s
timeout: 3s
retries: 5
start_period: 2s
volumes:
- ./config/witness-demo:/keripy/scripts/keri/cf/main
ports:
- 5642:5642
- 5643:5643
- 5644:5644

deps:
image: alpine
command: ['echo', 'Dependencies running']
depends_on:
vlei-server:
condition: service_healthy
keria:
condition: service_healthy
witness-demo:
condition: service_healthy
Loading
Loading