# Class e.p.h.t.t.TestElisaHttpClientPipelining(TestCase, SetupServerMixin):

Part of elisa.plugins.http_client.tests.test_http_client View In Hierarchy

This test case tests the ElisaHttpClient class with pipelining.

Line # | Kind | Name | Docs
--- | --- | --- | ---
660 | Method | setUp | Undocumented
663 | Method | tearDown | Undocumented
666 | Method | test_single_request | Test a single request and validate the response code.
678 | Method | test_response_contents | Test the actual contents of the response returned by the server.
705 | Method | test_large_response_contents | Test that a 'large' resource is completely read.
726 | Method | test_consecutive_same_uri | Test two consecutive requests on the same URI.
754 | Method | test_consecutive_different_uris | Test two consecutive requests on different URIs.
783 | Method | test_consecutive_with_close | Test two consecutive requests on different URIs with the server closing
814 | Method | test_pipeline_with_close | Test the pipelining with three requests. The first request returns OK,
859 | Method | test_cancel_request | Test that cancelling a request works.
899 | Method | test_cancel_already_cancelled_request | Test cancelling an already cancelled request.

Inherited from SetupServerMixin:

Line # | Kind | Name | Docs
--- | --- | --- | ---
191 | Method | setUpClass | Undocumented
196 | Method | tearDownClass | Undocumented

def setUp(self):
Undocumented
def tearDown(self):
Undocumented
def test_single_request(self):
Test a single request and validate the response code.

def test_response_contents(self):
Test the actual contents of the response returned by the server.

def test_large_response_contents(self):
Test that a 'large' resource is completely read.

def test_consecutive_same_uri(self):
Test two consecutive requests on the same URI.

def test_consecutive_different_uris(self):
Test two consecutive requests on different URIs.

def test_consecutive_with_close(self):
Test two consecutive requests on different URIs with the server closing the connection after replying to the first request. This tests that the client correctly restores the connection if needed.

def test_pipeline_with_close(self):
Test the pipelining with three requests. The first request returns OK, the second request returns OBJECT MOVED and closes the connection, and the third request returns OK. This checks that our client correctly reconnects if for some reason the server closes the connection in the middle of a pipeline

def test_cancel_request(self):
Test that cancelling a request works.

def test_cancel_already_cancelled_request(self):
Test cancelling an already cancelled request.