Skip to content

Commit 159d8b3

Browse files
authored
fix: dnscheck default input test (#1669)
## Checklist - [x] I have read the [contribution guidelines](https://github.com/ooni/probe-cli/blob/master/CONTRIBUTING.md) - [x] reference issue for this pull request: <!-- add URL here --> - [ ] if you changed anything related to how experiments work and you need to reflect these changes in the ooni/spec repository, please link to the related ooni/spec pull request: <!-- add URL here --> - [ ] if you changed code inside an experiment, make sure you bump its version number <!-- Reminder: Location of the issue tracker: https://github.com/ooni/probe --> ## Description This fixes the dnscheck default input test observed failing here: https://github.com/ooni/probe-cli/actions/runs/12016869033/job/33497976676#step:5:536.
1 parent 955a095 commit 159d8b3

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed

Diff for: internal/experiment/dnscheck/richerinput_test.go

+77
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,83 @@ var testDefaultInput = []model.ExperimentTarget{
103103
DefaultAddrs: "8.8.8.8 8.8.4.4",
104104
},
105105
},
106+
&Target{
107+
URL: "https://cloudflare-dns.com/dns-query",
108+
Config: &Config{
109+
HTTP3Enabled: true,
110+
DefaultAddrs: "1.1.1.1 1.0.0.1",
111+
},
112+
},
113+
&Target{
114+
URL: "https://cloudflare-dns.com/dns-query",
115+
Config: &Config{
116+
DefaultAddrs: "1.1.1.1 1.0.0.1",
117+
},
118+
},
119+
&Target{
120+
URL: "https://dns.quad9.net/dns-query",
121+
Config: &Config{
122+
HTTP3Enabled: true,
123+
DefaultAddrs: "9.9.9.9",
124+
},
125+
},
126+
&Target{
127+
URL: "https://dns.quad9.net/dns-query",
128+
Config: &Config{
129+
DefaultAddrs: "9.9.9.9",
130+
},
131+
},
132+
&Target{
133+
URL: "https://dns.adguard.com/dns-query",
134+
Config: &Config{
135+
HTTP3Enabled: true,
136+
},
137+
},
138+
&Target{
139+
URL: "https://dns.adguard.com/dns-query",
140+
Config: &Config{},
141+
},
142+
&Target{
143+
URL: "https://dns.alidns.com/dns-query",
144+
Config: &Config{
145+
HTTP3Enabled: true,
146+
},
147+
},
148+
&Target{
149+
URL: "https://dns.alidns.com/dns-query",
150+
Config: &Config{},
151+
},
152+
&Target{
153+
URL: "https://doh.opendns.com/dns-query",
154+
Config: &Config{
155+
HTTP3Enabled: true,
156+
},
157+
},
158+
&Target{
159+
URL: "https://doh.opendns.com/dns-query",
160+
Config: &Config{},
161+
},
162+
&Target{
163+
URL: "https://dns.nextdns.io/dns-query",
164+
Config: &Config{
165+
HTTP3Enabled: true,
166+
},
167+
},
168+
&Target{
169+
URL: "https://dns.nextdns.io/dns-query",
170+
Config: &Config{},
171+
},
172+
173+
&Target{
174+
URL: "https://dns.switch.ch/dns-query",
175+
Config: &Config{
176+
HTTP3Enabled: true,
177+
},
178+
},
179+
&Target{
180+
URL: "https://dns.switch.ch/dns-query",
181+
Config: &Config{},
182+
},
106183
}
107184

108185
func TestTargetLoaderLoad(t *testing.T) {

0 commit comments

Comments
 (0)