From 2b4471bf84eb858ab90569c60de3c2ebe3f56cc5 Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Wed, 6 Dec 2017 14:17:42 +0000 Subject: [PATCH] Re-work the direct action call tempest test The current version calls the Mistral API, this seems to be unstable. Using another std action is enough to validate that this works correctly. Related-Bug: #1736685 Change-Id: I2ea70b228f3240ed89c3a3d4bd991459a6736f8c (cherry picked from commit b291e502b27eaa5ffb4d5d971fe0f6aac8f3b866) --- .../tests/api/v2/test_action_executions.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/mistral_tempest_tests/tests/api/v2/test_action_executions.py b/mistral_tempest_tests/tests/api/v2/test_action_executions.py index d8ea32c..6b5a30b 100644 --- a/mistral_tempest_tests/tests/api/v2/test_action_executions.py +++ b/mistral_tempest_tests/tests/api/v2/test_action_executions.py @@ -212,21 +212,17 @@ class ActionExecutionTestsV2(base.TestCase): @decorators.attr(type='sanity') @decorators.idempotent_id('2dbd74ba-4950-4c52-8bd3-070d634dcd05') - @decorators.skip_because(bug="1736685") def test_create_action_execution_sync(self): - token = self.client.auth_provider.get_token() resp, body = self.client.create_action_execution( { - 'name': 'std.http', - 'input': ('{{"url": "http://localhost:8989/v2/workflows",' - '"headers": {{"X-Auth-Token": "{}"}}}}' - ).format(token) + 'name': 'std.echo', + 'input': '{"output": "Hello Tempest"}' } ) self.assertEqual(201, resp.status) output = json.loads(body['output']) - self.assertEqual(200, output['result']['status']) + self.assertEqual("Hello Tempest", output['result']) @decorators.idempotent_id('9438e195-031c-4502-b216-6d72941ec281') @decorators.attr(type='sanity')