# Path: mistralclient/tests/functional/cli/base.py
# CLI_DIR = os.environ.get(
#     'OS_MISTRALCLIENT_EXEC_DIR',
#     os.path.join(os.path.abspath('.'), '.tox/functional/bin')
# )
# def credentials(cloud='devstack-admin'):
# def get_cloud_config(cloud='devstack-admin'):
#     def _get_admin_clients(self):
#     def _get_clients(self):
#     def mistral(self, action, flags='', params='', fail_ok=False):
#     def get_project_id(self, project_name='admin'):
#     def _get_alt_clients(self):
#     def _get_clients(self):
#     def mistral_alt(self, action, flags='', params='', mode='alt_user'):
# class MistralCLIAuth(base.ClientTestBase):
# class MistralCLIAltAuth(base.ClientTestBase):
# 
# Path: mistralclient/tests/functional/cli/v2/base_v2.py
# MISTRAL_URL = "http://localhost:8989/v2"
# class MistralClientTestBase(base.MistralCLIAuth, base.MistralCLIAltAuth):
#     def setUpClass(cls):
#     def setUp(self):
#     def assertPartIn(self, needle, haystack, message=''):
#     def get_field_value(self, obj, field):
#     def get_item_info(self, get_from, get_by, value):
#     def mistral_admin(self, cmd, params=""):
#     def mistral_alt_user(self, cmd, params=""):
#     def mistral_cli(self, admin, cmd, params=''):
#     def workbook_create(self, wb_def, namespace='', admin=True,
#                         scope='private'):
#     def workflow_create(self, wf_def, namespace='', admin=True,
#                         scope='private'):
#     def workflow_member_create(self, wf_id):
#     def action_create(self, act_def, admin=True,
#                       scope='private', namespace=''):
#     def cron_trigger_create(self, name, wf_name, wf_input, pattern=None,
#                             count=None, first_time=None, admin=True):
#     def event_trigger_create(self, name, wf_id, exchange,
#                              topic, event, wf_input, admin=True):
#     def execution_create(self, params, admin=True):
#     def environment_create(self, params, admin=True):
#     def create_file(self, file_name, file_body=""):
#     def wait_execution_success(self, exec_id, timeout=180):


from tempest.lib import exceptions
from mistralclient.tests.functional.cli import base
from mistralclient.tests.functional.cli.v2 import base_v2
             'Tags', 'Created at', 'Updated at']
        )

    def test_environments_list(self):
        envs = self.parser.listing(self.mistral('environment-list'))

        self.assertTableStruct(
            envs,
            ['Name', 'Description', 'Scope', 'Created at', 'Updated at']
        )

    def test_action_execution_list(self):
        act_execs = self.parser.listing(self.mistral('action-execution-list'))

        self.assertTableStruct(
            act_execs,
            ['ID', 'Name', 'Workflow name', 'State', 'Accepted']
        )

    def test_action_execution_list_with_limit(self):
        act_execs = self.parser.listing(
            self.mistral(
                'action-execution-list',
                params='--limit 1'
            )
        )

        self.assertEqual(1, len(act_execs))



# Path: mistralclient/tests/functional/cli/base.py
# CLI_DIR = os.environ.get(
#     'OS_MISTRALCLIENT_EXEC_DIR',
#     os.path.join(os.path.abspath('.'), '.tox/functional/bin')
# )
# def credentials(cloud='devstack-admin'):
# def get_cloud_config(cloud='devstack-admin'):
#     def _get_admin_clients(self):
#     def _get_clients(self):
#     def mistral(self, action, flags='', params='', fail_ok=False):
#     def get_project_id(self, project_name='admin'):
#     def _get_alt_clients(self):
#     def _get_clients(self):
#     def mistral_alt(self, action, flags='', params='', mode='alt_user'):
# class MistralCLIAuth(base.ClientTestBase):
# class MistralCLIAltAuth(base.ClientTestBase):
# 
# Path: mistralclient/tests/functional/cli/v2/base_v2.py
# MISTRAL_URL = "http://localhost:8989/v2"
# class MistralClientTestBase(base.MistralCLIAuth, base.MistralCLIAltAuth):
#     def setUpClass(cls):
#     def setUp(self):
#     def assertPartIn(self, needle, haystack, message=''):
#     def get_field_value(self, obj, field):
#     def get_item_info(self, get_from, get_by, value):
#     def mistral_admin(self, cmd, params=""):
#     def mistral_alt_user(self, cmd, params=""):
#     def mistral_cli(self, admin, cmd, params=''):
#     def workbook_create(self, wb_def, namespace='', admin=True,
#                         scope='private'):
#     def workflow_create(self, wf_def, namespace='', admin=True,
#                         scope='private'):
#     def workflow_member_create(self, wf_id):
#     def action_create(self, act_def, admin=True,
#                       scope='private', namespace=''):
#     def cron_trigger_create(self, name, wf_name, wf_input, pattern=None,
#                             count=None, first_time=None, admin=True):
#     def event_trigger_create(self, name, wf_id, exchange,
#                              topic, event, wf_input, admin=True):
#     def execution_create(self, params, admin=True):
#     def environment_create(self, params, admin=True):
#     def create_file(self, file_name, file_body=""):
#     def wait_execution_success(self, exec_id, timeout=180):


# Path: mistralclient/tests/functional/cli/v2/test_cli_v2.py
from tempest.lib import exceptions
from mistralclient.tests.functional.cli import base
from mistralclient.tests.functional.cli.v2 import base_v2

             'Tags', 'Created at', 'Updated at']
        )

    def test_environments_list(self):
        envs = self.parser.listing(self.mistral('environment-list'))

        self.assertTableStruct(
            envs,
            ['Name', 'Description', 'Scope', 'Created at', 'Updated at']
        )

    def test_action_execution_list(self):
        act_execs = self.parser.listing(self.mistral('action-execution-list'))

        self.assertTableStruct(
            act_execs,
            ['ID', 'Name', 'Workflow name', 'State', 'Accepted']
        )

    def test_action_execution_list_with_limit(self):
        act_execs = self.parser.listing(
            self.mistral(
                'action-execution-list',
                params='--limit 1'
            )
        )

        self.assertEqual(1, len(act_execs))



class WorkbookCLITests(base_v2.MistralClientTestBase):