Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:

steps:
- uses: actions/checkout@v7
with:
persist-credentials: false

- name: Docker version info
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:

steps:
- uses: actions/checkout@v7
with:
persist-credentials: false

- name: Docker version info
run: |
Expand All @@ -38,6 +40,8 @@ jobs:
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false

- name: Install packages used during container testing
run: |
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ services:
- 80:8080
- 443:8443
volumes:
- ./testing/test_settings.py:/venv/lib64/python3.12/site-packages/tcms_settings_dir/test_settings.py:z,ro
- ./testing/test_settings.py:/venv/lib64/python3.14/site-packages/tcms_settings_dir/test_settings.py:z,ro
environment:
KIWI_DB_ENGINE: django.db.backends.postgresql
KIWI_DB_HOST: postgres_17
Expand Down
4 changes: 2 additions & 2 deletions testing/test_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ rlJournalStart

rlPhaseStartTest "Sanity test - DB allows SSL connections - Kiwi TCMS initial_setup"
# need to monkey-patch createsuperuser.py b/c it rejects input when not using a TTY
rlRun -t -c 'docker exec -i web sed -i "s/raise NotRunningInTTYException/pass/" /venv/lib64/python3.12/site-packages/django/contrib/auth/management/commands/createsuperuser.py'
rlRun -t -c 'docker exec -i web sed -i "s/getpass.getpass/input/" /venv/lib64/python3.12/site-packages/django/contrib/auth/management/commands/createsuperuser.py'
rlRun -t -c 'docker exec -i web sed -i "s/raise NotRunningInTTYException/pass/" /venv/lib64/python3.14/site-packages/django/contrib/auth/management/commands/createsuperuser.py'
rlRun -t -c 'docker exec -i web sed -i "s/getpass.getpass/input/" /venv/lib64/python3.14/site-packages/django/contrib/auth/management/commands/createsuperuser.py'

rlRun -t -c 'echo -e "super-root\nroot@example.com\nsecret-2a9a34cd-e51d-4039-b709-b45f629a5595\nsecret-2a9a34cd-e51d-4039-b709-b45f629a5595\n" | docker exec -i web /Kiwi/manage.py initial_setup --database postgres_17'
rlRun -t -c 'echo -e "super-root\nroot@example.com\nsecret-2a9a34cd-e51d-4039-b709-b45f629a5595\nsecret-2a9a34cd-e51d-4039-b709-b45f629a5595\n" | docker exec -i web /Kiwi/manage.py initial_setup --database postgres_18'
Expand Down