Example #1
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)
Example #2
0
def test_options_disabled(site):
    web = CMKWebSession(site)
    web.request("OPTIONS", "/", expected_code=403)
Example #3
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)