Always init cfg.CONF before running a test
Always init cfg.CONF before running a test

In all tests cfg.CONF is not (re)initialised correctly
By chance in ceilometer , the only method that fail when conf is not
initialised is cfg.CONF.find_file.
And because some tests do special initialisation (ie: the ones that test
ceilometer.service.prepare_service stuff), the method cfg.CONF.find_file
works when we run all tests.

But if you decide to run only one test (like below) that use find_file it fail
because cfg.CONF is not initialised.

  tox -epy27,pep8 api.v2

Not all configurations opts are impacted but only the CLI opts ones that are
set only when cfg.CONF() is called.

This change initialise cfg.CONF on each test (but the test can
continue to reinitialise it if needed)

Change-Id: I37842e945a7e2908e17d5ce886e17047a36818f7

isyippee/ceilometer,pczerkas/aodh,froyobin/ceilometer,JioCloud/ceilometer,maestro-hybrid-cloud/ceilometer,citrix-openstack-build/ceilometer,rackerlabs/instrumented-ceilometer,redhat-openstack/ceilometer,luogangyi/Ceilometer-oVirt,NeCTAR-RC/ceilometer,NeCTAR-RC/ceilometer,sileht/aodh,citrix-openstack-build/ceilometer,idegtiarov/ceilometer,MisterPup/Ceilometer-Juno-Extension,tanglei528/ceilometer,m1093782566/openstack_org_ceilometer,pkilambi/ceilometer,r-mibu/ceilometer,openstack/ceilometer,pkilambi/ceilometer,NeCTAR-RC/ceilometer,Juniper/ceilometer,openstack/aodh,rickerc/ceilometer_audit,chungg/aodh,tanglei528/ceilometer,MisterPup/Ceilometer-Juno-Extension,Juniper/ceilometer,sileht/aodh,ityaptin/ceilometer,mathslinux/ceilometer,idegtiarov/ceilometer,JioCloud/ceilometer,JioCloud/ceilometer,eayunstack/ceilometer,redhat-openstack/ceilometer,mathslinux/ceilometer,rackerlabs/instrumented-ceilometer,rickerc/ceilometer_audit,fabian4/ceilometer,fabian4/ceilometer,isyippee/ceilometer,pczerkas/aodh,tanglei528/ceilometer,openstack/aodh,openstack/ceilometer,rackerlabs/instrumented-ceilometer,r-mibu/ceilometer,eayunstack/ceilometer,cernops/ceilometer,m1093782566/openstack_org_ceilometer,maestro-hybrid-cloud/ceilometer,rickerc/ceilometer_audit,citrix-openstack-build/ceilometer,luogangyi/Ceilometer-oVirt,chungg/aodh,froyobin/ceilometer,ityaptin/ceilometer,cernops/ceilometer