Exemple #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'))
Exemple #2
0
    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()
Exemple #3
0
    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()
    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()
Exemple #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)
Exemple #6
0
 def __init__(self, *args, **kwargs):
     super(ActionCommandTestCase, self).__init__(*args, **kwargs)
     self.shell = shell.Shell()
Exemple #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()
Exemple #8
0
 def __init__(self, *args, **kwargs):
     super(TestExecutionResultFormatter, self).__init__(*args, **kwargs)
     self.shell = shell.Shell()
     self.table = table.SingleRowTable()
     color.DISABLED = True
Exemple #9
0
 def __init__(self, *args, **kwargs):
     super(TestShell, self).__init__(*args, **kwargs)
     self.shell = shell.Shell()
Exemple #10
0
 def __init__(self, *args, **kwargs):
     super(TestExecutionResultFormatter, self).__init__(*args, **kwargs)
     self.shell = shell.Shell()