Executes statement and checks if the response meets the expectations. If so, it returns the response.
(self, statement, conf_overlay=None,
expected_status_code=TCLIService.TStatusCode.SUCCESS_STATUS,
expected_error_prefix=None)
| 362 | % (expected_message, log) |
| 363 | |
| 364 | def execute_statement(self, statement, conf_overlay=None, |
| 365 | expected_status_code=TCLIService.TStatusCode.SUCCESS_STATUS, |
| 366 | expected_error_prefix=None): |
| 367 | """Executes statement and checks if the response meets the expectations. |
| 368 | If so, it returns the response.""" |
| 369 | execute_statement_req = TCLIService.TExecuteStatementReq() |
| 370 | execute_statement_req.sessionHandle = self.session_handle |
| 371 | execute_statement_req.statement = statement |
| 372 | if conf_overlay: |
| 373 | execute_statement_req.confOverlay = conf_overlay |
| 374 | execute_statement_resp = self.hs2_client.ExecuteStatement(execute_statement_req) |
| 375 | HS2TestSuite.check_response(execute_statement_resp, expected_status_code, |
| 376 | expected_error_prefix) |
| 377 | return execute_statement_resp |
no test coverage detected