# Path: mistralclient/api/v2/executions.py
# class Execution(base.Resource):
#     resource_name = 'Execution'
# 
# Path: mistralclient/api/v2/tasks.py
# class Task(base.Resource):
# class TaskManager(base.ResourceManager):
#     def list(self, workflow_execution_id=None, marker='', limit=None,
#              sort_keys='', sort_dirs='', fields=None, **filters):
#     def get(self, id):
#     def get_task_sub_executions(self, id, errors_only='', max_depth=-1):
#     def rerun(self, task_ex_id, reset=True, env=None):
# 
# Path: mistralclient/commands/v2/tasks.py
# LOG = logging.getLogger(__name__)
#     COLUMNS = [
#         ('id', 'ID'),
#         ('name', 'Name'),
#         ('workflow_name', 'Workflow name'),
#         ('workflow_namespace', 'Workflow namespace'),
#         ('workflow_execution_id', 'Workflow Execution ID'),
#         ('state', 'State'),
#         ('state_info', 'State info'),
#         ('created_at', 'Created at'),
#         ('started_at', 'Started at'),
#         ('finished_at', 'Finished at'),
#         ('duration', 'Duration', True),
#     ]
# class TaskFormatter(base.MistralFormatter):
# class List(base.MistralExecutionLister):
# class Get(command.ShowOne):
# class GetResult(command.Command):
# class GetPublished(command.Command):
# class Rerun(command.ShowOne):
# class SubExecutionsLister(executions.SubExecutionsBaseLister):
#     def format(task=None, lister=False):
#     def get_parser(self, prog_name):
#     def _get_format_function(self):
#     def _get_resources(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def _get_format_function(self):
#     def _get_resources_function(self):
# 
# Path: mistralclient/tests/unit/base.py
# class BaseClientTest(base.BaseTestCase):
# class BaseCommandTest(base.BaseTestCase):
#     def setUp(self):
#     def setUp(self):
#     def call(self, command, app_args=(), prog_name=''):


from unittest import mock
from oslo_serialization import jsonutils
from mistralclient.api.v2.executions import Execution
from mistralclient.api.v2 import tasks
from mistralclient.commands.v2 import tasks as task_cmd
from mistralclient.tests.unit import base
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.
#





TASK_DICT = {
    'id': '123',
    'name': 'some',
    'workflow_name': 'thing',
    'workflow_namespace': '',
    'workflow_execution_id': '321',
    'state': 'SUCCESS',
    'state_info': None,
    'created_at': '2020-02-07 08:10:32',
    'started_at': '2020-02-07 08:10:32',
    'finished_at': '2020-02-07 08:10:41'
}


# Path: mistralclient/api/v2/executions.py
# class Execution(base.Resource):
#     resource_name = 'Execution'
# 
# Path: mistralclient/api/v2/tasks.py
# class Task(base.Resource):
# class TaskManager(base.ResourceManager):
#     def list(self, workflow_execution_id=None, marker='', limit=None,
#              sort_keys='', sort_dirs='', fields=None, **filters):
#     def get(self, id):
#     def get_task_sub_executions(self, id, errors_only='', max_depth=-1):
#     def rerun(self, task_ex_id, reset=True, env=None):
# 
# Path: mistralclient/commands/v2/tasks.py
# LOG = logging.getLogger(__name__)
#     COLUMNS = [
#         ('id', 'ID'),
#         ('name', 'Name'),
#         ('workflow_name', 'Workflow name'),
#         ('workflow_namespace', 'Workflow namespace'),
#         ('workflow_execution_id', 'Workflow Execution ID'),
#         ('state', 'State'),
#         ('state_info', 'State info'),
#         ('created_at', 'Created at'),
#         ('started_at', 'Started at'),
#         ('finished_at', 'Finished at'),
#         ('duration', 'Duration', True),
#     ]
# class TaskFormatter(base.MistralFormatter):
# class List(base.MistralExecutionLister):
# class Get(command.ShowOne):
# class GetResult(command.Command):
# class GetPublished(command.Command):
# class Rerun(command.ShowOne):
# class SubExecutionsLister(executions.SubExecutionsBaseLister):
#     def format(task=None, lister=False):
#     def get_parser(self, prog_name):
#     def _get_format_function(self):
#     def _get_resources(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def _get_format_function(self):
#     def _get_resources_function(self):
# 
# Path: mistralclient/tests/unit/base.py
# class BaseClientTest(base.BaseTestCase):
# class BaseCommandTest(base.BaseTestCase):
#     def setUp(self):
#     def setUp(self):
#     def call(self, command, app_args=(), prog_name=''):


# Path: mistralclient/tests/unit/v2/test_cli_tasks.py
from unittest import mock
from oslo_serialization import jsonutils
from mistralclient.api.v2.executions import Execution
from mistralclient.api.v2 import tasks
from mistralclient.commands.v2 import tasks as task_cmd
from mistralclient.tests.unit import base

#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.
#





TASK_DICT = {
    'id': '123',
    'name': 'some',
    'workflow_name': 'thing',
    'workflow_namespace': '',
    'workflow_execution_id': '321',
    'state': 'SUCCESS',
    'state_info': None,
    'created_at': '2020-02-07 08:10:32',
    'started_at': '2020-02-07 08:10:32',
    'finished_at': '2020-02-07 08:10:41'
}


TASK_SUB_WF_EXEC = Execution(