JAVA-73: Move scripts under live-test-resources

This commit is contained in:
Krzysiek 2020-04-23 22:18:45 +02:00
parent 20ee51ef36
commit acf4fa5af9
5 changed files with 10 additions and 10 deletions

View File

@ -1,9 +0,0 @@
=========
## Spring Data MongoDB Live Testing
There are 3 scripts to simplify running live tests:
1. `live-test-setup.sh` builds a docker image with the necessary setup and runs it. The environment is ready, when the log stops - it takes approximately 30 seconds.
2. `live-test.sh` runs the live tests (but no other tests).
3. `live-test-setup.sh` stops and removes the docker image.

View File

@ -13,3 +13,12 @@
- [Spring Data Annotations](http://www.baeldung.com/spring-data-annotations)
- [Spring Data MongoDB Transactions](https://www.baeldung.com/spring-data-mongodb-transactions )
- [ZonedDateTime with Spring Data MongoDB](https://www.baeldung.com/spring-data-mongodb-zoneddatetime)
## Spring Data MongoDB Live Testing
There are 3 scripts to simplify running live tests:
1. [`live-test-setup.sh`](src/live-test/resources/live-test-setup.sh) builds a docker image with the necessary setup and runs it. The environment is ready, when the log stops - it takes approximately 30 seconds.
2. [`live-test.sh`](src/live-test/resources/live-test.sh) runs the live tests (but no other tests).
3. [`live-test-teardown.sh`](src/live-test/resources/live-test-teardown.sh) stops and removes the docker image.

View File

@ -1,5 +1,5 @@
#!/bin/bash
docker image build -t spring-data-mongodb:live-test src/live-test/resources/
docker image build -t spring-data-mongodb:live-test .
docker run -p 27017:27017 --name spring-data-mongodb-live-test spring-data-mongodb:live-test