]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2298] revert checks of http status codes when requesting XSL URI with some path
authorNaoki Kambe <kambe@jprs.co.jp>
Fri, 26 Oct 2012 10:02:07 +0000 (19:02 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Fri, 26 Oct 2012 11:36:27 +0000 (20:36 +0900)
This is because in the case the daemon responds a 404 code.

src/bin/stats/tests/b10-stats-httpd_test.py

index fcef4842569c7e06a99bf3123d8af4452e6ba8d3..412b524086aaab1523619f4bd469f13a55cb9b3e 100644 (file)
@@ -358,7 +358,7 @@ class TestHttpHandler(unittest.TestCase):
         self.client.putrequest('GET', stats_httpd.XSL_URL_PATH + '/Foo')
         self.client.endheaders()
         response = self.client.getresponse()
-        self.assertEqual(response.status, 200)
+        self.assertEqual(response.status, 404)
 
         # 404 NotFound (nonexistent item name)
         self.client._http_vsn_str = 'HTTP/1.0'
@@ -375,7 +375,7 @@ class TestHttpHandler(unittest.TestCase):
         self.client.putrequest('GET', stats_httpd.XSL_URL_PATH + '/Foo/bar')
         self.client.endheaders()
         response = self.client.getresponse()
-        self.assertEqual(response.status, 200)
+        self.assertEqual(response.status, 404)
 
         # 404 NotFound (existent module but nonexistent item name)
         self.client._http_vsn_str = 'HTTP/1.0'
@@ -392,7 +392,7 @@ class TestHttpHandler(unittest.TestCase):
         self.client.putrequest('GET', stats_httpd.XSL_URL_PATH + '/Auth/bar')
         self.client.endheaders()
         response = self.client.getresponse()
-        self.assertEqual(response.status, 200)
+        self.assertEqual(response.status, 404)
 
     def test_do_GET_failed1(self):
         # checks status