@@ -11,7 +11,7 @@ DDPATH=./docker_data
1111SIERRA_FIXTURE_PATH=./django/sierra/base/fixtures
1212SCRIPTNAME=" $( basename " $0 " ) "
1313DEV_SERVICES=(" default-db-dev" " solr-dev" " redis-celery" " redis-appdata-dev" " app" " celery-worker" )
14- TEST_SERVICES=(" default-db-test" " sierra-db-test" " solr-test" " redis-appdata-test" )
14+ TEST_SERVICES=(" default-db-test" " sierra-db-test" " solr-test" " redis-appdata-test" " test " )
1515ALL_SERVICES=(" ${DEV_SERVICES[@]} " " ${TEST_SERVICES[@]} " )
1616
1717# ## FUNCTIONS ###
@@ -29,7 +29,7 @@ function show_help {
2929 echo " -v Only run volume setup on host machine (skip migrations). Cannot be"
3030 echo " used with -m."
3131 echo " group Provide one argument to set up multiple services. Must be \" all\" ,"
32- echo " \" dev\" , or \" test \" . \" all\" sets up all services."
32+ echo " \" dev\" , or \" tests \" . \" all\" sets up all services."
3333 echo " service One or more service names to initialize. Note that services are set up"
3434 echo " in the order specified. Use -s to see more info about services."
3535 echo " "
@@ -75,23 +75,26 @@ function show_services {
7575 echo " The celery-worker service that runs in development. A log directory is set"
7676 echo " up. No migrations."
7777 echo " "
78- echo " default-db-test -- test "
78+ echo " default-db-test -- tests "
7979 echo " The default Django MariaDB database for a test environment. Migrations are"
8080 echo " needed to set up the needed Django apps. This must be set up and migrated"
8181 echo " before you run initial migrations on sierra-db-test."
8282 echo " "
83- echo " sierra-db-test -- test "
83+ echo " sierra-db-test -- tests "
8484 echo " The sierra PostGreSQL database for a test environment. Migrations are"
8585 echo " needed to install sierra test fixtures. But, before you run migrations for"
8686 echo " the first time on sierra-db-test, you must make sure that default-db-test"
8787 echo " is set up and migrated."
8888 echo " "
89- echo " solr-test -- test "
89+ echo " solr-test -- tests "
9090 echo " Empty instance of Solr for a test environment. No migrations (yet)."
9191 echo " "
92- echo " redis-appdata-test -- test "
92+ echo " redis-appdata-test -- tests "
9393 echo " Redis instance that stores some app data in test. No migrations (yet)."
9494 echo " "
95+ echo " test -- tests"
96+ echo " Log and media directories are set up for the test environment. No "
97+ echo " migrations."
9598 exit 1
9699}
97100
@@ -273,7 +276,7 @@ for arg in $@; do
273276 dev)
274277 user_services+=(" ${DEV_SERVICES[@]} " )
275278 ;;
276- test )
279+ tests )
277280 user_services+=(" ${TEST_SERVICES[@]} " )
278281 ;;
279282 * )
@@ -337,6 +340,10 @@ for service in ${user_services[@]}; do
337340 celery-worker)
338341 paths=(" $DDPATH /celery_worker/logs" )
339342 ;;
343+ test)
344+ paths=(" $DDPATH /test/logs"
345+ " $DDPATH /test/media" )
346+ ;;
340347 * )
341348 echo " "
342349 echo " Warning: Skipping \` $service \` . Either it is not a valid service, or it does not use data volumes."
0 commit comments