def test_set_intercept_url_resp_params(self): conf = ic() url = 'http://127.0.0.1:8080/WebGoat/attack?Screen=32&menu=5' params = "head" conf.set_intercept_url_resp_params(url, params)
def test_set_intercept_url_resp_headers(self): conf = ic() url = 'http://127.0.0.1:8080/WebGoat/attack?Screen=32&menu=5' headers = "Server_Apache-Coyote/1.1" conf.set_intercept_url_resp_headers(url, headers)
def test_set_intercept_url_req_headers(self): conf = ic() url = 'http://127.0.0.1:8080/WebGoat/attack?Screen=32&menu=5' headers = "Cookie_JSESSIONID=45FCF83CD2DB1F0A223FFB738C8B3797" conf.set_intercept_url_req_headers(url, headers)
def test_set_intercept_url(self): conf = ic() url = 'http://127.0.0.1:8080/WebGoat/attack?Screen=32&menu=5' conf.set_intercept_url(url)
def test_get_intercept_url_resp(self): conf = ic() resp = conf.get_intercept_url_resp("test1") self.assertEqual(resp['headers'], "test1_resp_headers") self.assertEqual(resp['params'], "test1_resp_params")
def test_get_intercept_all(self): conf = ic() self.assertEqual(type(conf.get_intercept()), list)