...
After a device in state DISCOVERED has been found ZTP will automatically start and then the rest of integration tests will run. After the integration tests has completed you will get a prompt to continue, if you want to log in to VMs or docker containers to check some results or errors now is a good time, otherwise press Enter to continue. Next the script will wait for jobs to finish and then run some unit tests. Once all this is completed the code coverage results will be gathered and optionally uploaded to codecov.io. Code coverage reports will be mapped to your currently checked out branch of git.
Troubleshooting
After running integrationtests.sh 5 containers should be started. You can check their status with the command "docker ps":
Code Block |
---|
[johanmarcusson@indy-x1 docker]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9d1c5ecd239e docker_cnaas_dhcpd "/bin/sh -c 'supervi…" 3 minutes ago Up 3 minutes 0.0.0.0:67->67/udp docker_cnaas_dhcpd_1
0b71d9f984b1 docker_cnaas_api "/bin/sh -c 'supervi…" 3 minutes ago Up 3 minutes 0.0.0.0:443->1443/tcp docker_cnaas_api_1
d21cfc296bc0 docker.sunet.se/auth-server-poc:latest "/bin/sh -c 'supervi…" 3 minutes ago Up 3 minutes 0.0.0.0:2443->1443/tcp docker_cnaas_auth_1
d933a4324e1c docker.sunet.se/cnaas/httpd "/bin/sh -c 'supervi…" 3 minutes ago Up 3 minutes 1443/tcp, 0.0.0.0:80->1180/tcp docker_cnaas_httpd_1
6b3bee0d55ce docker_cnaas_postgres "docker-entrypoint.s…" 9 days ago Up 9 days 0.0.0.0:5432->5432/tcp docker_cnaas_postgres_1
53c953d2db8f docker_cnaas_redis "docker-entrypoint.s…" 9 days ago Up 9 days 0.0.0.0:6379->6379/tcp docker_cnaas_redis_1 |
If you have some other service running on port tcp 443 or udp 67 for example that container will not be able to start. Use "netstat -anp | grep <port>" to find out what program on your computer might be conflicting with the container and stop it.
To rebuild just the API container you can use the command:
docker-compose build --no-cache cnaas_api
Or if you want to try build a specific branch:
docker-compose build --no-cache --build-arg BUILDBRANCH=feature.myfeature cnaas_api
Resetting / rerun of tests
...