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

CI: Develop a test harness for a worker (RSS022-73) #398

Open
WilliamPetit opened this issue Nov 24, 2017 · 1 comment
Open

CI: Develop a test harness for a worker (RSS022-73) #398

WilliamPetit opened this issue Nov 24, 2017 · 1 comment
Assignees

Comments

@WilliamPetit
Copy link
Collaborator

  1. Build the harness "framework"
  2. Define some tests
  3. Test on some big data sets
@WilliamPetit WilliamPetit self-assigned this Nov 24, 2017
WilliamPetit added a commit that referenced this issue Nov 24, 2017
I've setup Maven and Travis to run some integration Test for the Workers

I've wrote a first IT test (i.e. WokerInstanceIT.java) which:
* Send a predefined Task to RabbitMQ
* Check progress messages sent by the Worker
* Check the output tar file

Test pass onto my machine, gioing to push it in order to test it on Travis
@WilliamPetit
Copy link
Collaborator Author

I've made some progress with this.
I've configured Maven to run the integration test for datavault-worker
I've created a new test which feed RabbitMQ with some task and listen the messages sent onto the "datavault-events" channel t make sure the worker is doing his job.
Once completed, it checks the created tar file.

I've tested it on my machine and it seemed to work fine but there seems to be some problem when the test run on Travis.

WilliamPetit added a commit that referenced this issue Nov 24, 2017
In order to avoid the test hanging while waiting for RabbitMQ message
from the worker, if no message has been sent after 1 minute the test
will just fail.

I also moved all the dependencies in the main .pom file

I add to comment out @DataJpaTest as it was causing some errors during
the test.
WilliamPetit added a commit that referenced this issue Dec 13, 2017
I've added the config.properties file to the resources for test and
other config file as I wonder if it's the reason causing test to fail on
Travis.
WilliamPetit added a commit that referenced this issue Dec 13, 2017
I was using `mvn integration-test` instead of `mvn verify`
post-integration-test would not get execute and therefore the
build would never actually fail.
WilliamPetit added a commit that referenced this issue Dec 13, 2017
I've setup Maven and Travis to run some integration Test for the Workers

I've wrote a first IT test (i.e. WokerInstanceIT.java) which:
* Send a predefined Task to RabbitMQ
* Check progress messages sent by the Worker
* Check the output tar file

Test pass onto my machine, gioing to push it in order to test it on Travis
WilliamPetit added a commit that referenced this issue Dec 13, 2017
In order to avoid the test hanging while waiting for RabbitMQ message
from the worker, if no message has been sent after 1 minute the test
will just fail.

I also moved all the dependencies in the main .pom file

I add to comment out @DataJpaTest as it was causing some errors during
the test.
WilliamPetit added a commit that referenced this issue Dec 13, 2017
I've added the config.properties file to the resources for test and
other config file as I wonder if it's the reason causing test to fail on
Travis.
WilliamPetit added a commit that referenced this issue Dec 13, 2017
I was using `mvn integration-test` instead of `mvn verify`
post-integration-test would not get execute and therefore the
build would never actually fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant