Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broker integration test #397

Closed
wants to merge 5 commits into from
Closed

Broker integration test #397

wants to merge 5 commits into from

Conversation

WilliamPetit
Copy link
Collaborator

Configured Maven to run integration Test for the Broker

Integration test require Docker containers running the MySql DB, RabbitMQ and the Workers.

Travis has been setup to start the requires Docker containers

Created a very basic integration Test: VaultsServiceIT.java
to give an example of what needs to be done.

I've created a a Docker Container file which should start 3 containers:
- mysql
- rabbitMQ
- worker

I've reconfigured Travis in order to start this docker container before
the build.

I've added some simple integration test for the broker:
datavault-broker/src/test/java/org/datavaultplatform/broker/services/VaultsServiceIT.java

The test is creating one Vault and checking it has been added to the
database using the VaultService.
Made a few cahnges to the Dockerfile, supervisor config and
docker-compose file.
RabbitMQ contaienr seems to not be ready when the test are running.
In order to make sure that the workers start with RabbitMQ ready, I've
added a script checking that service is running.
ssue #396 (RSS022-74) - Wait for containerus#	new file:   docker/wait-for-rabbitmq.sh
@WilliamPetit
Copy link
Collaborator Author

Closing because the build on Travis actually failed. I've fixed the problem as part of another issue #398 which also contain these code changes. I'll create a new PR with both CI and integration tests changes.

@WilliamPetit WilliamPetit deleted the broker-integration-test branch March 21, 2018 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants