Comment 2 for bug 1426369

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/159863
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=1349891fce528365e5d1abce95d019ce40275234
Submitter: Jenkins
Branch: master

commit 1349891fce528365e5d1abce95d019ce40275234
Author: Ihar Hrachyshka <email address hidden>
Date: Fri Feb 27 15:19:47 2015 +0100

    tests: initialize policy in BaseTestCase

    This is needed to avoid test cases breaking policy file search code from
    oslo.config by mocking out stdlib functions from os module like
    os.path.isdir or os.path.exists.

    This also allows us to remove explicit policy setup from test_api_v2 and
    test_policy files.

    Note that for test_netns_cleanup, test_ovs_cleanup, and test_config, we
    removed test_setup_conf test cases. They test a function that is used in
    other test cases only, and hence do not belong to the suite. This allows
    us to avoid hacks around those test cases that do not play nice with
    global config-file options we set in BaseTestCase.

    Change-Id: If14a3c741837193ad104467f0cf4486a6a386e6d
    Closes-Bug: #1426369