diff --git a/deployments/test/docker-compose.yaml b/deployments/test/docker-compose.yaml index 0f498a0..2e6731e 100644 --- a/deployments/test/docker-compose.yaml +++ b/deployments/test/docker-compose.yaml @@ -18,50 +18,50 @@ services: timeout: 2s retries: 10 -# need update! -# test-pena-auth-service: -# image: penahub.gitlab.yandexcloud.net:5050/pena-services/pena-auth-service:staging.872 -# container_name: test-pena-auth-service -# init: true -# env_file: auth.env.test -# healthcheck: -# test: wget -T1 --spider http://localhost:8000/user -# interval: 2s -# timeout: 2s -# retries: 5 -# environment: -# - DB_HOST=test-pena-auth-db -# - DB_PORT=27017 -# - ENVIRONMENT=staging -# - HTTP_HOST=0.0.0.0 -# - HTTP_PORT=8000 -# - DB_USERNAME=test -# - DB_PASSWORD=test -# - DB_NAME=admin -# - DB_AUTH=admin -# # ports: -# # - 8000:8000 -# depends_on: -# - test-pena-auth-db -# # - pena-auth-migration -# networks: -# - penatest -# -# test-pena-auth-db: -# container_name: test-pena-auth-db -# init: true -# image: "mongo:6.0.3" -# command: mongod --quiet --logpath /dev/null -# volumes: -# - test-mongodb:/data/db -# - test-mongoconfdb:/data/configdb -# environment: -# MONGO_INITDB_ROOT_USERNAME: test -# MONGO_INITDB_ROOT_PASSWORD: test -# # ports: -# # - 27017:27017 -# networks: -# - penatest + # need update! + # test-pena-auth-service: + # image: penahub.gitlab.yandexcloud.net:5050/pena-services/pena-auth-service:staging.872 + # container_name: test-pena-auth-service + # init: true + # env_file: auth.env.test + # healthcheck: + # test: wget -T1 --spider http://localhost:8000/user + # interval: 2s + # timeout: 2s + # retries: 5 + # environment: + # - DB_HOST=test-pena-auth-db + # - DB_PORT=27017 + # - ENVIRONMENT=staging + # - HTTP_HOST=0.0.0.0 + # - HTTP_PORT=8000 + # - DB_USERNAME=test + # - DB_PASSWORD=test + # - DB_NAME=admin + # - DB_AUTH=admin + # # ports: + # # - 8000:8000 + # depends_on: + # - test-pena-auth-db + # # - pena-auth-migration + # networks: + # - penatest + # + # test-pena-auth-db: + # container_name: test-pena-auth-db + # init: true + # image: "mongo:6.0.3" + # command: mongod --quiet --logpath /dev/null + # volumes: + # - test-mongodb:/data/db + # - test-mongoconfdb:/data/configdb + # environment: + # MONGO_INITDB_ROOT_USERNAME: test + # MONGO_INITDB_ROOT_PASSWORD: test + # # ports: + # # - 27017:27017 + # networks: + # - penatest test-minio: container_name: test-minio @@ -78,16 +78,16 @@ services: init: true build: context: ../.. - dockerfile: testDockerfile + dockerfile: TestsDockerfile depends_on: test-postgres: condition: service_healthy -# test-pena-auth-service: -# condition: service_healthy + # test-pena-auth-service: + # condition: service_healthy # volumes: # - ./../..:/app:ro - # command: [ "go", "test", "./test", "-run", "TestFoo" ] - command: [ "go", "test", "-parallel", "1", "./test" ] + # command: [ "go", "test", "./tests", "-run", "TestFoo" ] + command: [ "go", "test", "-parallel", "1", "./tests" ] networks: - penatest