- Run CAPIF services using
sudo ./run.sh
in the CAPIF directory inside the services folder - Then start the NEF emulator using
make up
in the NEF directory - Make sure the NetApp is not already registered in the mongodb (http://0.0.0.0:8082/db/capif/user)
- Execute
docker-compose build && docker-compose up
from this directory. The three containers should start. In order for the NetApp to be functional, the keycloak instance must fully load (1-2 min).
-
In another terminal use the command:
docker exec iqb_netapp python -m unittest NetApp-v3
-
Further Testing: Open Postman and load the collection
Dockerizedv4.postman_collection.json
.
In order to test callbacks use the container's name (callbacks:5002) unless the callbacks server is running independently on the host.
docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq)
docker stop iqb_netapp \
&& docker rm iqb_netapp \
&& docker build --tag iqb_netapp_img . \
&& docker run --name iqb_netapp --net=services_default -p 5000:5000 iqb_netapp_img
docker stop iqb_netapp && docker rm iqb_netapp && docker build --tag iqb_netapp_img . && docker run --name iqb_netapp --net=services_default -p 5000:5000 iqb_netapp_img