]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: don't call HTTP errors OK in test cases
authorDan Fandrich <dan@coneharvesters.com>
Wed, 16 Aug 2023 16:03:53 +0000 (09:03 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 22 Aug 2023 22:32:16 +0000 (15:32 -0700)
Some HTTP errors codes were accompanied by the text OK, which causes
some cognitive dissonance when reading them.

tests/data/test1328
tests/data/test197
tests/data/test357
tests/data/test366

index a85c6b6eef9ad5eb98f26d8374d06145caae4241..5055a077035ad13e19c4ecf00c20a63130d97ec5 100644 (file)
@@ -10,7 +10,7 @@ globbing
 
 <reply>
 <data>
-HTTP/1.1 404 OK
+HTTP/1.1 404 NOT OK
 Date: Tue, 09 Nov 2010 14:49:00 GMT
 Content-Length: 6
 Funny-head: yesyes
index 70198732a6261a2126ba4a4143d58dddcff6c4bc..3c5b8abff96a6e938cfcec5f69252e2a10bfc84e 100644 (file)
@@ -10,7 +10,7 @@ retry
 # Server-side
 <reply>
 <data nocheck="yes">
-HTTP/1.1 503 OK swsbounce
+HTTP/1.1 503 BAD swsbounce
 Date: Tue, 09 Nov 2010 14:49:00 GMT
 Content-Length: 21
 
@@ -58,7 +58,7 @@ Accept: */*
 </protocol>
 
 <stdout>
-HTTP/1.1 503 OK swsbounce
+HTTP/1.1 503 BAD swsbounce
 Date: Tue, 09 Nov 2010 14:49:00 GMT
 Content-Length: 21
 
index 4a7e6dc4018f43c29ad068407510bb0b1c42ae35..445000768c6b5f841b4d6ac5489e85aedaa2bf03 100644 (file)
@@ -10,7 +10,7 @@ Expect
 <reply>
 # 417 means the server didn't like the Expect header
 <data>
-HTTP/1.1 417 OK swsbounce
+HTTP/1.1 417 BAD swsbounce
 Date: Tue, 09 Nov 2010 14:49:00 GMT
 Server: test-server/fake
 Content-Length: 0
@@ -25,7 +25,7 @@ Content-Length: 10
 blablabla
 </data1>
 <datacheck>
-HTTP/1.1 417 OK swsbounce
+HTTP/1.1 417 BAD swsbounce
 Date: Tue, 09 Nov 2010 14:49:00 GMT
 Server: test-server/fake
 Content-Length: 0
index 748ef4a0ded96641a773dbe94af8743c5507f1a1..46a4b502a83f0f34109134b87360e5d8aa1bbe66 100644 (file)
@@ -10,7 +10,7 @@ retry
 # Server-side
 <reply>
 <data>
-HTTP/1.1 503 OK
+HTTP/1.1 503 BAD
 Date: Tue, 09 Nov 2010 14:49:00 GMT
 Content-Length: 21
 Retry-After: 200