Ejemplo n.º 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}")
Ejemplo n.º 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"]')
Ejemplo n.º 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}")
Ejemplo n.º 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>')
Ejemplo n.º 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"]')
Ejemplo n.º 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})
Ejemplo n.º 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>')
Ejemplo n.º 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}")
Ejemplo n.º 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"]')
Ejemplo n.º 10
0
 def test_callback_handler_with_result_as_dict(self):
     MistralCallbackHandler.callback('http://localhost:8989/v2/tasks/12345', {},
                                     ACTIONEXEC_STATUS_SUCCEEDED, {'a': 1})
Ejemplo n.º 11
0
 def test_callback_handler_with_result_as_text(self):
     MistralCallbackHandler.callback('http://localhost:8989/v2/tasks/12345', {},
                                     LIVEACTION_STATUS_SUCCEEDED, '<html></html>')
Ejemplo n.º 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"]')
Ejemplo n.º 13
0
 def test_callback_handler_with_result_as_dict(self):
     MistralCallbackHandler.callback('http://localhost:8989/v2/tasks/12345',
                                     {}, LIVEACTION_STATUS_SUCCEEDED,
                                     {'a': 1})
Ejemplo n.º 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"])