2013-09-20 20:11:13 +00:00
|
|
|
from .. import config
|
|
|
|
|
|
|
|
|
|
|
|
class TestConfig(object):
|
2013-09-24 15:09:04 +00:00
|
|
|
def test_get_ceph_git_base_default(self):
|
2013-09-20 20:11:13 +00:00
|
|
|
conf_obj = config.Config()
|
|
|
|
conf_obj.teuthology_yaml = ''
|
|
|
|
conf_obj.load_files()
|
|
|
|
assert conf_obj.ceph_git_base_url == "https://github.com/ceph/"
|
2013-09-24 15:09:04 +00:00
|
|
|
|
|
|
|
def test_set_ceph_git_base_via_private(self):
|
|
|
|
conf_obj = config.Config()
|
2013-09-20 20:11:13 +00:00
|
|
|
conf_obj._Config__conf['ceph_git_base_url'] = "git://ceph.com/"
|
|
|
|
assert conf_obj.ceph_git_base_url == "git://ceph.com/"
|
2013-09-30 19:21:43 +00:00
|
|
|
|
|
|
|
def test_set_nonstandard(self):
|
|
|
|
conf_obj = config.Config()
|
|
|
|
conf_obj.something = 'something else'
|
|
|
|
assert conf_obj.something == 'something else'
|