Skip to content

Commit

Permalink
REGTESTS: update the ocsp-update tests
Browse files Browse the repository at this point in the history
Update the ocsp-update tests for the recent changes:

- "tune.ssl.ocsp-update.mode" was renamed iin "ocsp-update.mode"
- Incompatibilities check string changed
  • Loading branch information
wlallemand committed May 7, 2024
1 parent c0338fb commit 2a6e1ae
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
6 changes: 3 additions & 3 deletions reg-tests/ssl/ocsp_auto_update.vtc
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ haproxy h7 -conf {
tune.ssl.capture-buffer-size 1
stats socket "${tmpdir}/h7/stats" level admin
crt-base ${testdir}
tune.ssl.ocsp-update.mode on
ocsp-update.mode on
log ${Syslog_ocsp7_addr}:${Syslog_ocsp7_port} local0 notice notice

defaults
Expand Down Expand Up @@ -653,7 +653,7 @@ haproxy h8 -cli {
# Check that the auto update option consistency check work even when crt-list
# lines are added through the cli
shell {
printf "add ssl crt-list ${testdir}/ocsp_update/multicert_both_certs.crt-list <<\nmulticert/server_ocsp.pem.ecdsa foo.foo\n\n" | socat "${tmpdir}/h8/stats" - | grep "Incompatibilities found in OCSP update mode for certificate"
printf "add ssl crt-list ${testdir}/ocsp_update/multicert_both_certs.crt-list <<\nmulticert/server_ocsp.pem.ecdsa foo.foo\n\n" | socat "${tmpdir}/h8/stats" - | grep "different parameter 'ocsp-update' : 'on' vs 'off'"
}

haproxy h8 -wait
Expand Down Expand Up @@ -723,7 +723,7 @@ shell {
# Check that the line is in the crt-list
haproxy h9 -cli {
send "show ssl crt-list ${testdir}/ocsp_update/multicert_ecdsa_no_update.crt-list"
expect ~ "${testdir}/ocsp_update/rsa.pem .* foo.bar"
expect ~ "${testdir}/ocsp_update/rsa.pem.*ocsp-update off.*foo.bar"
}

# Check that the new certificate is NOT in the auto update list
Expand Down
50 changes: 25 additions & 25 deletions reg-tests/ssl/ocsp_compat_check.vtc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# broken with BoringSSL.
#
# This reg-test tries loading multiple configurations that make use of the
# 'ocsp-update' crt-list option and the global 'tune.ssl.ocsp-update.mode'
# 'ocsp-update' crt-list option and the global 'ocsp-update.mode'
# option. It ensures that an error message is raised when the user provides an
# incoherent configuration. Any configuration in which a given certificate has
# the ocsp auto update mode set to 'on' as well as 'off' simultaneously should
Expand Down Expand Up @@ -37,7 +37,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
# tune.ssl.ocsp-update.mode on
# ocsp-update.mode on

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -65,7 +65,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode on
ocsp-update.mode on

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -93,7 +93,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode off
ocsp-update.mode off

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -121,7 +121,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
# tune.ssl.ocsp-update.mode off
# ocsp-update.mode off

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -150,7 +150,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode on
ocsp-update.mode on

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -179,7 +179,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode off
ocsp-update.mode off

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -210,7 +210,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
# tune.ssl.ocsp-update.mode off
# ocsp-update.mode off

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -240,7 +240,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
# tune.ssl.ocsp-update.mode off
# ocsp-update.mode off

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -270,7 +270,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode on
ocsp-update.mode on

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -300,7 +300,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode on
ocsp-update.mode on

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -330,7 +330,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode off
ocsp-update.mode off

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -360,7 +360,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode off
ocsp-update.mode off

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -397,7 +397,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
# tune.ssl.ocsp-update.mode on
# ocsp-update.mode on

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -425,7 +425,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode on
ocsp-update.mode on

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -453,7 +453,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode off
ocsp-update.mode off

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -481,7 +481,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
# tune.ssl.ocsp-update.mode off
# ocsp-update.mode off

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -510,7 +510,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode on
ocsp-update.mode on

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -539,7 +539,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode off
ocsp-update.mode off

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -570,7 +570,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
# tune.ssl.ocsp-update.mode off
# ocsp-update.mode off

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -600,7 +600,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
# tune.ssl.ocsp-update.mode off
# ocsp-update.mode off

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -630,7 +630,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode on
ocsp-update.mode on

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -660,7 +660,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode on
ocsp-update.mode on

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -690,7 +690,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode off
ocsp-update.mode off

defaults
log stderr local0 debug err
Expand Down Expand Up @@ -720,7 +720,7 @@ EOF
cat << EOF > ${tmpdir}/ocsp_compat_check.cfg
global
crt-base ${testdir}/ocsp_update/multicert
tune.ssl.ocsp-update.mode off
ocsp-update.mode off

defaults
log stderr local0 debug err
Expand Down

0 comments on commit 2a6e1ae

Please sign in to comment.