You've already forked tribes-supertest
fix: assert imported postgres service log
Use the shepherd service-start entry for the postgres import assertion instead of requiring routine postgres info logs that the Tribes importer intentionally filters.
This commit is contained in:
+8
-5
@@ -1440,13 +1440,16 @@ export class ScenarioExecution {
|
||||
async assertImportedSystemLogs(server: LegionTrackedServer): Promise<void> {
|
||||
const postgresEntry = await this.waitForLogEntry(
|
||||
server.id,
|
||||
"postgres-log-entry",
|
||||
{ limit: 100, type: "syslog.postgres" },
|
||||
(entry) => entry["program"] === "postgres"
|
||||
"postgres-service-log-entry",
|
||||
{ limit: 100, type: "syslog.shepherd" },
|
||||
(entry) =>
|
||||
entry["program"] === "shepherd" &&
|
||||
typeof entry["message"] === "string" &&
|
||||
entry["message"].includes("Service postgres has been started.")
|
||||
)
|
||||
this.assertImportedLogEntryMetadata(postgresEntry, {
|
||||
program: "postgres",
|
||||
type: "syslog.postgres"
|
||||
program: "shepherd",
|
||||
type: "syslog.shepherd"
|
||||
})
|
||||
|
||||
const haproxyEntry = await this.waitForLogEntry(
|
||||
|
||||
Reference in New Issue
Block a user