forked from 5GEVE/mso-lo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test-onap.yml
37 lines (36 loc) · 1.07 KB
/
docker-compose.test-onap.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
version: '3.6'
services:
prism-onap:
image: stoplight/prism:3.1.1
command: mock --host 0.0.0.0 --port 9999 /etc/onap-api.yaml
volumes:
- ./adaptation_layer/tests/onap-api.yaml:/etc/onap-api.yaml
networks:
mso-lo-net:
aliases:
- prism-onap
# export prism port for debugging
ports:
- 9999:9999
test-onap:
build:
context: .
target: test
args:
DB_SEED_NFVO: adaptation_layer/seed/nfvo_mock.json
DB_SEED_NFVO_CRED: adaptation_layer/seed/nfvo_credentials_mock.json
DB_SEED_RANO: adaptation_layer/seed/rano_mock.json
DB_SEED_RANO_CRED: adaptation_layer/seed/rano_credentials_mock.json
depends_on:
- prism-onap
environment:
TESTING: "True"
PRISM_ALIAS: prism-onap
OPENAPI_PATH: ./openapi/MSO-LO-swagger-resolved.yaml
command: ["adaptation_layer/tests/wait-for-it.sh", "prism-onap:9999", "--", "pytest", "-v", "adaptation_layer/tests/test_onap.py"]
networks:
mso-lo-net:
aliases:
- test-onap
networks:
mso-lo-net: