github.com/m-lab/locate@v0.17.6/connection/testdata/fakemessage.go (about)

     1  package testdata
     2  
     3  import (
     4  	v2 "github.com/m-lab/locate/api/v2"
     5  )
     6  
     7  var (
     8  	FakeHostname     = "ndt-mlab1-lga0t.mlab-sandbox.measurement-lab.org"
     9  	FakeRegistration = v2.HeartbeatMessage{
    10  		Registration: &v2.Registration{
    11  			City:          "New York",
    12  			CountryCode:   "US",
    13  			ContinentCode: "NA",
    14  			Experiment:    "ndt",
    15  			Hostname:      FakeHostname,
    16  			Latitude:      40.7667,
    17  			Longitude:     -73.8667,
    18  			Machine:       "mlab1",
    19  			Metro:         "lga",
    20  			Project:       "mlab-sandbox",
    21  			Site:          "lga0t",
    22  			Type:          "physical",
    23  			Uplink:        "10g",
    24  			Services: map[string][]string{
    25  				"ndt/ndt7": []string{
    26  					"ws://ndt/v7/upload",
    27  					"ws://ndt/v7/download",
    28  					"wss://ndt/v7/upload",
    29  					"wss://ndt/v7/download",
    30  				},
    31  			},
    32  		},
    33  	}
    34  	FakeHealth = v2.HeartbeatMessage{
    35  		Health: &v2.Health{
    36  			Score: 1.0,
    37  		},
    38  	}
    39  )