From e1b1e2de6545e3eb9d330ec3b17b7a64fa68e22e Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Fri, 29 Oct 2021 17:46:32 +0800 Subject: [PATCH] Add minimal feature sets test Replace original negative test with work test. Now, we can work with the simple test. Signed-off-by: Jerry Yu --- tests/ssl-opt.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index 43759c59e4..0343818bd1 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -8809,12 +8809,10 @@ run_test "TLS1.3: handshake dispatch test: tls1_3 only" \ requires_openssl_tls1_3 requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL requires_config_disabled MBEDTLS_USE_PSA_CRYPTO -run_test "TLS1.3: Test client hello msg work - openssl" \ - "$O_NEXT_SRV -tls1_3 -msg -no_middlebox" \ +run_test "TLS1.3: minimal feature sets - openssl" \ + "$O_NEXT_SRV -msg -tls1_3 -no_middlebox -num_tickets 0 -no_resume_ephemeral -no_cache" \ "$P_CLI debug_level=3 min_version=tls1_3 max_version=tls1_3" \ - 1 \ - -c "SSL - The requested feature is not available" \ - -s "ServerHello" \ + 0 \ -c "tls1_3 client state: 0" \ -c "tls1_3 client state: 2" \ -c "tls1_3 client state: 19" \ @@ -8841,11 +8839,10 @@ requires_gnutls_next_no_ticket requires_gnutls_next_disable_tls13_compat requires_config_enabled MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL requires_config_disabled MBEDTLS_USE_PSA_CRYPTO -run_test "TLS1.3: Test client hello msg work - gnutls" \ +run_test "TLS1.3: minimal feature sets - gnutls" \ "$G_NEXT_SRV --debug=4 --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:+CIPHER-ALL:%NO_TICKETS:%DISABLE_TLS13_COMPAT_MODE --disable-client-cert" \ "$P_CLI debug_level=3 min_version=tls1_3 max_version=tls1_3" \ - 1 \ - -c "SSL - The requested feature is not available" \ + 0 \ -s "SERVER HELLO was queued" \ -c "tls1_3 client state: 0" \ -c "tls1_3 client state: 2" \