dyndns2: Add comment explaining why keys are listed in test
This commit is contained in:
parent
13a66c79bb
commit
2330543cc8
1 changed files with 3 additions and 1 deletions
|
@ -267,7 +267,9 @@ for my $tc (@test_cases) {
|
||||||
local $ddclient::_l = $l;
|
local $ddclient::_l = $l;
|
||||||
ddclient::nic_dyndns2_update(sort(keys(%{$tc->{cfg}})));
|
ddclient::nic_dyndns2_update(sort(keys(%{$tc->{cfg}})));
|
||||||
}
|
}
|
||||||
# These are the properties in %ddclient::config to check against $tc->{wantstatus}.
|
# These are the properties in %ddclient::config to check against $tc->{wantstatus}. Keys are
|
||||||
|
# explicitly listed here rather than read from $tc->{wantstatus} to ensure that entries that
|
||||||
|
# should not exist (e.g., wantipv4 and friends) are deleted (or never set).
|
||||||
my %statuskeys = map(($_ => undef), qw(atime ip ipv4 ipv6 mtime status status-ipv4 status-ipv6
|
my %statuskeys = map(($_ => undef), qw(atime ip ipv4 ipv6 mtime status status-ipv4 status-ipv6
|
||||||
wantip wantipv4 wantipv6 wtime));
|
wantip wantipv4 wantipv6 wtime));
|
||||||
my %gotstatus;
|
my %gotstatus;
|
||||||
|
|
Loading…
Reference in a new issue