Skip to content

Commit 8b07a9b

Browse files
authored
Merge pull request #52572 from nextcloud/fix/noid/flaky-sso-tests
2 parents d692f39 + 99d23a4 commit 8b07a9b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/files-external-smb-kerberos.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,18 @@ jobs:
8383
run: |
8484
apps/files_external/tests/sso-setup/test-sso-smb.sh ${{ env.DC_IP }}
8585
86+
- name: Show logs DC
87+
if: always()
88+
run: |
89+
docker logs dc
90+
echo "------------"
91+
docker exec dc cat /var/log/samba/log.samba
92+
93+
- name: Show logs Apache
94+
if: always()
95+
run: |
96+
docker logs apache
97+
8698
- name: Show logs
8799
if: always()
88100
run: |

apps/files_external/tests/sso-setup/start-apache.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ APACHE_IP=$(docker inspect apache --format '{{.NetworkSettings.IPAddress}}')
1515
docker exec apache chown 33 /var/www/html/config /var/www/html/data /var/www/html/extra-apps
1616
docker cp "$SCRIPT_DIR/apps.config.php" apache:/var/www/html/config/apps.config.php
1717

18+
# ensure that samba is started (see https://github.com/icewind1991/samba-krb-test/pull/8)
19+
docker exec dc service samba-ad-dc status || docker exec dc service samba-ad-dc start
20+
1821
# add the dns record for apache
1922
docker exec dc samba-tool dns add krb.domain.test domain.test httpd A $APACHE_IP -U administrator --password=passwOrd1 1>&2
2023

0 commit comments

Comments
 (0)