]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: add `cookies` features
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 9 Mar 2023 10:29:56 +0000 (11:29 +0100)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 9 Mar 2023 13:33:05 +0000 (14:33 +0100)
These tests don't work with `--disable-cookies`.

Closes https://github.com/curl/curl/pull/10713

39 files changed:
tests/data/test1024
tests/data/test1025
tests/data/test1104
tests/data/test1105
tests/data/test1151
tests/data/test1155
tests/data/test1160
tests/data/test1161
tests/data/test1216
tests/data/test1218
tests/data/test1228
tests/data/test1258
tests/data/test1331
tests/data/test1408
tests/data/test1415
tests/data/test171
tests/data/test172
tests/data/test179
tests/data/test1905
tests/data/test27
tests/data/test31
tests/data/test327
tests/data/test329
tests/data/test331
tests/data/test392
tests/data/test420
tests/data/test442
tests/data/test443
tests/data/test444
tests/data/test46
tests/data/test53
tests/data/test598
tests/data/test6
tests/data/test61
tests/data/test62
tests/data/test676
tests/data/test73
tests/data/test8
tests/data/test977

index 5fba9d325a39a14cd7e3c6f43d071ccaccf7bfa5..d8ceff10a3543ac1851f951458596e7b64ab7f39 100644 (file)
@@ -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"
index 5f96e11237cd10dae59a787e02a40d26978ec728..ef0b33fb0dca3b132a1e78923cc64fdd91c1ce3a 100644 (file)
@@ -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"
index 27c43009ec8d974ca7a574182265fe975bd31eaa..0d89bde8eefca415556f97981891c366281fe825 100644 (file)
@@ -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>
index 396933838235a2b3b31586b91002f2b63533a446..73a33a3c535c723e0cc14c82cf1d630fbbd30631 100644 (file)
@@ -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"
index c31382c9eac5b6ec58cd07d1690ee436cbf2a740..52e912ef90677304732c694e407c043d4b3fabc9 100644 (file)
@@ -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"
index 65d76b6f519bd636f1295acba9790b52566ca8f8..011d310f579d315782cde4215b4668968c69ed3d 100644 (file)
@@ -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"
index e24ce93e1bf410f601058a8ca9e361d3803189f2..7e31aa5dce5fe06bdcf7cd0e2674c6bf7a92ca82 100644 (file)
@@ -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"
index 89c1e657c52628374db3ecfafd67d4b9d807604c..88ed491da1bff33782bb0e170e9c243358f56261 100644 (file)
@@ -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"
index 6686c758a5ef7862671f63e5d1892e66fb33c91d..0b1bad606d5a8e4067c91d6138bbc0c2705a295e 100644 (file)
@@ -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>
index ff80233488de8bf1b83933c113ed648702670808..e176c47fa3e116bb6e07046caf2623dbdf6d7237 100644 (file)
@@ -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>
index 2a7faff48d0e1ac0bc8953e8eb48135ab4293e07..d33b742892ac66f172c395958f1bfd4fb9874211 100644 (file)
@@ -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>
index a4cef156c9d2d7f337903a161aa2a0027c3e2a09..5a4ce0b73bd0bc8005f080b6332a683bcbf4e269 100644 (file)
@@ -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"
index 4ef0c14df20ef06219f8f17c01e0cb265bf309ef..7683d6272e93f76237949df8265ad7c06664f929 100644 (file)
@@ -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>
index d4f40f72e9c7cf0a22cb8b8c1316c6021305f8a2..adecc9bf5f48a3c2cdefe2e11ae8e08e62375dfa 100644 (file)
@@ -39,6 +39,7 @@ Set-Cookie: time=2
 # Client-side
 <client>
 <features>
+cookies
 ipv6
 </features>
 <server>
index 79b14e6bd5b4ddb522809adf3c1d3b3375bbca27..7d460be236ee5dfc352552c6a74c33828a70b9c4 100644 (file)
@@ -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>
index c4f5b6c40fffd39643e2f7aabae0443d373d965d..dc46fe287c20374db211640aeffe59e750ff76f5 100644 (file)
@@ -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>
index 9dbe64c23edf5036f9a0690620587398a27033f9..276856ae0f3cc5d0b649fdc9b382d0df0f31dc63 100644 (file)
@@ -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"
index b5aaec2f46e0c1c2893e46c3f6a8e7ff3c5f529c..61c633440faffa4406062085687e43c2cee5b2cc 100644 (file)
@@ -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>
index 4d04f8183b7833935fb48a8c8d93cf779ac0ebeb..7a19e68b7f209e0418a3d1e754434d608173cebc 100644 (file)
@@ -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"
index 414741363a4e5753d10acf585d4f6ecbf7736392..fba169510f155761a1adf5f35e78bf4ae66b0123 100644 (file)
@@ -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"
index 6dfd2d268d16fea42cbeb121985ca413deda0482..ad71792d4aca481b1f488949e12b9b2a0c8f78dc 100644 (file)
@@ -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"
index 73cedb657fc26f2fad235c7c7c821f0cace884ac..0014b1fe5adbb3e82f9124004a1f436e3a34e3bc 100644 (file)
@@ -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"
index 86f7a82751270e109e77809d3c1ba6d7e57df36f..5d3d26338d7a9e9240a82eb340d996d2327453ed 100644 (file)
@@ -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"
index 8fc68984e4102ab219912b284e6919dbba03f423..34d9a78a68b6cd2826ff53495f8a02690dadd699 100644 (file)
@@ -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>
index 24430c1311fd41ed8f2f4f190db6da14c9841791..71d4486e225cce1e491ac45450ec78e28918a205 100644 (file)
@@ -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"
index 766ffb88ce984d96b20b7c9fa47edff795bf181a..b7fe4edda1d727fc9eeefad5cf9735da4ad01d57 100644 (file)
@@ -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>
 
 #
index baab4aade0cc8b726b12cc8ac219e9149ae335f5..cd750eddef5fc488d54c6a9c4a0258f71c755872 100644 (file)
@@ -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>
 
 #
index f984e73974792b2fc7898997958a10fc7ba8910d..ea413b90c9d4553db2421b77ff222d0b7de82022 100644 (file)
@@ -62,6 +62,9 @@ attack.invalid        TRUE    /       FALSE   0       huge-18 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 attack.invalid TRUE    /       FALSE   0       huge-19 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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e60121e37da7e532035a42ad047f8f..e1f87fe38d1fc1c8e573925ac8dd123c55ccb6cf 100644 (file)
@@ -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>
 
 #
index 91e24cbaff87cf0ba9785ef3556b72a23fcf807f..9e30c5278fb38a90161f6c0849158fc386fa5bdf 100644 (file)
@@ -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"
index e3b9ec962527c2731b637dc913cd3551da9380cd..4034a4c6621625fd02af0b37639cf1f3882f90f8 100644 (file)
@@ -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"
index 5e52315ebb41830b931f0629337f51993ab75b41..a000dca55b7a5405f683f1d5fa3284a4046d4cc6 100644 (file)
@@ -58,6 +58,9 @@ curl_easy_reset with referer and other strings set
  <command>
 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
 </command>
+<features>
+cookies
+</features>
 </client>
 
 #
index d8231cbdb90113381a22ba2141b7cd8a38a25053..6e83125cd4cbde9fc7c2cf43698e162885965870 100644 (file)
@@ -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"
index 6d98ba77064940972b31b4eb678170666ffc0ca7..98c56498f21d4c0f7373c256f21672f10c90cc16 100644 (file)
@@ -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"
index 92396d9f66ed35daaf6be120957e5a963dc575d6..08fbf8e5dd5b0b6104c1b759619c16dfd7f015f0 100644 (file)
@@ -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"
index a3916e52611ee912d0d860bf4f0542c64e3c7561..1197ec515279dd6af1824cbac01939faf6d383cf 100644 (file)
@@ -61,6 +61,9 @@ verify setting CURLOPT_COOKIEFILE to NULL again
  <command>
 http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER
 </command>
+<features>
+cookies
+</features>
 </client>
 
 #
index e211f214862924b59c3330f02478c7b43932429a..4248db525e1353bc79c1cc4842b966255274a36a 100644 (file)
@@ -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"
index fa44a5a6aa27a5ced1d1fc4e1e384fd170f0b527..93f2a9945983d46e667d27e8d58fd9e8bfabd313 100644 (file)
@@ -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"
index cecfd13f0bccc1b5a8da94a5ca3d1d132df233b3..65167ee0ee0268cb2fbbc9d8662e3dd231612584 100644 (file)
@@ -27,6 +27,7 @@ Set-Cookie: a=b; Domain=.me.;
 # Client-side
 <client>
 <features>
+cookies
 proxy
 </features>
 <server>