def test_post_as_string(http_test_data):
    result = processors.sanitize_http_request_body(None, http_test_data)
    expected = 'foo=bar&password={0}&the_secret={0}&cc={0}'.format(
        processors.MASK
    )
    assert result['context']['request']['body'] == expected
Exemplo n.º 2
0
def test_post_as_string(http_test_data):
    result = processors.sanitize_http_request_body(None, http_test_data)
    expected = "foo=bar&password={0}&the_secret={0}&cc={0}".format(
        processors.MASK)
    assert result["context"]["request"]["body"] == expected
Exemplo n.º 3
0
def test_post_as_string(elasticapm_client, expected, http_test_data):
    result = processors.sanitize_http_request_body(elasticapm_client,
                                                   http_test_data)
    assert result["context"]["request"]["body"] == expected