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)
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)
def setUp(self): super(TempestConfigfileManagerTestCase, self).setUp() deployment = fakes.FakeDeployment(uuid="fake_deployment", admin=fakes.FakeCredential(**CRED)) self.tempest = config.TempestConfigfileManager(deployment)