Пример #1
0
 def test_callback_handler_with_result_as_json_str(self):
     MistralCallbackHandler.callback(
         'http://localhost:8989/v2/action_executions/12345', {},
         action_constants.LIVEACTION_STATUS_SUCCEEDED, '{"a": 1}')
     MistralCallbackHandler.callback(
         'http://localhost:8989/v2/action_executions/12345', {},
         action_constants.LIVEACTION_STATUS_SUCCEEDED, "{'a': 1}")
Пример #2
0
 def test_callback_handler_with_result_as_list_str(self):
     MistralCallbackHandler.callback('http://localhost:8989/v2/action_executions/12345', {},
                                     action_constants.LIVEACTION_STATUS_SUCCEEDED,
                                     '["a", "b", "c"]')
Пример #3
0
 def test_callback_handler_with_result_as_json_str(self):
     MistralCallbackHandler.callback('http://localhost:8989/v2/action_executions/12345', {},
                                     action_constants.LIVEACTION_STATUS_SUCCEEDED, '{"a": 1}')
     MistralCallbackHandler.callback('http://localhost:8989/v2/action_executions/12345', {},
                                     action_constants.LIVEACTION_STATUS_SUCCEEDED, "{'a': 1}")
Пример #4
0
 def test_callback_handler_with_result_as_text(self):
     MistralCallbackHandler.callback('http://localhost:8989/v2/action_executions/12345', {},
                                     action_constants.LIVEACTION_STATUS_SUCCEEDED,
                                     '<html></html>')
Пример #5
0
 def test_callback_handler_with_result_as_list_str(self):
     MistralCallbackHandler.callback('http://127.0.0.1:8989/v2/action_executions/12345', {},
                                     action_constants.LIVEACTION_STATUS_SUCCEEDED,
                                     '["a", "b", "c"]')
Пример #6
0
 def test_callback_handler_with_result_as_dict(self):
     MistralCallbackHandler.callback('http://127.0.0.1:8989/v2/action_executions/12345', {},
                                     action_constants.LIVEACTION_STATUS_SUCCEEDED, {'a': 1})
Пример #7
0
 def test_callback_handler_with_result_as_text(self):
     MistralCallbackHandler.callback('http://127.0.0.1:8989/v2/action_executions/12345', {},
                                     action_constants.LIVEACTION_STATUS_SUCCEEDED,
                                     '<html></html>')
Пример #8
0
 def test_callback_handler_with_result_as_json_str(self):
     MistralCallbackHandler.callback('http://localhost:8989/v2/tasks/12345', {},
                                     ACTIONEXEC_STATUS_SUCCEEDED, '{"a": 1}')
     MistralCallbackHandler.callback('http://localhost:8989/v2/tasks/12345', {},
                                     ACTIONEXEC_STATUS_SUCCEEDED, "{'a': 1}")
Пример #9
0
 def test_callback_handler_with_result_as_list_str(self):
     MistralCallbackHandler.callback('http://localhost:8989/v2/tasks/12345', {},
                                     ACTIONEXEC_STATUS_SUCCEEDED, '["a", "b", "c"]')
Пример #10
0
 def test_callback_handler_with_result_as_dict(self):
     MistralCallbackHandler.callback('http://localhost:8989/v2/tasks/12345', {},
                                     ACTIONEXEC_STATUS_SUCCEEDED, {'a': 1})
Пример #11
0
 def test_callback_handler_with_result_as_text(self):
     MistralCallbackHandler.callback('http://localhost:8989/v2/tasks/12345', {},
                                     LIVEACTION_STATUS_SUCCEEDED, '<html></html>')
Пример #12
0
 def test_callback_handler_with_result_as_list_str(self):
     MistralCallbackHandler.callback('http://localhost:8989/v2/tasks/12345',
                                     {}, LIVEACTION_STATUS_SUCCEEDED,
                                     '["a", "b", "c"]')
Пример #13
0
 def test_callback_handler_with_result_as_dict(self):
     MistralCallbackHandler.callback('http://localhost:8989/v2/tasks/12345',
                                     {}, LIVEACTION_STATUS_SUCCEEDED,
                                     {'a': 1})
Пример #14
0
 def test_callback_handler_with_result_as_list(self):
     MistralCallbackHandler.callback('http://localhost:8989/v2/action_executions/12345', {},
                                     LIVEACTION_STATUS_SUCCEEDED, ["a", "b", "c"])