Add detail_update_time in createDevHosts (#315)

This commit is contained in:
Zachary Wasserman 2016-10-14 15:32:55 -07:00 committed by GitHub
parent beda051de2
commit 4100eea2a8

View file

@ -212,28 +212,30 @@ func createDevUsers(ds kolide.Datastore, config config.KolideConfig) {
func createDevHosts(ds kolide.Datastore, config config.KolideConfig) { func createDevHosts(ds kolide.Datastore, config config.KolideConfig) {
hosts := []kolide.Host{ hosts := []kolide.Host{
{ {
NodeKey: "totally-legit", NodeKey: "totally-legit",
HostName: "jmeller-mbp.local", HostName: "jmeller-mbp.local",
UUID: "1234-5678-9101", UUID: "1234-5678-9101",
Platform: "darwin", Platform: "darwin",
OsqueryVersion: "2.0.0", OsqueryVersion: "2.0.0",
OSVersion: "Mac OS X 10.11.6", OSVersion: "Mac OS X 10.11.6",
Uptime: 60 * time.Minute, Uptime: 60 * time.Minute,
PhysicalMemory: 4145483776, PhysicalMemory: 4145483776,
PrimaryMAC: "10:11:12:13:14:15", PrimaryMAC: "10:11:12:13:14:15",
PrimaryIP: "192.168.1.10", PrimaryIP: "192.168.1.10",
DetailUpdateTime: time.Now(),
}, },
{ {
NodeKey: "definitely-legit", NodeKey: "definitely-legit",
HostName: "marpaia.local", HostName: "marpaia.local",
UUID: "1234-5678-9102", UUID: "1234-5678-9102",
Platform: "windows", Platform: "windows",
OsqueryVersion: "2.0.0", OsqueryVersion: "2.0.0",
OSVersion: "Windows 10.0.0", OSVersion: "Windows 10.0.0",
Uptime: 60 * time.Minute, Uptime: 60 * time.Minute,
PhysicalMemory: 17179869184, PhysicalMemory: 17179869184,
PrimaryMAC: "10:11:12:13:14:16", PrimaryMAC: "10:11:12:13:14:16",
PrimaryIP: "192.168.1.11", PrimaryIP: "192.168.1.11",
DetailUpdateTime: time.Now(),
}, },
} }