@@ -372,8 +372,8 @@ private void compareLogEntry(LogEntry expected, LogEntry value, Boolean extraVal
372372 }
373373
374374 private static final String [] EXPECTED_STRUCTURED_LOGS = {
375- "{\" severity\" :\" ALERT\" ,\" timestamp \" :\" 1984-08-13T15:35:30.123Z\" ,\" httpRequest\" :{\" requestMethod\" :\" GET\" ,\" status\" :404,\" cacheLookup\" :false,\" cacheHit\" :false,\" cacheValidatedWithOriginServer\" :false},\" logging.googleapis.com/insertId\" :\" insertId\" ,\" logging.googleapis.com/labels\" :{\" key1\" :\" value1\" ,\" key2\" :\" value2\" },\" logging.googleapis.com/operation\" :{\" id\" :\" id\" ,\" producer\" :\" producer\" ,\" first\" :false,\" last\" :false},\" logging.googleapis.com/sourceLocation\" :{\" file\" :\" file\" ,\" line\" :\" 42\" ,\" function\" :\" function\" },\" logging.googleapis.com/spanId\" :\" spanId\" ,\" logging.googleapis.com/trace\" :\" trace\" ,\" logging.googleapis.com/trace_sampled\" :true,\" message\" :\" payload\" }" ,
376- "{\" severity\" :\" ALERT\" ,\" timestamp \" :\" 1984-08-13T15:35:30.123Z\" ,\" httpRequest\" :{\" requestMethod\" :\" GET\" ,\" status\" :404,\" cacheLookup\" :false,\" cacheHit\" :false,\" cacheValidatedWithOriginServer\" :false},\" logging.googleapis.com/insertId\" :\" insertId\" ,\" logging.googleapis.com/labels\" :{\" key1\" :\" value1\" ,\" key2\" :\" value2\" },\" logging.googleapis.com/operation\" :{\" id\" :\" id\" ,\" producer\" :\" producer\" ,\" first\" :false,\" last\" :false},\" logging.googleapis.com/sourceLocation\" :{\" file\" :\" file\" ,\" line\" :\" 42\" ,\" function\" :\" function\" },\" logging.googleapis.com/spanId\" :\" spanId\" ,\" logging.googleapis.com/trace\" :\" trace\" ,\" logging.googleapis.com/trace_sampled\" :true,\" key1\" :\" val\" ,\" key2\" :123.0,\" key3\" :false}"
375+ "{\" severity\" :\" ALERT\" ,\" time \" :\" 1984-08-13T15:35:30.123Z\" ,\" httpRequest\" :{\" requestMethod\" :\" GET\" ,\" status\" :404,\" cacheLookup\" :false,\" cacheHit\" :false,\" cacheValidatedWithOriginServer\" :false},\" logging.googleapis.com/insertId\" :\" insertId\" ,\" logging.googleapis.com/labels\" :{\" key1\" :\" value1\" ,\" key2\" :\" value2\" },\" logging.googleapis.com/operation\" :{\" id\" :\" id\" ,\" producer\" :\" producer\" ,\" first\" :false,\" last\" :false},\" logging.googleapis.com/sourceLocation\" :{\" file\" :\" file\" ,\" line\" :\" 42\" ,\" function\" :\" function\" },\" logging.googleapis.com/spanId\" :\" spanId\" ,\" logging.googleapis.com/trace\" :\" trace\" ,\" logging.googleapis.com/trace_sampled\" :true,\" message\" :\" payload\" }" ,
376+ "{\" severity\" :\" ALERT\" ,\" time \" :\" 1984-08-13T15:35:30.123Z\" ,\" httpRequest\" :{\" requestMethod\" :\" GET\" ,\" status\" :404,\" cacheLookup\" :false,\" cacheHit\" :false,\" cacheValidatedWithOriginServer\" :false},\" logging.googleapis.com/insertId\" :\" insertId\" ,\" logging.googleapis.com/labels\" :{\" key1\" :\" value1\" ,\" key2\" :\" value2\" },\" logging.googleapis.com/operation\" :{\" id\" :\" id\" ,\" producer\" :\" producer\" ,\" first\" :false,\" last\" :false},\" logging.googleapis.com/sourceLocation\" :{\" file\" :\" file\" ,\" line\" :\" 42\" ,\" function\" :\" function\" },\" logging.googleapis.com/spanId\" :\" spanId\" ,\" logging.googleapis.com/trace\" :\" trace\" ,\" logging.googleapis.com/trace_sampled\" :true,\" key1\" :\" val\" ,\" key2\" :123.0,\" key3\" :false}"
377377 };
378378 private static final LogEntry [] TEST_LOG_ENTRIES = {STRING_ENTRY , JSON_ENTRY };
379379
0 commit comments