forked from lix-project/hydra
9c1f36c47c
This makes the exposer choose a random, available port.
28 lines
468 B
Perl
28 lines
468 B
Perl
use strict;
|
|
use warnings;
|
|
use Setup;
|
|
use Hydra::Config;
|
|
use Test2::V0;
|
|
|
|
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
|
|
|);
|
|
|
|
is(getHydraConfig(), {
|
|
queue_runner_metrics_port => 0,
|
|
foo => { bar => "baz" }
|
|
}, "Nested includes work.");
|
|
|
|
done_testing;
|