Skip to content

Commit c4e2182

Browse files
committed
doc
1 parent 2e2825a commit c4e2182

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

services/api-server/Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,5 @@ test-api: ## Runs schemathesis against development server (NOTE: make up-devel f
9595
"$(APP_URL)/api/v0/openapi.json"
9696

9797

98-
test-pacts: guard-PACT_BROKER_USERNAME guard-PACT_BROKER_PASSWORD guard-PACT_BROKER_URL _check_venv_active ## Test pacts
98+
test-pacts: guard-PACT_BROKER_USERNAME guard-PACT_BROKER_PASSWORD guard-PACT_BROKER_URL _check_venv_active ## Test pacts. Usage: PACT_BROKER_USERNAME=your_username PACT_BROKER_PASSWORD=your_password PACT_BROKER_URL=your_broker_url make test-pacts
9999
pytest tests/unit/pact_broker/test*
100-
101-
# Usage:
102-
# PACT_BROKER_USERNAME=your_username \
103-
# PACT_BROKER_PASSWORD=your_password \
104-
# PACT_BROKER_URL=your_broker_url \
105-
# make test-pacts

services/api-server/tests/unit/pact_broker/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
# Contract testing (PACT)
22

3-
Maintainer @matusdrobuliak66
3+
- Maintainer @matusdrobuliak66
4+
5+
## How to run this test as a provider?
46

57
```bash
6-
PACT_BROKER_URL=<fill-broker-url> PACT_BROKER_USERNAME=<fill-username> PACT_BROKER_PASSWORD=<fill-secret> make test-pacts
8+
PACT_BROKER_URL=<fill-broker-url> PACT_BROKER_USERNAME=<fill-username> PACT_BROKER_PASSWORD=<fill-secret>
9+
10+
make test-pacts
711
```
812

9-
## Install and Publish new contract to Broker
13+
14+
## How to install and Publish new contract to Broker?
1015

1116
Contracts are generated by Consumer (ex. Sim4Life)
12-
TODO: add reference to Sim4life repo where they can be generated
1317

14-
#### Install
18+
### Install
1519

1620
```bash
1721
npm install @pact-foundation/pact-cli

0 commit comments

Comments
 (0)