Skip to content

Commit

Permalink
Add SRV record to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Dec 13, 2023
1 parent 59c9f8d commit 9b99cdd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/tests/debug.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ in
"example.org" = {
cname = { data = [ "www.example.com" ]; ttl = 60; };
};
"_xmpp._tcp.example.org" = {
srv = { data = [ { port = 5223; priority = 10; weight = 5; target = "host1.example.com."; } ]; ttl = 60; };
};
};
};
};
Expand Down
3 changes: 3 additions & 0 deletions utils/tests/domains.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@
"example.org" = {
cname = { data = [ "www.example.com" ]; ttl = 60; };
};
"_xmpp._tcp.example.org" = {
srv = { data = [ { port = 5223; priority = 10; weight = 5; target = "host1.example.com."; } ]; ttl = 60; };
};
};
};
};
Expand Down
8 changes: 8 additions & 0 deletions utils/tests/resources/dnsConfig.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ in
"" = {
cname.data = "www.example.com";
};
"_xmpp._tcp" = {
srv.data = {
priority = 10;
weight = 5;
port = 5223;
target = "host1.example.com";
};
};
};
};
};
Expand Down

0 comments on commit 9b99cdd

Please sign in to comment.