Remove functional test dependency on config file
The functional tests currently depend on a physical config file to be
created before the tests can be run. This change removes this
dependency because default values are defined.
Change-Id: I18c9ee72831ebd5ba1357479dcf2160410179779
Kaitlin Farr
8 years ago
49 | 49 | |
50 | 50 | config_to_load = [] |
51 | 51 | local_config = './../../../etc/castellan/castellan-functional.conf' |
52 | main_config = '/etc/castellan/castellan-functional.conf' | |
52 | 53 | if os.path.isfile(config_file): |
53 | 54 | config_to_load.append(config_file) |
54 | 55 | elif os.path.isfile(local_config): |
55 | 56 | config_to_load.append(local_config) |
56 | else: | |
57 | config_to_load.append('/etc/castellan/castellan-functional.conf') | |
57 | elif os.path.isfile(main_config): | |
58 | config_to_load.append(main_config) | |
58 | 59 | |
59 | 60 | TEST_CONF( |
60 | 61 | (), # Required to load an anonymous config |