コード例 #1
0
    def setUp(self):
        super(ConfigSchemaTestCase, self).setUp()

        self.shell = shell.Shell()
        self._content_schema = yaml.load(
            self.get_fixture_content('config.schema.yaml'))
        self._new_config = yaml.load(self.get_fixture_content('cfg_new.yaml'))
コード例 #2
0
ファイル: test_inquiry.py プロジェクト: zsjohny/st2
    def __init__(self, *args, **kwargs):
        super(TestInquiryBase, self).__init__(*args, **kwargs)

        self.parser = argparse.ArgumentParser()
        self.parser.add_argument('-t', '--token', dest='token')
        self.parser.add_argument('--api-key', dest='api_key')
        self.shell = shell.Shell()
コード例 #3
0
ファイル: test_keyvalue.py プロジェクト: st2sandbox/st2
    def __init__(self, *args, **kwargs):
        super(TestKeyValueBase, self).__init__(*args, **kwargs)

        self.parser = argparse.ArgumentParser()
        self.parser.add_argument("-t", "--token", dest="token")
        self.parser.add_argument("--api-key", dest="api_key")
        self.shell = shell.Shell()
コード例 #4
0
    def __init__(self, *args, **kwargs):
        super(TestLoginBase, self).__init__(*args, **kwargs)

        # We're overriding the default behavior for CLI test cases here
        self.DEFAULT_SKIP_CONFIG = '0'

        self.parser = argparse.ArgumentParser()
        self.parser.add_argument('-t', '--token', dest='token')
        self.parser.add_argument('--api-key', dest='api_key')
        self.shell = shell.Shell()
コード例 #5
0
    def __init__(self, *args, **kwargs):
        super(TestLoginBase, self).__init__(*args, **kwargs)

        # We're overriding the default behavior for CLI test cases here
        self.DEFAULT_SKIP_CONFIG = "0"

        self.parser = argparse.ArgumentParser()
        self.parser.add_argument("-t", "--token", dest="token")
        self.parser.add_argument("--api-key", dest="api_key")
        self.shell = shell.Shell()

        self.CONFIG_DIR = os.path.join(self.TMP_DIR, self.PARENT_DIR)
        self.CONFIG_FILE = os.path.join(self.CONFIG_DIR, self.CONFIG_FILE_NAME)
コード例 #6
0
 def __init__(self, *args, **kwargs):
     super(ActionCommandTestCase, self).__init__(*args, **kwargs)
     self.shell = shell.Shell()
コード例 #7
0
 def __init__(self, *args, **kwargs):
     super(TestAuthToken, self).__init__(*args, **kwargs)
     self.parser = argparse.ArgumentParser()
     self.parser.add_argument('-t', '--token', dest='token')
     self.shell = shell.Shell()
コード例 #8
0
 def __init__(self, *args, **kwargs):
     super(TestExecutionResultFormatter, self).__init__(*args, **kwargs)
     self.shell = shell.Shell()
     self.table = table.SingleRowTable()
     color.DISABLED = True
コード例 #9
0
ファイル: test_shell.py プロジェクト: timff/st2
 def __init__(self, *args, **kwargs):
     super(TestShell, self).__init__(*args, **kwargs)
     self.shell = shell.Shell()
コード例 #10
0
 def __init__(self, *args, **kwargs):
     super(TestExecutionResultFormatter, self).__init__(*args, **kwargs)
     self.shell = shell.Shell()