| # Copyright 2013 IBM Corp. |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| # not use this file except in compliance with the License. You may obtain |
| # a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| # License for the specific language governing permissions and limitations |
| # under the License. |
| |
| from oslo.config import cfg |
| |
| from tempest import config |
| from tempest.openstack.common.fixture import config as conf_fixture |
| |
| |
| class ConfigFixture(conf_fixture.Config): |
| |
| def __init__(self): |
| config.register_opts() |
| super(ConfigFixture, self).__init__() |
| |
| def setUp(self): |
| super(ConfigFixture, self).setUp() |
| self.conf.set_default('build_interval', 10, group='compute') |
| self.conf.set_default('build_timeout', 10, group='compute') |
| self.conf.set_default('disable_ssl_certificate_validation', True, |
| group='identity') |
| self.conf.set_default('uri', 'http://fake_uri.com/auth', |
| group='identity') |
| self.conf.set_default('uri_v3', 'http://fake_uri_v3.com/auth', |
| group='identity') |
| self.conf.set_default('neutron', True, group='service_available') |
| self.conf.set_default('heat', True, group='service_available') |
| |
| |
| class FakePrivate(config.TempestConfigPrivate): |
| def __init__(self): |
| cfg.CONF([], default_config_files=[]) |
| self._set_attrs() |