return configuration
-class FakeDfmServerHandler(BaseHTTPServer.BaseHTTPRequestHandler):
+class FakeHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
+ """HTTP handler that doesn't spam the log."""
+
+ def log_message(self, format, *args):
+ pass
+
+
+class FakeDfmServerHandler(FakeHTTPRequestHandler):
"""HTTP handler that fakes enough stuff to allow the driver to run."""
def do_GET(s):
'ListLuns', 'GetLunTargetDetails']
-class FakeCMODEServerHandler(BaseHTTPServer.BaseHTTPRequestHandler):
+class FakeCMODEServerHandler(FakeHTTPRequestHandler):
"""HTTP handler that fakes enough stuff to allow the driver to run"""
def do_GET(s):
RESPONSE_SUFFIX_DIRECT = """</netapp>"""
-class FakeDirectCMODEServerHandler(BaseHTTPServer.BaseHTTPRequestHandler):
+class FakeDirectCMODEServerHandler(FakeHTTPRequestHandler):
"""HTTP handler that fakes enough stuff to allow the driver to run"""
def do_GET(s):
self.driver.create_volume, self.vol_fail)
-class FakeDirect7MODEServerHandler(BaseHTTPServer.BaseHTTPRequestHandler):
+class FakeDirect7MODEServerHandler(FakeHTTPRequestHandler):
"""HTTP handler that fakes enough stuff to allow the driver to run"""
def do_GET(s):