@pytest.mark.execute_serially
@CustomClusterTestSuite.with_args(impalad_args='--webserver_max_post_length_bytes=100')
def test_max_post_length(self):
    'Tests that the maximum length of a POST request that will be accepted'
    too_big_post_content = ('c' * 10000)
    response = requests.post('http://localhost:25000/', too_big_post_content)
    assert (response.status_code == requests.codes.request_entity_too_large)
    ok_post_content = ('c' * 100)
    response = requests.post('http://localhost:25000/', ok_post_content)
    assert (response.status_code == requests.codes.ok)
Tests that the maximum length of a POST request that will be accepted
@pytest.mark.execute_serially
@CustomClusterTestSuite.with_args(impalad_args='--webserver_max_post_length_bytes=100')
def test_max_post_length(self):
    
    too_big_post_content = ('c' * 10000)
    response = requests.post('http://localhost:25000/', too_big_post_content)
    assert (response.status_code == requests.codes.request_entity_too_large)
    ok_post_content = ('c' * 100)
    response = requests.post('http://localhost:25000/', ok_post_content)
    assert (response.status_code == requests.codes.ok)