summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2013-01-08 21:48:11 +0000
committerMark McLoughlin <markmc@redhat.com>2013-01-08 21:50:04 +0000
commita8973c524c9fe901972ba61f34dafac7438417c9 (patch)
tree032e259a4a26d201c531bc0293047a01659bac09 /tests
parentb17b268a269c4989d76267db5c2d49d4c20bd51d (diff)
downloadoslo-a8973c524c9fe901972ba61f34dafac7438417c9.tar.gz
oslo-a8973c524c9fe901972ba61f34dafac7438417c9.tar.xz
oslo-a8973c524c9fe901972ba61f34dafac7438417c9.zip
Revert "Support lookup of value using "group.key""
This reverts commit 525ac47. There are already two ways to reference an option in a group: CONF.group.key CONF[group].key Adding a third variant doesn't seem ideal. Also, for the specific case of LazyPluggable in Nova, we can easily just pass an optional config group name to the constructor. Change-Id: I1a29a18d90e8af3ce2563bd1b3eeb64422140016
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_cfg.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/unit/test_cfg.py b/tests/unit/test_cfg.py
index 2da085a..ff24c0c 100644
--- a/tests/unit/test_cfg.py
+++ b/tests/unit/test_cfg.py
@@ -1120,12 +1120,6 @@ class OverridesTestCase(BaseTestCase):
self.conf.clear_override('foo', group='blaa')
self.assertEquals(self.conf.blaa.foo, None)
- def test_group_get_group_option(self):
- self.conf.register_group(OptGroup('blaa'))
- self.conf.register_opt(StrOpt('foo', default='foo2'), group='blaa')
- self.conf([])
- self.assertEquals(self.conf['blaa.foo'], 'foo2')
-
def test_cli_bool_default(self):
self.conf.register_cli_opt(BoolOpt('foo'))
self.conf.set_default('foo', True)