コード例 #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
ファイル: test_mistral_v2.py プロジェクト: emptywee/st2
 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
ファイル: test_mistral_v2.py プロジェクト: emptywee/st2
 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
ファイル: test_mistral_v2.py プロジェクト: emptywee/st2
 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
ファイル: test_mistral_v2.py プロジェクト: AlexeyDeyneko/st2
 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
ファイル: test_mistral_v2.py プロジェクト: bjoernbessert/st2
 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
ファイル: test_mistral_v2.py プロジェクト: bjoernbessert/st2
 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
ファイル: test_mistral_v2.py プロジェクト: bjoernbessert/st2
 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
ファイル: test_mistral_v2.py プロジェクト: ravidsinghbiz/st2
 def test_callback_handler_with_result_as_list(self):
     MistralCallbackHandler.callback('http://localhost:8989/v2/action_executions/12345', {},
                                     LIVEACTION_STATUS_SUCCEEDED, ["a", "b", "c"])