Skip to content

Commit 9c161ac

Browse files
committed
make tests more stable
1 parent 0d5592a commit 9c161ac

File tree

7 files changed

+23
-11
lines changed

7 files changed

+23
-11
lines changed

charts/docker-mailserver/tests/__snapshot__/configmap_test.yaml.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ manifest should match snapshot:
2626
3: |
2727
apiVersion: v1
2828
data:
29-
user-patches.sh: "#!/bin/bash\n# Make sure to keep this file in sync with https://github.com/docker-mailserver/docker-mailserver/blob/master/target/postfix/master.cf!\ncat <<EOS >> /etc/postfix/master.cf\n\n# Submission with proxy\n10587 inet n - n - - smtpd\n -o syslog_name=postfix/submission\n -o smtpd_tls_security_level=encrypt\n -o smtpd_sasl_auth_enable=yes\n -o smtpd_sasl_type=dovecot\n -o smtpd_reject_unlisted_recipient=no\n -o smtpd_sasl_authenticated_header=yes\n -o smtpd_client_restrictions=permit_sasl_authenticated,reject\n -o smtpd_relay_restrictions=permit_sasl_authenticated,reject\n -o smtpd_sender_restrictions=\\$mua_sender_restrictions\n -o smtpd_discard_ehlo_keywords=\n -o milter_macro_daemon_name=ORIGINATING\n -o cleanup_service_name=sender-cleanup\n -o smtpd_upstream_proxy_protocol=haproxy \n\n# Submissions with proxy\n10465 inet n - n - - smtpd\n -o syslog_name=postfix/submissions\n -o smtpd_tls_wrappermode=yes\n -o smtpd_sasl_auth_enable=yes\n -o smtpd_sasl_type=dovecot\n -o smtpd_reject_unlisted_recipient=no\n -o smtpd_sasl_authenticated_header=yes\n -o smtpd_client_restrictions=permit_sasl_authenticated,reject\n -o smtpd_relay_restrictions=permit_sasl_authenticated,reject\n -o smtpd_sender_restrictions=\\$mua_sender_restrictions\n -o smtpd_discard_ehlo_keywords=\n -o milter_macro_daemon_name=ORIGINATING\n -o cleanup_service_name=sender-cleanup\n -o smtpd_upstream_proxy_protocol=haproxy\nEOS\n"
29+
user-patches.sh: "#!/bin/bash\n# Make sure to keep this file in sync with https://github.com/docker-mailserver/docker-mailserver/blob/master/target/postfix/master.cf!\ncat <<EOS >> /etc/postfix/master.cf\n\n# Submission with proxy\n10587 inet n - n - - smtpd\n -o syslog_name=postfix/submission\n -o smtpd_tls_security_level=encrypt\n -o smtpd_sasl_auth_enable=yes\n -o smtpd_sasl_type=dovecot\n -o smtpd_reject_unlisted_recipient=no\n -o smtpd_sasl_authenticated_header=yes\n -o smtpd_client_restrictions=permit_sasl_authenticated,reject\n -o smtpd_relay_restrictions=permit_sasl_authenticated,reject\n -o smtpd_sender_restrictions=\\$mua_sender_restrictions\n -o smtpd_discard_ehlo_keywords=\n -o milter_macro_daemon_name=ORIGINATING\n -o cleanup_service_name=sender-cleanup\n -o smtpd_upstream_proxy_protocol=haproxy \n\n# Submissions with proxy\n10465 inet n - n - - smtpd\n -o syslog_name=postfix/submissions\n -o smtpd_tls_wrappermode=yes\n -o smtpd_sasl_auth_enable=yes\n -o smtpd_sasl_type=dovecot\n -o smtpd_reject_unlisted_recipient=no\n -o smtpd_sasl_authenticated_header=yes\n -o smtpd_client_restrictions=permit_sasl_authenticated,reject\n -o smtpd_relay_restrictions=permit_sasl_authenticated,reject\n -o smtpd_sender_restrictions=\\$mua_sender_restrictions\n -o smtpd_discard_ehlo_keywords=\n -o milter_macro_daemon_name=ORIGINATING\n -o cleanup_service_name=sender-cleanup\n -o smtpd_upstream_proxy_protocol=haproxy\n\n# Smtp with proxy\n12525 inet n - n - 1 postscreen\n -o syslog_name=postfix/smtp-proxy\n -o postscreen_upstream_proxy_protocol=haproxy\n -o postscreen_cache_map=btree:$data_directory/postscreen_10025_cache\nEOS\n"
3030
kind: ConfigMap
3131
metadata:
3232
labels:

charts/docker-mailserver/tests/__snapshot__/deployment_test.yaml.snap

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ manifest should match snapshot:
7777
value: "300"
7878
- name: GETMAIL_POLL
7979
value: "5"
80+
- name: LOGROTATE_COUNT
81+
value: "4"
8082
- name: LOGROTATE_INTERVAL
8183
value: weekly
8284
- name: LOG_LEVEL
@@ -85,8 +87,6 @@ manifest should match snapshot:
8587
value: "0"
8688
- name: MOVE_SPAM_TO_JUNK
8789
value: "1"
88-
- name: ONE_DIR
89-
value: "1"
9090
- name: OVERRIDE_HOSTNAME
9191
value: mail.example.com
9292
- name: PERMIT_DOCKER
@@ -117,21 +117,23 @@ manifest should match snapshot:
117117
value: "6"
118118
- name: RSPAMD_LEARN
119119
value: "0"
120+
- name: RSPAMD_NEURAL
121+
value: "0"
120122
- name: SA_KILL
121123
value: "10"
122-
- name: SA_SPAM_SUBJECT
123-
value: '***SPAM*** '
124124
- name: SA_TAG
125125
value: "2"
126126
- name: SA_TAG2
127127
value: "6.31"
128128
- name: SPAMASSASSIN_SPAM_TO_INBOX
129129
value: "1"
130+
- name: SPAM_SUBJECT
131+
value: '***SPAM*** '
130132
- name: SRS_SENDER_CLASSES
131133
value: envelope_sender
132134
- name: UPDATE_CHECK_INTERVAL
133135
value: 1d
134-
image: mailserver/docker-mailserver:13.3.1
136+
image: mailserver/docker-mailserver:0.1.0
135137
imagePullPolicy: IfNotPresent
136138
livenessProbe:
137139
exec:
@@ -150,6 +152,8 @@ manifest should match snapshot:
150152
name: submissions
151153
- containerPort: 587
152154
name: submission
155+
- containerPort: 12525
156+
name: smtp-proxy
153157
- containerPort: 10465
154158
name: subs-proxy
155159
- containerPort: 10587

charts/docker-mailserver/tests/__snapshot__/secret_test.yaml.snap

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ manifest should match snapshot:
7777
value: "300"
7878
- name: GETMAIL_POLL
7979
value: "5"
80+
- name: LOGROTATE_COUNT
81+
value: "4"
8082
- name: LOGROTATE_INTERVAL
8183
value: weekly
8284
- name: LOG_LEVEL
@@ -85,8 +87,6 @@ manifest should match snapshot:
8587
value: "0"
8688
- name: MOVE_SPAM_TO_JUNK
8789
value: "1"
88-
- name: ONE_DIR
89-
value: "1"
9090
- name: OVERRIDE_HOSTNAME
9191
value: mail.example.com
9292
- name: PERMIT_DOCKER
@@ -117,21 +117,23 @@ manifest should match snapshot:
117117
value: "6"
118118
- name: RSPAMD_LEARN
119119
value: "0"
120+
- name: RSPAMD_NEURAL
121+
value: "0"
120122
- name: SA_KILL
121123
value: "10"
122-
- name: SA_SPAM_SUBJECT
123-
value: '***SPAM*** '
124124
- name: SA_TAG
125125
value: "2"
126126
- name: SA_TAG2
127127
value: "6.31"
128128
- name: SPAMASSASSIN_SPAM_TO_INBOX
129129
value: "1"
130+
- name: SPAM_SUBJECT
131+
value: '***SPAM*** '
130132
- name: SRS_SENDER_CLASSES
131133
value: envelope_sender
132134
- name: UPDATE_CHECK_INTERVAL
133135
value: 1d
134-
image: mailserver/docker-mailserver:13.3.1
136+
image: mailserver/docker-mailserver:0.1.0
135137
imagePullPolicy: IfNotPresent
136138
livenessProbe:
137139
exec:
@@ -150,6 +152,8 @@ manifest should match snapshot:
150152
name: submissions
151153
- containerPort: 587
152154
name: submission
155+
- containerPort: 12525
156+
name: smtp-proxy
153157
- containerPort: 10465
154158
name: subs-proxy
155159
- containerPort: 10587

charts/docker-mailserver/tests/configmap_test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ templates:
33
- configmap.yaml
44
chart:
55
version: 0.1.0
6+
appVersion: 0.1.0
67
values:
78
- ../values.yaml
89
tests:

charts/docker-mailserver/tests/deployment_test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ templates:
33
- deployment.yaml
44
chart:
55
version: 0.1.0
6+
appVersion: 0.1.0
67
values:
78
- ../values.yaml
89
tests:

charts/docker-mailserver/tests/pvc_test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ values:
55
- ../values.yaml
66
chart:
77
version: 0.1.0
8+
appVersion: 0.1.0
89
tests:
910
- it: should apply annotations from persistence.annotations
1011
set:

charts/docker-mailserver/tests/secret_test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ templates:
44
- deployment.yaml
55
chart:
66
version: 1.0.0
7+
appVersion: 0.1.0
78
values:
89
- ../values.yaml
910
tests:

0 commit comments

Comments
 (0)