Start Mongo Docker container as follows:
docker run --rm -d -p 27017:27017 --name mongo percona/percona-server-mongodb:5.0Start PILLAR_2_ALL services as follows:
sm2 --start PILLAR_2_ALLRun tests as follows:
/usr/bin/env bash /Users/prsat/Desktop/Project/pillar2-api-tests/run_tests_local.shCheck all project files are formatted as expected as follows:
sbt scalafmtCheckAll scalafmtCheckFormat *.sbt and project/*.scala files as follows:
sbt scalafmtSbtFormat all project files as follows:
sbt scalafmtAllTo run zap tests for any of the services, download from https://www.zaproxy.org/download/, extract and execute the following in the root of the extracted folder:
./zap.sh -daemon -config api.disablekey=true -port 11000
and run below command to run security tests locally:
./run_zap_tests_local.sh
./run_tests.sh
This code is open source software licensed under the Apache 2.0 License.