
* Add a base test class derived from oslotest * Remove py33 support from tox * Cleanup pep8 errors Also, Jenkins requires a test to exist to pass, so this commit also contains a fix for Glance client endpoint rotation and an associated test case. Change-Id: Id9cfbe6cf54c2d5b078cbcb6dcee690915afa7ba
29 lines
940 B
Python
29 lines
940 B
Python
# Copyright 2014 Rackspace Hosting
|
|
# All Rights Reserved.
|
|
#
|
|
# 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 oslotest import base
|
|
|
|
CONF = cfg.CONF
|
|
|
|
|
|
class BaseTestCase(base.BaseTestCase):
|
|
|
|
def flags(self, **kw):
|
|
"""Override flag variables for a test."""
|
|
group = kw.pop('group', None)
|
|
for k, v in kw.iteritems():
|
|
CONF.set_override(k, v, group)
|