Пример #1
0
 def test_cloudfront_detection_by_server(self):
     self.response.headers = {self.server: "CloudFront"}
     self.assertTrue(WAFApplicationMethods.detect_cloudfront(self.response))
Пример #2
0
 def test_cloudfront_detection_by_server(self):
     self.response.headers = {self.server: "CloudFront"}
     self.assertTrue(WAFApplicationMethods.detect_cloudfront(self.response))
Пример #3
0
 def test_cloudfront_detection_by_headers(self):
     self.response.headers = {"Via": "cloudfront"}
     self.assertTrue(WAFApplicationMethods.detect_cloudfront(self.response))
     self.response.headers = {"X-cache": "cloudfront"}
     self.assertTrue(WAFApplicationMethods.detect_cloudfront(self.response))
Пример #4
0
 def test_cloudfront_detection_by_headers(self):
     self.response.headers = {"Via": "cloudfront"}
     self.assertTrue(WAFApplicationMethods.detect_cloudfront(self.response))
     self.response.headers = {"X-cache": "cloudfront"}
     self.assertTrue(WAFApplicationMethods.detect_cloudfront(self.response))