cli: websteps: fix DNSDo (#447)
This fixes an inattention bug in the websteps code.
This commit is contained in:
parent
394bf26313
commit
a9014e7950
3 changed files with 7 additions and 5 deletions
|
|
@ -110,6 +110,7 @@ func (m Measurer) Run(
|
|||
addrs, err := DNSDo(ctx, DNSConfig{Domain: URL.Hostname()})
|
||||
endpoints := makeEndpoints(addrs, URL)
|
||||
// 3. Find the testhelper
|
||||
// TODO(kelmenhorst,bassosimone): this is not used at the moment, but the hardcoded local address
|
||||
testhelpers, _ := sess.GetTestHelpersByName("web-connectivity")
|
||||
var testhelper *model.Service
|
||||
for _, th := range testhelpers {
|
||||
|
|
@ -125,7 +126,8 @@ func (m Measurer) Run(
|
|||
"backend": testhelper,
|
||||
}
|
||||
// 4. Query the testhelper
|
||||
resp, err := Control(ctx, sess, testhelper.Address, CtrlRequest{
|
||||
// TODO(kelmenhorst,bassosimone): remove hardcoded version here, this is only for testing purposes
|
||||
resp, err := Control(ctx, sess, "http://localhost:8080", "/api/unstable/websteps", CtrlRequest{
|
||||
URL: URL.String(),
|
||||
Headers: map[string][]string{
|
||||
"Accept": {httpheader.Accept()},
|
||||
|
|
|
|||
Loading…
Reference in a new issue