コード例 #1
0
 def setUp(self):
     super(TempestConfigfileManagerTestCase, self).setUp()
     env = fakes.FakeEnvironment(
         env_uuid="fake_env",
         data={
             "platforms": {
                 "openstack": {
                     "platform_data": {
                         "admin": CRED
                     }
                 }
             }
         }
     )
     with mock.patch("%s.credential.OpenStackCredential" % PATH,
                     return_value=fakes.FakeCredential(**CRED)):
         self.tempest = config.TempestConfigfileManager(env)
コード例 #2
0
 def configure(self, extra_options=None):
     """Configure Tempest."""
     utils.create_dir(self.home_dir)
     tcm = config.TempestConfigfileManager(self.verifier.deployment)
     return tcm.create(self.configfile, extra_options)
コード例 #3
0
 def setUp(self):
     super(TempestConfigfileManagerTestCase, self).setUp()
     deployment = fakes.FakeDeployment(uuid="fake_deployment",
                                       admin=fakes.FakeCredential(**CRED))
     self.tempest = config.TempestConfigfileManager(deployment)