update
This commit is contained in:
@@ -77,6 +77,9 @@ func TestAuditQueryUsesPlaceholders(t *testing.T) {
|
||||
if strings.Contains(query, "INTERVAL") {
|
||||
t.Fatal("all-time query must not include a time restriction")
|
||||
}
|
||||
if strings.Contains(query, "lan_ip") {
|
||||
t.Fatal("audit query must use the single source_ip column")
|
||||
}
|
||||
if !strings.HasSuffix(query, "ORDER BY ae.created_at DESC LIMIT ?") {
|
||||
t.Fatalf("query has unexpected limit: %s", query)
|
||||
}
|
||||
@@ -88,7 +91,6 @@ func TestAuditQueryUsesPlaceholders(t *testing.T) {
|
||||
"sentinelone-linux",
|
||||
"install-rmm",
|
||||
"10.10.1.25",
|
||||
"10.10.1.25",
|
||||
250,
|
||||
}
|
||||
if !reflect.DeepEqual(arguments, expectedArguments) {
|
||||
|
||||
Reference in New Issue
Block a user