Example #1
0
 def setUp(self):
     super(TestShellTokenEndpointAuthEnv, self).setUp()
     env = {
         "OS_TOKEN": DEFAULT_TOKEN,
         "OS_URL": DEFAULT_SERVICE_URL,
     }
     self.useFixture(osc_lib_test_utils.EnvFixture(env.copy()))
Example #2
0
 def setUp(self):
     super(TestShellCliPrecedence, self).setUp()
     env = {
         'OS_CLOUD': 'megacloud',
         'OS_REGION_NAME': 'occ-env',
     }
     self.useFixture(utils.EnvFixture(env.copy()))
Example #3
0
 def setUp(self):
     super(TestShellCli, self).setUp()
     env = {
         "OS_COMPUTE_API_VERSION": DEFAULT_COMPUTE_API_VERSION,
         "OS_IDENTITY_API_VERSION": DEFAULT_IDENTITY_API_VERSION,
         "OS_IMAGE_API_VERSION": DEFAULT_IMAGE_API_VERSION,
         "OS_VOLUME_API_VERSION": DEFAULT_VOLUME_API_VERSION,
         "OS_NETWORK_API_VERSION": DEFAULT_NETWORK_API_VERSION,
     }
     self.useFixture(osc_lib_test_utils.EnvFixture(env.copy()))
Example #4
0
    def setUp(self):
        super(TestIntegV2ProjectName, self).setUp()
        env = {
            "OS_AUTH_URL": test_base.V2_AUTH_URL,
            "OS_PROJECT_NAME": test_shell.DEFAULT_PROJECT_NAME,
            "OS_USERNAME": test_shell.DEFAULT_USERNAME,
            "OS_PASSWORD": test_shell.DEFAULT_PASSWORD,
            "OS_IDENTITY_API_VERSION": "2",
        }
        self.useFixture(osc_lib_utils.EnvFixture(copy.deepcopy(env)))

        self.token = test_base.make_v2_token(self.requests_mock)
    def setUp(self):
        super(TestIntegShellCliV3Prompt, self).setUp()
        env = {
            "OS_AUTH_URL": test_base.V3_AUTH_URL,
            "OS_PROJECT_DOMAIN_ID": test_shell.DEFAULT_PROJECT_DOMAIN_ID,
            "OS_USER_DOMAIN_ID": test_shell.DEFAULT_USER_DOMAIN_ID,
            "OS_USERNAME": test_shell.DEFAULT_USERNAME,
            "OS_IDENTITY_API_VERSION": "3",
        }
        self.useFixture(osc_lib_utils.EnvFixture(copy.deepcopy(env)))

        self.token = test_base.make_v3_token(self.requests_mock)
    def setUp(self):
        super(TestIntegShellCliPrecedence, self).setUp()
        env = {
            "OS_AUTH_URL": test_base.V3_AUTH_URL,
            "OS_PROJECT_DOMAIN_ID": test_shell.DEFAULT_PROJECT_DOMAIN_ID,
            "OS_USER_DOMAIN_ID": test_shell.DEFAULT_USER_DOMAIN_ID,
            "OS_USERNAME": test_shell.DEFAULT_USERNAME,
            "OS_IDENTITY_API_VERSION": "3",
        }
        self.useFixture(osc_lib_utils.EnvFixture(copy.deepcopy(env)))

        self.token = test_base.make_v3_token(self.requests_mock)

        # Patch a v3 auth URL into the o-c-c data
        test_shell.PUBLIC_1['public-clouds']['megadodo']['auth']['auth_url'] \
            = test_base.V3_AUTH_URL
Example #7
0
 def setUp(self):
     super(TestShellOptions, self).setUp()
     self.useFixture(osc_lib_test_utils.EnvFixture())
Example #8
0
 def setUp(self):
     super(TestShellCli, self).setUp()
     env = {}
     self.useFixture(utils.EnvFixture(env.copy()))
Example #9
0
 def setUp(self):
     super(TestShellHelp, self).setUp()
     self.useFixture(utils.EnvFixture())
Example #10
0
 def setUp(self):
     super(TestIntegShellCliNoAuth, self).setUp()
     env = {}
     self.useFixture(osc_lib_utils.EnvFixture(copy.deepcopy(env)))