2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-22 18:17:07 +00:00

125 lines
2.9 KiB
Python
Raw Normal View History

2018-07-27 10:18:29 -04:00
class TestData:
A = {
"zoneId": None,
"name": "test-create-a-ok",
"type": "A",
"ttl": 100,
"account": "foo",
"records": [
2018-07-27 10:18:29 -04:00
{
"address": "10.1.1.1"
2018-07-27 10:18:29 -04:00
},
{
"address": "10.2.2.2"
2018-07-27 10:18:29 -04:00
}
]
}
AAAA = {
"zoneId": None,
"name": "test-create-aaaa-ok",
"type": "AAAA",
"ttl": 100,
"account": "foo",
"records": [
2018-07-27 10:18:29 -04:00
{
"address": "2001:db8:0:0:0:0:0:3"
2018-07-27 10:18:29 -04:00
},
{
"address": "2002:db8:0:0:0:0:0:3"
2018-07-27 10:18:29 -04:00
}
]
}
CNAME = {
"zoneId": None,
"name": "test-create-cname-ok",
"type": "CNAME",
"ttl": 100,
"account": "foo",
"records": [
2018-07-27 10:18:29 -04:00
{
"cname": "cname."
2018-07-27 10:18:29 -04:00
}
]
}
MX = {
"zoneId": None,
"name": "test-create-mx-ok",
"type": "MX",
"ttl": 100,
"account": "foo",
"records": [
2018-07-27 10:18:29 -04:00
{
"preference": 100,
"exchange": "exchange."
2018-07-27 10:18:29 -04:00
}
]
}
PTR = {
"zoneId": None,
"name": "10.20",
"type": "PTR",
"ttl": 100,
"account": "foo",
"records": [
2018-07-27 10:18:29 -04:00
{
"ptrdname": "ptr."
2018-07-27 10:18:29 -04:00
}
]
}
SPF = {
"zoneId": None,
"name": "test-create-spf-ok",
"type": "SPF",
"ttl": 100,
"account": "foo",
"records": [
2018-07-27 10:18:29 -04:00
{
"text": "spf."
2018-07-27 10:18:29 -04:00
}
]
}
SRV = {
"zoneId": None,
"name": "test-create-srv-ok",
"type": "SRV",
"ttl": 100,
"account": "foo",
"records": [
2018-07-27 10:18:29 -04:00
{
"priority": 1,
"weight": 2,
"port": 8000,
"target": "srv."
2018-07-27 10:18:29 -04:00
}
]
}
SSHFP = {
"zoneId": None,
"name": "test-create-sshfp-ok",
"type": "SSHFP",
"ttl": 100,
"account": "foo",
"records": [
2018-07-27 10:18:29 -04:00
{
"algorithm": 1,
"type": 1,
"fingerprint": "123456789ABCDEF67890123456789ABCDEF67890"
2018-07-27 10:18:29 -04:00
}
]
}
TXT = {
"zoneId": None,
"name": "test-create-txt-ok",
"type": "TXT",
"ttl": 100,
"account": "foo",
"records": [
2018-07-27 10:18:29 -04:00
{
"text": "some text"
2018-07-27 10:18:29 -04:00
}
]
}
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)]