1
0
Fork 0
mirror of synced 2024-07-09 00:06:05 +12:00

Updating pro and updating test cases to try both lucene and SQS.

This commit is contained in:
mike12345567 2024-05-22 17:37:56 +01:00
parent 0ebb55eea0
commit 77d049722f
2 changed files with 6 additions and 2 deletions

@ -1 +1 @@
Subproject commit 35489bafaa7b65702b0d342594ab2e5f5f2b187c
Subproject commit 78b08caab8d83e03c5a4dde07e2e823dbb5d184f

View file

@ -1,6 +1,7 @@
import { mocks, structures } from "@budibase/backend-core/tests"
import { context, events } from "@budibase/backend-core"
import { Event, IdentityType } from "@budibase/types"
import { auditLogs } from "@budibase/pro"
import { TestConfiguration } from "../../../../tests"
mocks.licenses.useAuditLogs()
@ -12,10 +13,13 @@ const BASE_IDENTITY = {
const USER_AUDIT_LOG_COUNT = 3
const APP_ID = "app_1"
describe("/api/global/auditlogs", () => {
describe.each(["lucene", "sql"])("/api/global/auditlogs (%s)", method => {
const config = new TestConfiguration()
beforeAll(async () => {
if (method === "sql") {
auditLogs.useSQLSearch()
}
await config.beforeAll()
})