Skip to content

Commit 04b486b

Browse files
Add mediator and simple client implementation (#977)
Add mediator agent and simple client implementation (#977) Signed-off-by: Naian <126972030+nain-F49FF806@users.noreply.github.com>
1 parent dbaac13 commit 04b486b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+6646
-54
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ jobs:
289289
rust-toolchain-version: ${{ env.RUST_TOOLCHAIN_VERSON }}
290290
skip-docker-setup: true
291291
- name: "Run workspace unit tests"
292-
run: RUST_TEST_THREADS=1 cargo test --workspace --lib --exclude aries-vcx-agent --exclude libvdrtools --exclude wallet_migrator
292+
run: RUST_TEST_THREADS=1 cargo test --workspace --lib --exclude aries-vcx-agent --exclude libvdrtools --exclude wallet_migrator --exclude mediator
293293

294294
test-integration-aries-vcx:
295295
needs: workflow-setup
@@ -402,6 +402,8 @@ jobs:
402402
- name: "Run integration tests"
403403
run: (cd agents/node/vcxagent-core && AGENCY_URL=http://localhost:8080 npm run test:integration)
404404

405+
406+
405407
##########################################################################################
406408
############################ NPMJS PUBLISHING #######################################
407409

.github/workflows/mediator.pr.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI mediator
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- "**"
10+
paths:
11+
- 'agents/rust/mediator/**'
12+
13+
env:
14+
DOCKER_BUILDKIT: 1
15+
MAIN_BRANCH: main
16+
URL_DOCKER_REGISTRY: ghcr.io
17+
DOCKER_IMAGE_AGENCY: ghcr.io/absaoss/vcxagencynode/vcxagency-node:2.6.0
18+
DOCKER_IMAGE_POOL: ghcr.io/hyperledger/aries-vcx/indy_pool_localhost:1.15.0
19+
20+
DOCKER_REPO_LOCAL_VDRPROXY: vdrproxy
21+
22+
RUST_TOOLCHAIN_VERSON: 1.70.0
23+
NODE_VERSION: 18.x
24+
25+
jobs:
26+
27+
test-integration-mediator:
28+
runs-on: ubuntu-22.04
29+
services:
30+
mysql:
31+
image: mysql:latest
32+
env:
33+
MYSQL_DATABASE: mediator-persistence.mysql
34+
MYSQL_USER: admin
35+
MYSQL_PASSWORD: github.ci.password.no.prod
36+
MYSQL_ROOT_PASSWORD: github.ci.password.no.prod
37+
ports:
38+
- '3326:3306'
39+
env:
40+
MYSQL_URL: mysql://admin:github.ci.password.no.prod@localhost:3326/mediator-persistence.mysql
41+
steps:
42+
- name: "Git checkout"
43+
uses: actions/checkout@v3
44+
- name: "Setup rust testing environment"
45+
uses: ./.github/actions/setup-testing-rust
46+
with:
47+
rust-toolchain-version: ${{ env.RUST_TOOLCHAIN_VERSON }}
48+
skip-docker-setup: true
49+
skip-vdrproxy-setup: true
50+
- name: Install prerequisites (sqlx)
51+
# uses: Swatinem/rust-cache@v2
52+
run: cargo install sqlx-cli
53+
- name: Setup database
54+
run: DATABASE_URL=${MYSQL_URL} sqlx migrate run --source agents/rust/mediator/mediation/migrations
55+
- name: "Run mediator integration tests"
56+
run: cargo run --bin mediator & sleep 5 && cargo test --verbose --package mediator -- --nocapture;

0 commit comments

Comments
 (0)