Selaa lähdekoodia

Server test: add device location to expected log fields lists.

Eugene Fryntov 2 vuotta sitten
vanhempi
sitoutus
c199b863f4
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      psiphon/server/server_test.go

+ 3 - 0
psiphon/server/server_test.go

@@ -1635,6 +1635,7 @@ func checkExpectedServerTunnelLogFields(
 		"client_features",
 		"client_features",
 		"relay_protocol",
 		"relay_protocol",
 		"device_region",
 		"device_region",
+		"device_location",
 		"ssh_client_version",
 		"ssh_client_version",
 		"server_entry_region",
 		"server_entry_region",
 		"server_entry_source",
 		"server_entry_source",
@@ -2110,6 +2111,7 @@ func checkExpectedUniqueUserLogFields(
 		"sponsor_id",
 		"sponsor_id",
 		"client_platform",
 		"client_platform",
 		"device_region",
 		"device_region",
+		"device_location",
 	} {
 	} {
 		if fields[name] == nil || fmt.Sprintf("%s", fields[name]) == "" {
 		if fields[name] == nil || fmt.Sprintf("%s", fields[name]) == "" {
 			return fmt.Errorf("missing expected field '%s'", name)
 			return fmt.Errorf("missing expected field '%s'", name)
@@ -2129,6 +2131,7 @@ func checkExpectedDomainBytesLogFields(
 		"sponsor_id",
 		"sponsor_id",
 		"client_platform",
 		"client_platform",
 		"device_region",
 		"device_region",
+		"device_location",
 		"domain",
 		"domain",
 		"bytes",
 		"bytes",
 	} {
 	} {