2021-07-26 17:13:27 +00:00
|
|
|
use strict;
|
2021-08-19 20:36:43 +00:00
|
|
|
use warnings;
|
2021-07-26 17:13:27 +00:00
|
|
|
use Setup;
|
2022-02-10 02:06:28 +00:00
|
|
|
use Hydra::Config;
|
|
|
|
use Test2::V0;
|
2021-07-26 17:13:27 +00:00
|
|
|
|
|
|
|
my %ctx = test_init(
|
|
|
|
use_external_destination_store => 0,
|
|
|
|
hydra_config => "include foo.conf"
|
|
|
|
);
|
|
|
|
|
|
|
|
write_file($ctx{'tmpdir'} . "/foo.conf", q|
|
|
|
|
<foo>
|
|
|
|
include bar.conf
|
|
|
|
</foo>
|
|
|
|
|);
|
|
|
|
|
|
|
|
write_file($ctx{'tmpdir'} . "/bar.conf", q|
|
|
|
|
bar = baz
|
|
|
|
|);
|
|
|
|
|
2022-02-10 02:06:28 +00:00
|
|
|
is(getHydraConfig(), {
|
2022-04-06 17:58:57 +00:00
|
|
|
queue_runner_metrics_address => "127.0.0.1:0",
|
2021-07-26 17:13:27 +00:00
|
|
|
foo => { bar => "baz" }
|
|
|
|
}, "Nested includes work.");
|
|
|
|
|
|
|
|
done_testing;
|