From 2813503858d0a09e1637142266f7f7e9904a8aaa Mon Sep 17 00:00:00 2001 From: kirill-sizov Date: Mon, 22 Aug 2022 17:30:24 +0300 Subject: [PATCH] fix container name --- .github/workflows/full.yml | 2 +- .github/workflows/main.yml | 1 - .github/workflows/schedule.yml | 2 +- site/content/en/docs/contributing/running-tests.md | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/full.yml b/.github/workflows/full.yml index c4748f30..349a27ae 100644 --- a/.github/workflows/full.yml +++ b/.github/workflows/full.yml @@ -327,7 +327,7 @@ jobs: DJANGO_SU_EMAIL: 'admin@localhost.company' DJANGO_SU_PASSWORD: '12qwaszx' run: | - docker exec -i cvat /bin/bash -c "echo \"from django.contrib.auth.models import User; User.objects.create_superuser('${DJANGO_SU_NAME}', '${DJANGO_SU_EMAIL}', '${DJANGO_SU_PASSWORD}')\" | python3 ~/manage.py shell" + docker exec -i cvat_server /bin/bash -c "echo \"from django.contrib.auth.models import User; User.objects.create_superuser('${DJANGO_SU_NAME}', '${DJANGO_SU_EMAIL}', '${DJANGO_SU_PASSWORD}')\" | python3 ~/manage.py shell" cd ./tests yarn --frozen-lockfile diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 713e1bc3..358b7ef4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -289,7 +289,6 @@ jobs: DJANGO_SU_PASSWORD: '12qwaszx' run: | docker exec -i cvat_server /bin/bash -c "echo \"from django.contrib.auth.models import User; User.objects.create_superuser('${DJANGO_SU_NAME}', '${DJANGO_SU_EMAIL}', '${DJANGO_SU_PASSWORD}')\" | python3 ~/manage.py shell" - cd ./tests yarn --frozen-lockfile diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index 5b82913d..ef521a79 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -357,7 +357,7 @@ jobs: DJANGO_SU_EMAIL: "admin@localhost.company" DJANGO_SU_PASSWORD: "12qwaszx" run: | - docker exec -i cvat /bin/bash -c "echo \"from django.contrib.auth.models import User; User.objects.create_superuser('${DJANGO_SU_NAME}', '${DJANGO_SU_EMAIL}', '${DJANGO_SU_PASSWORD}')\" | python3 ~/manage.py shell" + docker exec -i cvat_server /bin/bash -c "echo \"from django.contrib.auth.models import User; User.objects.create_superuser('${DJANGO_SU_NAME}', '${DJANGO_SU_EMAIL}', '${DJANGO_SU_PASSWORD}')\" | python3 ~/manage.py shell" - name: Run tests run: | diff --git a/site/content/en/docs/contributing/running-tests.md b/site/content/en/docs/contributing/running-tests.md index 65fda3ba..7435ebe9 100644 --- a/site/content/en/docs/contributing/running-tests.md +++ b/site/content/en/docs/contributing/running-tests.md @@ -18,7 +18,7 @@ description: 'Instructions on how to run all existence tests.' ``` 1. Add test user in CVAT: ``` - docker exec -i cvat \ + docker exec -i cvat_server \ /bin/bash -c \ "echo \"from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@localhost.company', '12qwaszx')\" | python3 ~/manage.py shell" ```