Skip to content

Commit

Permalink
cleanup: utils.octodns.fakeSOA
Browse files Browse the repository at this point in the history
  • Loading branch information
Janik-Haag committed May 3, 2024
1 parent 3ca5c87 commit b959171
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 33 deletions.
20 changes: 9 additions & 11 deletions utils/octodns.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,15 @@
(lib.recursiveUpdate entries {
${zone}.soa = {
ttl = 60;
data = [
{
rname = "admin.example.invalid";
mname = "ns.example.invalid";
serial = 1970010100;
refresh = 7200;
retry = 3600;
ttl = 60;
expire = 1209600;
}
];
data = {
rname = "admin.example.invalid";
mname = "ns.example.invalid";
serial = 1970010100;
refresh = 7200;
retry = 3600;
ttl = 60;
expire = 1209600;
};
};
})
) dnsConfig;
Expand Down
40 changes: 18 additions & 22 deletions utils/tests/octodns.nix
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,15 @@
ttl = 60;
};
soa = {
data = [
{
expire = 1209600;
mname = "ns.example.invalid";
refresh = 7200;
retry = 3600;
rname = "admin.example.invalid";
serial = 1970010100;
ttl = 60;
}
];
data = {
expire = 1209600;
mname = "ns.example.invalid";
refresh = 7200;
retry = 3600;
rname = "admin.example.invalid";
serial = 1970010100;
ttl = 60;
};
ttl = 60;
};
};
Expand Down Expand Up @@ -212,17 +210,15 @@
ttl = 60;
};
soa = {
data = [
{
expire = 1209600;
mname = "ns.example.invalid";
refresh = 7200;
retry = 3600;
rname = "admin.example.invalid";
serial = 1970010100;
ttl = 60;
}
];
data = {
expire = 1209600;
mname = "ns.example.invalid";
refresh = 7200;
retry = 3600;
rname = "admin.example.invalid";
serial = 1970010100;
ttl = 60;
};
ttl = 60;
};
};
Expand Down

0 comments on commit b959171

Please sign in to comment.