]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
TEST: Avoid using just 'example.com' - test_cmp_http
authorRichard Levitte <levitte@openssl.org>
Fri, 21 May 2021 04:07:25 +0000 (06:07 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 24 May 2021 12:38:40 +0000 (14:38 +0200)
We have reports that some are using example.com in their /etc/hosts
for testing purposes, so we can't necessarily assume that those will
fail.

We fix it by using "random" hosts in that domain.

Fixes #15395

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15398)

test/recipes/80-test_cmp_http_data/Mock/test.cnf
test/recipes/80-test_cmp_http_data/test_connection.csv

index 503ded18e384edeb57e88a0499d8b525ba8914f4..8c8913b3c9a7f26d209422c8d61cf414f8050ae3 100644 (file)
@@ -135,6 +135,6 @@ subjectAltName = @alt_names_3
 
 [alt_names_3]
 DNS.0 = localhost
-DNS.1 = example.com
-DNS.2 = example2.com
-DNS__3 = example3.com
+DNS.1 = xn--rksmrgs-5wao1o.example.com
+DNS.2 = xn--rkmacka-5wa.example.com
+DNS__3 = xn--rksallad-0za.example.com
index 55670cf446dab4c5abacc393b74b6dab8c508211..33a572a29da1ad9333d5adee83b8c23e3f2a4e35 100644 (file)
@@ -5,7 +5,7 @@ expected,description, -section,val, -server,val, -proxy,val, -no_proxy,val, -tls
 TBD,Domain name, -section,, -server,_SERVER_CN:_SERVER_PORT,,,,,,,,,,,,,,
 TBD,IP address, -section,, -server,_SERVER_IP:_SERVER_PORT,,,,,,,,,,,,,,
 ,,,,,,,,,,,,,,,,,,,
-0,wrong server, -section,, -server,example.com:_SERVER_PORT,,,,,BLANK,,,, -msg_timeout,1,BLANK,,BLANK,
+0,wrong server, -section,, -server,xn--rksmrgs-5wao1o.example.com:_SERVER_PORT,,,,,BLANK,,,, -msg_timeout,1,BLANK,,BLANK,
 0,wrong server port, -section,, -server,_SERVER_HOST:99,,,,,BLANK,,,, -msg_timeout,1,BLANK,,BLANK,
 0,server default port, -section,, -server,_SERVER_HOST,,,,,BLANK,,,, -msg_timeout,1,BLANK,,BLANK,
 0,server port out of range, -section,, -server,_SERVER_HOST:65536,,,,,BLANK,,,,BLANK,,BLANK,,BLANK,