コード例 #1
0
 def testNoAuthHeaders(self):
     """
 negative test for authentication guarded route.
 invoke get request without passing authentication headers
 response is validated for appropriate headers and body
 """
     response = self.app.get("", status="*")
     assertions.assertInvalidAuthenticationResponse(self, response)
コード例 #2
0
 def testNoAuthHeaders(self, engineFactoryMock): # pylint: disable=W0613
   """
   negative test for authentication guarded route.
   invoke get request without passing authentication headers
   response is validated for appropriate headers and body
   """
   response = self.app.get("", status="*")
   assertions.assertInvalidAuthenticationResponse(self, response)
コード例 #3
0
 def testNoAuthHeaders(self):
     """
 negative test for authentication guarded route.
 invoke get request without passing authentication headers
 resoponse is validated for appropriate headers and body
 """
     response = self.app.get("", status="*")
     assertions.assertInvalidAuthenticationResponse(self, response)
コード例 #4
0
 def testInvalidAuthHeaders(self):
     """
 negative test for authentication guarded route.
 invoke get request with invalid authentication headers
 response is validated for appropriate headers and body
 """
     invalidHeaders = getInvalidHTTPHeaders()
     response = self.app.get("", status="*", headers=invalidHeaders)
     assertions.assertInvalidAuthenticationResponse(self, response)
コード例 #5
0
 def testInvalidAuthHeaders(self):
     """
 negative test for authentication guarded route.
 invoke get request with invalid authentication headers
 resoponse is validated for appropriate headers and body
 """
     invalidHeaders = getInvalidHTTPHeaders()
     response = self.app.get("", status="*", headers=invalidHeaders)
     assertions.assertInvalidAuthenticationResponse(self, response)