File tree 3 files changed +14
-6
lines changed
3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 8
8
env :
9
9
# Use short project name, otherwise inspect output is messy
10
10
COMPOSE_PROJECT_NAME : wl
11
- TEST_EXTRA_ENV : ' WEBLATE_SAML_IDP_URL: https://example.com/idp'
12
11
13
12
steps :
14
13
- uses : actions/checkout@v4
15
14
- name : Test content
16
15
run : ./test-content
17
16
- name : Generate configuration
18
- run : ./test-generate 8080 http
17
+ run : ./test-generate 8080 http saml
19
18
- name : Startup container
20
19
run : ./test-boot
21
20
- name : List Python packages
33
32
- name : Test admin creation
34
33
run : ./test-admin
35
34
- name : Verify SAML certificate
36
- run : ./test-saml
35
+ run : ./test-saml saml
37
36
- name : Run commands
38
37
run : ./test-commands
39
38
- name : Display logs
47
46
env :
48
47
# Use short project name, otherwise inspect output is messy
49
48
COMPOSE_PROJECT_NAME : wl
50
- TEST_EXTRA_ENV : ' WEBLATE_SAML_IDP_URL: https://example.com/idp'
51
49
52
50
steps :
53
51
- uses : actions/checkout@v4
70
68
- name : Test admin creation
71
69
run : ./test-admin
72
70
- name : Verify SAML certificate
73
- run : ./test-saml
71
+ run : ./test-saml read-write
74
72
- name : Run commands
75
73
run : ./test-commands
76
74
- name : Display logs
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ if [ " $3 " = " saml" ] ; then
3
+ TEST_EXTRA_ENV=' WEBLATE_SAML_IDP_URL: https://example.com/idp'
4
+ else
5
+ TEST_EXTRA_ENV=' '
6
+ fi
7
+
2
8
cat > docker-compose.override.yml << EOT
3
9
services:
4
10
weblate:
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- docker compose exec -T weblate openssl x509 -in /app/data/ssl/saml.crt -text -noout
2
+ if [ " $1 " = " saml" ] ; then
3
+ docker compose exec -T weblate openssl x509 -in /app/data/ssl/saml.crt -text -noout
4
+ else
5
+ docker compose exec -T weblate test -not -f /app/data/ssl/saml.crt
6
+ fi
You can’t perform that action at this time.
0 commit comments