mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
fix some tests
This commit is contained in:
@@ -17,6 +17,7 @@ type DomainConfig struct {
|
|||||||
Nameservers []*Nameserver `json:"nameservers,omitempty"`
|
Nameservers []*Nameserver `json:"nameservers,omitempty"`
|
||||||
KeepUnknown bool `json:"keepunknown,omitempty"`
|
KeepUnknown bool `json:"keepunknown,omitempty"`
|
||||||
IgnoredLabels []string `json:"ignored_labels,omitempty"`
|
IgnoredLabels []string `json:"ignored_labels,omitempty"`
|
||||||
|
//DNSSEC bool `json:"dnssec,omitempty"`
|
||||||
|
|
||||||
// These fields contain instantiated provider instances once everything is linked up.
|
// These fields contain instantiated provider instances once everything is linked up.
|
||||||
// This linking is in two phases:
|
// This linking is in two phases:
|
||||||
|
@@ -1,61 +1,58 @@
|
|||||||
{
|
{
|
||||||
"registrars": [],
|
"registrars": [],
|
||||||
"dns_providers": [],
|
"dns_providers": [],
|
||||||
"domains": [
|
"domains": [{
|
||||||
{
|
|
||||||
"name": "foo.com",
|
"name": "foo.com",
|
||||||
"registrar": "none",
|
"registrar": "none",
|
||||||
"dnsProviders": {},
|
"dnsProviders": {},
|
||||||
"records": [
|
"records": [{
|
||||||
{
|
|
||||||
"type": "SSHFP",
|
"type": "SSHFP",
|
||||||
"algorithm": 1,
|
"name": "@",
|
||||||
"fingerprint": 1,
|
"target": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c",
|
||||||
"value": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c"
|
"sshfpalgorithm": 1,
|
||||||
},
|
"sshfpfingerprint": 1
|
||||||
{
|
}, {
|
||||||
"type": "SSHFP",
|
"type": "SSHFP",
|
||||||
"algorithm": 1,
|
"name": "@",
|
||||||
"fingerprint": 2,
|
"target": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc",
|
||||||
"value": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc"
|
"sshfpalgorithm": 1,
|
||||||
},
|
"sshfpfingerprint": 2
|
||||||
{
|
}, {
|
||||||
"type": "SSHFP",
|
"type": "SSHFP",
|
||||||
"algorithm": 2,
|
"name": "@",
|
||||||
"fingerprint": 1,
|
"target": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c",
|
||||||
"value": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c"
|
"sshfpalgorithm": 2,
|
||||||
},
|
"sshfpfingerprint": 1
|
||||||
{
|
}, {
|
||||||
"type": "SSHFP",
|
"type": "SSHFP",
|
||||||
"algorithm": 2,
|
"name": "@",
|
||||||
"fingerprint": 2,
|
"target": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc",
|
||||||
"value": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc"
|
"sshfpalgorithm": 2,
|
||||||
},
|
"sshfpfingerprint": 2
|
||||||
{
|
}, {
|
||||||
"type": "SSHFP",
|
"type": "SSHFP",
|
||||||
"algorithm": 3,
|
"name": "@",
|
||||||
"fingerprint": 1,
|
"target": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c",
|
||||||
"value": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c"
|
"sshfpalgorithm": 3,
|
||||||
},
|
"sshfpfingerprint": 1
|
||||||
{
|
}, {
|
||||||
"type": "SSHFP",
|
"type": "SSHFP",
|
||||||
"algorithm": 3,
|
"name": "@",
|
||||||
"fingerprint": 2,
|
"target": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc",
|
||||||
"value": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc"
|
"sshfpalgorithm": 3,
|
||||||
},
|
"sshfpfingerprint": 2
|
||||||
{
|
}, {
|
||||||
"type": "SSHFP",
|
"type": "SSHFP",
|
||||||
"algorithm": 4,
|
"name": "@",
|
||||||
"fingerprint": 1,
|
"target": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c",
|
||||||
"value": "66c7d5540b7d75a1fb4c84febfa178ad99bdd67c"
|
"sshfpalgorithm": 4,
|
||||||
},
|
"sshfpfingerprint": 1
|
||||||
{
|
}, {
|
||||||
"type": "SSHFP",
|
"type": "SSHFP",
|
||||||
"algorithm": 4,
|
"name": "@",
|
||||||
"fingerprint": 2,
|
"target": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc",
|
||||||
"value": "745a635bc46a397a5c4f21d437483005bcc40d7511ff15fbfafe913a081559bc"
|
"sshfpalgorithm": 4,
|
||||||
}
|
"sshfpfingerprint": 2
|
||||||
]
|
}]
|
||||||
}
|
}]
|
||||||
]
|
|
||||||
}
|
}
|
@@ -1,4 +1,4 @@
|
|||||||
D("foo.com","none",
|
D("foo.com","none",
|
||||||
NAPTR("foo.com",100,10,"U","E2U+sip","!^.*$!sip:customer-service@example.com!","example"),
|
NAPTR("@",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("@",102,10,"U","E2U+email","!^.*$!mailto:information@example.com!","example")
|
||||||
);
|
);
|
||||||
|
@@ -9,21 +9,23 @@
|
|||||||
"records": [
|
"records": [
|
||||||
{
|
{
|
||||||
"type": "NAPTR",
|
"type": "NAPTR",
|
||||||
"order": 100,
|
"name": "@",
|
||||||
"preference": 10,
|
"target": "example",
|
||||||
"flags": "U",
|
"naptrorder": 100,
|
||||||
"service": "E2U+sip",
|
"naptrpreference": 10,
|
||||||
"regexp": "!^.*$!sip:customer-service@example.com!",
|
"naptrflags": "U",
|
||||||
"target": "example"
|
"naptrservice": "E2U+sip",
|
||||||
|
"naptrregexp": "!^.*$!sip:customer-service@example.com!"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "NAPTR",
|
"type": "NAPTR",
|
||||||
"order": 102,
|
"name": "@",
|
||||||
"preference": 10,
|
"target": "example",
|
||||||
"flags": "U",
|
"naptrorder": 102,
|
||||||
"service": "E2U+email",
|
"naptrpreference": 10,
|
||||||
"regexp": "!^.*$!mailto:information@example.com!",
|
"naptrflags": "U",
|
||||||
"target": "example"
|
"naptrservice": "E2U+email",
|
||||||
|
"naptrregexp": "!^.*$!mailto:information@example.com!"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user