]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: unit tests for config::expand_meta 1046/head
authorLoic Dachary <loic@dachary.org>
Sun, 5 Jan 2014 14:49:57 +0000 (15:49 +0100)
committerLoic Dachary <loic@dachary.org>
Sun, 5 Jan 2014 15:11:43 +0000 (16:11 +0100)
commit3f34dc7d5272e7fe61d1efb2712a9defd2ce329c
tree0d2517c4e6fcc379635bebd805e7ebb25d90579a
parent94854090fb9fc5228cf17c43fd0d762cc8c6c30d
common: unit tests for config::expand_meta

Part of the config.cc tests are in test/confutils.cc but they do not
cover meta variable expansion. Create unittest_config for config.{h,cc}
specific tests.

The test_md_config_t is made a friend of md_config_t to allow testing
private and protected methods.

test/cli/ceph-conf/show-config-value.t is used to check that the human
readable message message shows as expected when there is an expansion
loop.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/common/config.h
src/test/Makefile.am
src/test/cli/ceph-conf/show-config-value.t
src/test/common/test_config.cc [new file with mode: 0644]