2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-22 02:02:14 +00:00
Emerle, Ryan c3d4e16da4
Updates
- Fix issues with `SSHFP` record type
- Add `sbt.sh` helper script
- Update configuration file (`application.conf`) for consistency
- Update documentation
2021-12-03 12:16:21 -05:00

125 lines
2.9 KiB
Python

class TestData:
A = {
"zoneId": None,
"name": "test-create-a-ok",
"type": "A",
"ttl": 100,
"account": "foo",
"records": [
{
"address": "10.1.1.1"
},
{
"address": "10.2.2.2"
}
]
}
AAAA = {
"zoneId": None,
"name": "test-create-aaaa-ok",
"type": "AAAA",
"ttl": 100,
"account": "foo",
"records": [
{
"address": "2001:db8:0:0:0:0:0:3"
},
{
"address": "2002:db8:0:0:0:0:0:3"
}
]
}
CNAME = {
"zoneId": None,
"name": "test-create-cname-ok",
"type": "CNAME",
"ttl": 100,
"account": "foo",
"records": [
{
"cname": "cname."
}
]
}
MX = {
"zoneId": None,
"name": "test-create-mx-ok",
"type": "MX",
"ttl": 100,
"account": "foo",
"records": [
{
"preference": 100,
"exchange": "exchange."
}
]
}
PTR = {
"zoneId": None,
"name": "10.20",
"type": "PTR",
"ttl": 100,
"account": "foo",
"records": [
{
"ptrdname": "ptr."
}
]
}
SPF = {
"zoneId": None,
"name": "test-create-spf-ok",
"type": "SPF",
"ttl": 100,
"account": "foo",
"records": [
{
"text": "spf."
}
]
}
SRV = {
"zoneId": None,
"name": "test-create-srv-ok",
"type": "SRV",
"ttl": 100,
"account": "foo",
"records": [
{
"priority": 1,
"weight": 2,
"port": 8000,
"target": "srv."
}
]
}
SSHFP = {
"zoneId": None,
"name": "test-create-sshfp-ok",
"type": "SSHFP",
"ttl": 100,
"account": "foo",
"records": [
{
"algorithm": 1,
"type": 1,
"fingerprint": "123456789ABCDEF67890123456789ABCDEF67890"
}
]
}
TXT = {
"zoneId": None,
"name": "test-create-txt-ok",
"type": "TXT",
"ttl": 100,
"account": "foo",
"records": [
{
"text": "some text"
}
]
}
RECORDS = [("A", A), ("AAAA", AAAA), ("CNAME", CNAME), ("MX", MX), ("PTR", PTR), ("SPF", SPF), ("SRV", SRV), ("SSHFP", SSHFP), ("TXT", TXT)]
FORWARD_RECORDS = [("A", A), ("AAAA", AAAA), ("CNAME", CNAME), ("MX", MX), ("SPF", SPF), ("SRV", SRV), ("SSHFP", SSHFP), ("TXT", TXT)]
REVERSE_RECORDS = [("CNAME", CNAME), ("PTR", PTR), ("TXT", TXT)]