mirror of
https://github.com/TwiN/gatus.git
synced 2025-02-16 10:20:00 +01:00
test: Replace DNS 1.1.1.1 by 8.8.8.8
This commit is contained in:
parent
d24ff5bd07
commit
114b78c75c
@ -22,7 +22,7 @@ func TestIntegrationQuery(t *testing.T) {
|
|||||||
QueryType: "A",
|
QueryType: "A",
|
||||||
QueryName: "example.com.",
|
QueryName: "example.com.",
|
||||||
},
|
},
|
||||||
inputURL: "1.1.1.1",
|
inputURL: "8.8.8.8",
|
||||||
expectedDNSCode: "NOERROR",
|
expectedDNSCode: "NOERROR",
|
||||||
expectedBody: "93.184.216.34",
|
expectedBody: "93.184.216.34",
|
||||||
},
|
},
|
||||||
@ -32,7 +32,7 @@ func TestIntegrationQuery(t *testing.T) {
|
|||||||
QueryType: "AAAA",
|
QueryType: "AAAA",
|
||||||
QueryName: "example.com.",
|
QueryName: "example.com.",
|
||||||
},
|
},
|
||||||
inputURL: "1.1.1.1",
|
inputURL: "8.8.8.8",
|
||||||
expectedDNSCode: "NOERROR",
|
expectedDNSCode: "NOERROR",
|
||||||
expectedBody: "2606:2800:220:1:248:1893:25c8:1946",
|
expectedBody: "2606:2800:220:1:248:1893:25c8:1946",
|
||||||
},
|
},
|
||||||
@ -42,7 +42,7 @@ func TestIntegrationQuery(t *testing.T) {
|
|||||||
QueryType: "CNAME",
|
QueryType: "CNAME",
|
||||||
QueryName: "en.wikipedia.org.",
|
QueryName: "en.wikipedia.org.",
|
||||||
},
|
},
|
||||||
inputURL: "1.1.1.1",
|
inputURL: "8.8.8.8",
|
||||||
expectedDNSCode: "NOERROR",
|
expectedDNSCode: "NOERROR",
|
||||||
expectedBody: "dyna.wikimedia.org.",
|
expectedBody: "dyna.wikimedia.org.",
|
||||||
},
|
},
|
||||||
@ -52,7 +52,7 @@ func TestIntegrationQuery(t *testing.T) {
|
|||||||
QueryType: "MX",
|
QueryType: "MX",
|
||||||
QueryName: "example.com.",
|
QueryName: "example.com.",
|
||||||
},
|
},
|
||||||
inputURL: "1.1.1.1",
|
inputURL: "8.8.8.8",
|
||||||
expectedDNSCode: "NOERROR",
|
expectedDNSCode: "NOERROR",
|
||||||
expectedBody: ".",
|
expectedBody: ".",
|
||||||
},
|
},
|
||||||
@ -62,7 +62,7 @@ func TestIntegrationQuery(t *testing.T) {
|
|||||||
QueryType: "NS",
|
QueryType: "NS",
|
||||||
QueryName: "example.com.",
|
QueryName: "example.com.",
|
||||||
},
|
},
|
||||||
inputURL: "1.1.1.1",
|
inputURL: "8.8.8.8",
|
||||||
expectedDNSCode: "NOERROR",
|
expectedDNSCode: "NOERROR",
|
||||||
expectedBody: "*.iana-servers.net.",
|
expectedBody: "*.iana-servers.net.",
|
||||||
},
|
},
|
||||||
@ -72,7 +72,7 @@ func TestIntegrationQuery(t *testing.T) {
|
|||||||
QueryType: "B",
|
QueryType: "B",
|
||||||
QueryName: "example",
|
QueryName: "example",
|
||||||
},
|
},
|
||||||
inputURL: "1.1.1.1",
|
inputURL: "8.8.8.8",
|
||||||
isErrExpected: true,
|
isErrExpected: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user