Skip to content
Browse files
Merge pull request #16 from aasaru/call_postman_scripts_from_integrat…

Call postman scripts from integration test
  • Loading branch information
aasaru committed Nov 22, 2019
2 parents ecb02ef + 2966e86 commit c1abb5954a7cbdc3de62021e4c603938511fe603
Showing 3 changed files with 2,709 additions and 1 deletion.
@@ -179,6 +179,12 @@ docker volume rm external_tools_postgres-volume
docker-compose up

## Integration tests
We have a shell script that verifies if the setup still works.
For this install [Newman]( and
run the script ./ It takes about 15minutes to complete.
Beware that the script overwrites contents of .env file.

## Note:
**These scripts are ideal for a docker swarm deployment environment. If you are to deploy Fineract CN using Docker swarm you will have remove the network configuration from the docker-compose script and implement a load balancer (using docker swarm) that reflects the network configuration you just removed from the compose file.**

@@ -1,5 +1,6 @@
#!/usr/bin/env bash

rm .env
cd external_tools
docker-compose stop
docker-compose rm -v -f
@@ -10,20 +11,28 @@ docker volume rm external_tools_postgres-volume
docker-compose pull

docker-compose up -d
echo "Started external tools. Now waiting for them to start up."
sleep 180
cd ..

java -cp external_tools/lang-0.1.0-BUILD-SNAPSHOT.jar UNIX > .env
cat env_variables >> .env
echo "env variables saved into .env"

docker-compose stop
docker-compose rm -f
docker-compose pull

docker-compose up -d provisioner-ms
echo "Started provision-ms. Now waiting it to provision (create schema 'seshat' to Postgres and Cassandra)."
sleep 180

docker-compose up -d rhythm-ms identity-ms customer-ms accounting-ms deposit-ms portfolio-ms office-ms teller-ms fims-web-app
sleep 180
echo "Started set of micro services. Now waiting for them to start up"
sleep 240

echo "Start provisioning the system with Postman scripts."
cd postman_scripts
newman run Fineract-CN-Initial-Requests_PART1.postman_collection.json -e Fineract-Cn-Initial-Setup-Environment.postman_environment.json

echo "Finished."

0 comments on commit c1abb59

Please sign in to comment.