mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-05 04:34:32 +08:00
fix some tests
This commit is contained in:
parent
e242f5a152
commit
5c24f6ce39
4 changed files with 72 additions and 72 deletions
|
@ -17,6 +17,7 @@ type DomainConfig struct {
|
|||
Nameservers []*Nameserver `json:"nameservers,omitempty"`
|
||||
KeepUnknown bool `json:"keepunknown,omitempty"`
|
||||
IgnoredLabels []string `json:"ignored_labels,omitempty"`
|
||||
//DNSSEC bool `json:"dnssec,omitempty"`
|
||||
|
||||
// These fields contain instantiated provider instances once everything is linked up.
|
||||
// This linking is in two phases:
|
||||
|
|
|
@ -1,61 +1,58 @@
|
|||
{
|
||||
"registrars": [],
|
||||
"dns_providers": [],
|
||||
"domains": [
|
||||
{
|
||||
"name": "foo.com",
|
||||
"registrar": "none",
|
||||
"dnsProviders": {},
|
||||
"records": [
|
||||
{
|
||||
"type": "SSHFP",
|
||||
"algorithm": 1,
|
||||
"fingerprint": 1,
|
||||
"value": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c"
|
||||
},
|
||||
{
|
||||
"type": "SSHFP",
|
||||
"algorithm": 1,
|
||||
"fingerprint": 2,
|
||||
"value": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc"
|
||||
},
|
||||
{
|
||||
"type": "SSHFP",
|
||||
"algorithm": 2,
|
||||
"fingerprint": 1,
|
||||
"value": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c"
|
||||
},
|
||||
{
|
||||
"type": "SSHFP",
|
||||
"algorithm": 2,
|
||||
"fingerprint": 2,
|
||||
"value": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc"
|
||||
},
|
||||
{
|
||||
"type": "SSHFP",
|
||||
"algorithm": 3,
|
||||
"fingerprint": 1,
|
||||
"value": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c"
|
||||
},
|
||||
{
|
||||
"type": "SSHFP",
|
||||
"algorithm": 3,
|
||||
"fingerprint": 2,
|
||||
"value": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc"
|
||||
},
|
||||
{
|
||||
"type": "SSHFP",
|
||||
"algorithm": 4,
|
||||
"fingerprint": 1,
|
||||
"value": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c"
|
||||
},
|
||||
{
|
||||
"type": "SSHFP",
|
||||
"algorithm": 4,
|
||||
"fingerprint": 2,
|
||||
"value": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
"domains": [{
|
||||
"name": "foo.com",
|
||||
"registrar": "none",
|
||||
"dnsProviders": {},
|
||||
"records": [{
|
||||
"type": "SSHFP",
|
||||
"name": "@",
|
||||
"target": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c",
|
||||
"sshfpalgorithm": 1,
|
||||
"sshfpfingerprint": 1
|
||||
}, {
|
||||
"type": "SSHFP",
|
||||
"name": "@",
|
||||
"target": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc",
|
||||
"sshfpalgorithm": 1,
|
||||
"sshfpfingerprint": 2
|
||||
}, {
|
||||
"type": "SSHFP",
|
||||
"name": "@",
|
||||
"target": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c",
|
||||
"sshfpalgorithm": 2,
|
||||
"sshfpfingerprint": 1
|
||||
}, {
|
||||
"type": "SSHFP",
|
||||
"name": "@",
|
||||
"target": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc",
|
||||
"sshfpalgorithm": 2,
|
||||
"sshfpfingerprint": 2
|
||||
}, {
|
||||
"type": "SSHFP",
|
||||
"name": "@",
|
||||
"target": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c",
|
||||
"sshfpalgorithm": 3,
|
||||
"sshfpfingerprint": 1
|
||||
}, {
|
||||
"type": "SSHFP",
|
||||
"name": "@",
|
||||
"target": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc",
|
||||
"sshfpalgorithm": 3,
|
||||
"sshfpfingerprint": 2
|
||||
}, {
|
||||
"type": "SSHFP",
|
||||
"name": "@",
|
||||
"target": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c",
|
||||
"sshfpalgorithm": 4,
|
||||
"sshfpfingerprint": 1
|
||||
}, {
|
||||
"type": "SSHFP",
|
||||
"name": "@",
|
||||
"target": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc",
|
||||
"sshfpalgorithm": 4,
|
||||
"sshfpfingerprint": 2
|
||||
}]
|
||||
}]
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
D("foo.com","none",
|
||||
NAPTR("foo.com",100,10,"U","E2U+sip","!^.*$!sip:customer-service@example.com!","example"),
|
||||
NAPTR("foo.com",102,10,"U","E2U+email","!^.*$!mailto:information@example.com!","example")
|
||||
NAPTR("@",100,10,"U","E2U+sip","!^.*$!sip:customer-service@example.com!","example"),
|
||||
NAPTR("@",102,10,"U","E2U+email","!^.*$!mailto:information@example.com!","example")
|
||||
);
|
||||
|
|
|
@ -9,21 +9,23 @@
|
|||
"records": [
|
||||
{
|
||||
"type": "NAPTR",
|
||||
"order": 100,
|
||||
"preference": 10,
|
||||
"flags": "U",
|
||||
"service": "E2U+sip",
|
||||
"regexp": "!^.*$!sip:customer-service@example.com!",
|
||||
"target": "example"
|
||||
"name": "@",
|
||||
"target": "example",
|
||||
"naptrorder": 100,
|
||||
"naptrpreference": 10,
|
||||
"naptrflags": "U",
|
||||
"naptrservice": "E2U+sip",
|
||||
"naptrregexp": "!^.*$!sip:customer-service@example.com!"
|
||||
},
|
||||
{
|
||||
"type": "NAPTR",
|
||||
"order": 102,
|
||||
"preference": 10,
|
||||
"flags": "U",
|
||||
"service": "E2U+email",
|
||||
"regexp": "!^.*$!mailto:information@example.com!",
|
||||
"target": "example"
|
||||
"name": "@",
|
||||
"target": "example",
|
||||
"naptrorder": 102,
|
||||
"naptrpreference": 10,
|
||||
"naptrflags": "U",
|
||||
"naptrservice": "E2U+email",
|
||||
"naptrregexp": "!^.*$!mailto:information@example.com!"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue