summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2023-03-09 11:29:56 +0100
committerMarcel Raad <Marcel.Raad@teamviewer.com>2023-03-09 14:33:05 +0100
commit29a19369ec49b8fdc58097b0adf93583678607a2 (patch)
tree256f6671049e2b04ef7574cb25098257e2f2ee16
parent387dbe53c4a1bd710ac0b94097808de54c176ede (diff)
downloadcurl-29a19369ec49b8fdc58097b0adf93583678607a2.tar.gz
tests: add `cookies` features
These tests don't work with `--disable-cookies`. Closes https://github.com/curl/curl/pull/10713
-rw-r--r--tests/data/test10243
-rw-r--r--tests/data/test10253
-rw-r--r--tests/data/test11041
-rw-r--r--tests/data/test11053
-rw-r--r--tests/data/test11513
-rw-r--r--tests/data/test11553
-rw-r--r--tests/data/test11603
-rw-r--r--tests/data/test11613
-rw-r--r--tests/data/test12161
-rw-r--r--tests/data/test12181
-rw-r--r--tests/data/test12281
-rw-r--r--tests/data/test12583
-rw-r--r--tests/data/test13311
-rw-r--r--tests/data/test14081
-rw-r--r--tests/data/test14151
-rw-r--r--tests/data/test1711
-rw-r--r--tests/data/test1723
-rw-r--r--tests/data/test1791
-rw-r--r--tests/data/test19053
-rw-r--r--tests/data/test273
-rw-r--r--tests/data/test313
-rw-r--r--tests/data/test3273
-rw-r--r--tests/data/test3293
-rw-r--r--tests/data/test3311
-rw-r--r--tests/data/test3923
-rw-r--r--tests/data/test4203
-rw-r--r--tests/data/test4423
-rw-r--r--tests/data/test4433
-rw-r--r--tests/data/test4443
-rw-r--r--tests/data/test463
-rw-r--r--tests/data/test533
-rw-r--r--tests/data/test5983
-rw-r--r--tests/data/test63
-rw-r--r--tests/data/test613
-rw-r--r--tests/data/test623
-rw-r--r--tests/data/test6763
-rw-r--r--tests/data/test733
-rw-r--r--tests/data/test83
-rw-r--r--tests/data/test9771
39 files changed, 95 insertions, 0 deletions
diff --git a/tests/data/test1024 b/tests/data/test1024
index 5fba9d325..d8ceff10a 100644
--- a/tests/data/test1024
+++ b/tests/data/test1024
@@ -77,6 +77,9 @@ HTTP Location: following with cookies
<command>
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L -c log/jar%TESTNUMBER
</command>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test1025 b/tests/data/test1025
index 5f96e1123..ef0b33fb0 100644
--- a/tests/data/test1025
+++ b/tests/data/test1025
@@ -77,6 +77,9 @@ HTTP Location: following with command-line and server cookies
<command>
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L -c log/jar%TESTNUMBER -b forcedcookie=yes
</command>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test1104 b/tests/data/test1104
index 27c43009e..0d89bde8e 100644
--- a/tests/data/test1104
+++ b/tests/data/test1104
@@ -62,6 +62,7 @@ HTTP cookie expiry date at Jan 1 00:00:00 GMT 1970
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L -x %HOSTIP:%HTTPPORT -c log/cookies%TESTNUMBER.jar
</command>
<features>
+cookies
proxy
</features>
</client>
diff --git a/tests/data/test1105 b/tests/data/test1105
index 396933838..73a33a3c5 100644
--- a/tests/data/test1105
+++ b/tests/data/test1105
@@ -40,6 +40,9 @@ HTTP with cookie parser and header recording
<precheck>
perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
</precheck>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test1151 b/tests/data/test1151
index c31382c9e..52e912ef9 100644
--- a/tests/data/test1151
+++ b/tests/data/test1151
@@ -41,6 +41,9 @@ HTTP with too long cookies
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c log/cookies%TESTNUMBER.txt
</command>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test1155 b/tests/data/test1155
index 65d76b6f5..011d310f5 100644
--- a/tests/data/test1155
+++ b/tests/data/test1155
@@ -30,6 +30,9 @@ HTTP cookie with parameter word as name
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c log/cookies%TESTNUMBER.txt
</command>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test1160 b/tests/data/test1160
index e24ce93e1..7e31aa5dc 100644
--- a/tests/data/test1160
+++ b/tests/data/test1160
@@ -31,6 +31,9 @@ HTTP with long funny format cookie
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c log/cookies%TESTNUMBER.txt
</command>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test1161 b/tests/data/test1161
index 89c1e657c..88ed491da 100644
--- a/tests/data/test1161
+++ b/tests/data/test1161
@@ -30,6 +30,9 @@ HTTP cookie with path set twice
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c log/cookies%TESTNUMBER.txt
</command>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test1216 b/tests/data/test1216
index 6686c758a..0b1bad606 100644
--- a/tests/data/test1216
+++ b/tests/data/test1216
@@ -40,6 +40,7 @@ example.fake FALSE /c FALSE 2139150993 moo2 indeed
example.fake TRUE /c FALSE 2139150993 moo3 indeed
</file>
<features>
+cookies
proxy
</features>
</client>
diff --git a/tests/data/test1218 b/tests/data/test1218
index ff8023348..e176c47fa 100644
--- a/tests/data/test1218
+++ b/tests/data/test1218
@@ -33,6 +33,7 @@ HTTP cookies and domains with same prefix
http://example.fake/c/%TESTNUMBER http://example.fake/c/%TESTNUMBER http://bexample.fake/c/%TESTNUMBER -b nonexisting -x %HOSTIP:%HTTPPORT
</command>
<features>
+cookies
proxy
</features>
</client>
diff --git a/tests/data/test1228 b/tests/data/test1228
index 2a7faff48..d33b74289 100644
--- a/tests/data/test1228
+++ b/tests/data/test1228
@@ -32,6 +32,7 @@ HTTP cookie path match
http://example.fake/hoge/%TESTNUMBER http://example.fake/hogege/ -b nonexisting -x %HOSTIP:%HTTPPORT
</command>
<features>
+cookies
proxy
</features>
</client>
diff --git a/tests/data/test1258 b/tests/data/test1258
index a4cef156c..5a4ce0b73 100644
--- a/tests/data/test1258
+++ b/tests/data/test1258
@@ -32,6 +32,9 @@ HTTP, use cookies with localhost
<command>
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want?hoge=fuga -b non-existing -H "Host: localhost"
</command>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test1331 b/tests/data/test1331
index 4ef0c14df..7683d6272 100644
--- a/tests/data/test1331
+++ b/tests/data/test1331
@@ -65,6 +65,7 @@ HTTP --proxy-anyauth and 407 with cookies
-U myname:mypassword -x %HOSTIP:%HTTPPORT http://z.x.com/%TESTNUMBER --proxy-anyauth -c log/dump%TESTNUMBER
</command>
<features>
+cookies
proxy
</features>
</client>
diff --git a/tests/data/test1408 b/tests/data/test1408
index d4f40f72e..adecc9bf5 100644
--- a/tests/data/test1408
+++ b/tests/data/test1408
@@ -39,6 +39,7 @@ Set-Cookie: time=2
# Client-side
<client>
<features>
+cookies
ipv6
</features>
<server>
diff --git a/tests/data/test1415 b/tests/data/test1415
index 79b14e6bd..7d460be23 100644
--- a/tests/data/test1415
+++ b/tests/data/test1415
@@ -47,6 +47,7 @@ TZ=GMT
http://example.com/we/want/%TESTNUMBER -b none -c log/jar%TESTNUMBER.txt -x %HOSTIP:%HTTPPORT
</command>
<features>
+cookies
proxy
</features>
</client>
diff --git a/tests/data/test171 b/tests/data/test171
index c4f5b6c40..dc46fe287 100644
--- a/tests/data/test171
+++ b/tests/data/test171
@@ -34,6 +34,7 @@ HTTP, get cookie with dot prefixed full domain
-c log/jar%TESTNUMBER -x %HOSTIP:%HTTPPORT http://z.x.com/%TESTNUMBER
</command>
<features>
+cookies
proxy
</features>
</client>
diff --git a/tests/data/test172 b/tests/data/test172
index 9dbe64c23..276856ae0 100644
--- a/tests/data/test172
+++ b/tests/data/test172
@@ -38,6 +38,9 @@ http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -b log/jar%TESTNUMBER.txt -b "tool=
.%HOSTIP TRUE / FALSE 0 partmatch present
%HOSTIP FALSE /we/want/ FALSE 2139150993 nodomain value
</file>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test179 b/tests/data/test179
index b5aaec2f4..61c633440 100644
--- a/tests/data/test179
+++ b/tests/data/test179
@@ -39,6 +39,7 @@ supertrooper.fake FALSE /b FALSE 0 moo1 indeed
supertrooper.fake FALSE /c FALSE 2139150993 moo2 indeed
</file>
<features>
+cookies
proxy
</features>
</client>
diff --git a/tests/data/test1905 b/tests/data/test1905
index 4d04f8183..7a19e68b7 100644
--- a/tests/data/test1905
+++ b/tests/data/test1905
@@ -35,6 +35,9 @@ lib%TESTNUMBER
<command>
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER
</command>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test27 b/tests/data/test27
index 414741363..fba169510 100644
--- a/tests/data/test27
+++ b/tests/data/test27
@@ -29,6 +29,9 @@ Get same cookie page several times
<command>
"http://%HOSTIP:%HTTPPORT/want/{%TESTNUMBER,%TESTNUMBER,%TESTNUMBER}" -b none
</command>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test31 b/tests/data/test31
index 6dfd2d268..ad71792d4 100644
--- a/tests/data/test31
+++ b/tests/data/test31
@@ -133,6 +133,9 @@ http://test31.curl:%HTTPPORT/we/want/%TESTNUMBER -b none -c log/jar%TESTNUMBER.t
<precheck>
perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
</precheck>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test327 b/tests/data/test327
index 73cedb657..0014b1fe5 100644
--- a/tests/data/test327
+++ b/tests/data/test327
@@ -45,6 +45,9 @@ HTTP with cookiejar without cookies left
<command>
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -b none -c log/cookies%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER0002
</command>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test329 b/tests/data/test329
index 86f7a8275..5d3d26338 100644
--- a/tests/data/test329
+++ b/tests/data/test329
@@ -52,6 +52,9 @@ TZ=GMT
<command>
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -b log/jar%TESTNUMBER.txt -b log/jar%TESTNUMBER-2.txt -H "Host: host.foo.com" http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER0002
</command>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test331 b/tests/data/test331
index 8fc68984e..34d9a78a6 100644
--- a/tests/data/test331
+++ b/tests/data/test331
@@ -43,6 +43,7 @@ HTTP with cookie using host name 'moo'
-x http://%HOSTIP:%HTTPPORT http://moo/we/want/%TESTNUMBER -b none http://moo/we/want/%TESTNUMBER0002
</command>
<features>
+cookies
proxy
</features>
</client>
diff --git a/tests/data/test392 b/tests/data/test392
index 24430c131..71d4486e2 100644
--- a/tests/data/test392
+++ b/tests/data/test392
@@ -40,6 +40,9 @@ http://localhost:%HTTPPORT/%TESTNUMBER -b none http://localhost:%HTTPPORT/%TESTN
<precheck>
perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
</precheck>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test420 b/tests/data/test420
index 766ffb88c..b7fe4edda 100644
--- a/tests/data/test420
+++ b/tests/data/test420
@@ -48,6 +48,9 @@ http://%HOSTIP:%HTTPPORT/func_test/del_cookie -b log/cookie%TESTNUMBER -c log/sa
#HttpOnly_%HOSTIP FALSE / FALSE 1709598616 mycookie1 4900
#HttpOnly_%HOSTIP FALSE /func_test/ FALSE 0 mycookie 1200
</file>
+<features>
+cookies
+</features>
</client>
#
diff --git a/tests/data/test442 b/tests/data/test442
index baab4aade..cd750edde 100644
--- a/tests/data/test442
+++ b/tests/data/test442
@@ -193,6 +193,9 @@ attack.invalid TRUE / FALSE 0 name149 could-be-large-149
attack.invalid TRUE / FALSE 0 name150 could-be-large-150
attack.invalid TRUE / FALSE 0 name151 could-be-large-151
</file>
+<features>
+cookies
+</features>
</client>
#
diff --git a/tests/data/test443 b/tests/data/test443
index f984e7397..ea413b90c 100644
--- a/tests/data/test443
+++ b/tests/data/test443
@@ -62,6 +62,9 @@ attack.invalid TRUE / FALSE 0 huge-18 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
attack.invalid TRUE / FALSE 0 huge-19 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-19
attack.invalid TRUE / FALSE 0 huge-20 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-20
</file>
+<features>
+cookies
+</features>
</client>
#
diff --git a/tests/data/test444 b/tests/data/test444
index 89d671c72..e1f87fe38 100644
--- a/tests/data/test444
+++ b/tests/data/test444
@@ -118,6 +118,9 @@ Many Set-Cookie response headers
<command>
http://attack.invalid:%HTTPPORT/a/b/%TESTNUMBER -c log/cookie%TESTNUMBER --resolve attack.invalid:%HTTPPORT:%HOSTIP
</command>
+<features>
+cookies
+</features>
</client>
#
diff --git a/tests/data/test46 b/tests/data/test46
index 91e24cbaf..9e30c5278 100644
--- a/tests/data/test46
+++ b/tests/data/test46
@@ -56,6 +56,9 @@ domain..tld FALSE / FALSE 2139150993 mooo indeed
#HttpOnly_domain..tld FALSE /want FALSE 2139150993 mooo2 indeed2
domain..tld FALSE /want FALSE 0 empty
</file>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test53 b/tests/data/test53
index e3b9ec962..4034a4c66 100644
--- a/tests/data/test53
+++ b/tests/data/test53
@@ -36,6 +36,9 @@ HTTP, junk session cookies
%HOSTIP FALSE / FALSE 0 moo1 indeed
%HOSTIP FALSE / FALSE 1 moo2 indeed
</file>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test598 b/tests/data/test598
index 5e52315eb..a000dca55 100644
--- a/tests/data/test598
+++ b/tests/data/test598
@@ -58,6 +58,9 @@ curl_easy_reset with referer and other strings set
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
</command>
+<features>
+cookies
+</features>
</client>
#
diff --git a/tests/data/test6 b/tests/data/test6
index d8231cbdb..6e83125cd 100644
--- a/tests/data/test6
+++ b/tests/data/test6
@@ -31,6 +31,9 @@ HTTP with simple cookie send
<command>
http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER -b "name=contents;name2=content2" -b name3=content3
</command>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test61 b/tests/data/test61
index 6d98ba770..98c56498f 100644
--- a/tests/data/test61
+++ b/tests/data/test61
@@ -47,6 +47,9 @@ TZ=GMT
<command>
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -c log/jar%TESTNUMBER.txt -H "Host: www.host.foo.com"
</command>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test62 b/tests/data/test62
index 92396d9f6..08fbf8e5d 100644
--- a/tests/data/test62
+++ b/tests/data/test62
@@ -42,6 +42,9 @@ http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want/%T
.foo.com TRUE /moo TRUE 0 test3 maybe
</file>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test676 b/tests/data/test676
index a3916e526..1197ec515 100644
--- a/tests/data/test676
+++ b/tests/data/test676
@@ -61,6 +61,9 @@ verify setting CURLOPT_COOKIEFILE to NULL again
<command>
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER
</command>
+<features>
+cookies
+</features>
</client>
#
diff --git a/tests/data/test73 b/tests/data/test73
index e211f2148..4248db525 100644
--- a/tests/data/test73
+++ b/tests/data/test73
@@ -31,6 +31,9 @@ HTTP, receive cookies when using custom Host:, domain using only two dots
<command>
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -c log/jar%TESTNUMBER.txt -H "Host: host.NOT_DISCLOSED.se"
</command>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test8 b/tests/data/test8
index fa44a5a6a..93f2a9945 100644
--- a/tests/data/test8
+++ b/tests/data/test8
@@ -81,6 +81,9 @@ Set-Cookie: cookie31=%hex[%7f-junk]hex%
<precheck>
perl -e 'if ("%HOSTIP" !~ /\.0\.0\.1$/) {print "Test only works for HOSTIPs ending with .0.0.1"; exit(1)}'
</precheck>
+<features>
+cookies
+</features>
</client>
# Verify data after the test has been "shot"
diff --git a/tests/data/test977 b/tests/data/test977
index cecfd13f0..65167ee0e 100644
--- a/tests/data/test977
+++ b/tests/data/test977
@@ -27,6 +27,7 @@ Set-Cookie: a=b; Domain=.me.;
# Client-side
<client>
<features>
+cookies
proxy
</features>
<server>