Beispiel #1
0
def test_trace_disabled(site):
    web = CMKWebSession(site)
    # TRACE is disabled by using "TraceEnable Off" in apache config
    web._request("TRACE", "/", expected_code=405)
Beispiel #2
0
def test_track_disabled(site):
    web = CMKWebSession(site)
    # TRACE is not supported by apache at all by apache, so there is no need to
    # disable this. The HTTP code is just different from TRACE.
    web._request("TRACK", "/", expected_code=403)
Beispiel #3
0
def test_options_disabled(site):
    web = CMKWebSession(site)
    web._request("OPTIONS", "/", expected_code=403)