Updating pro and updating test cases to try both lucene and SQS.
This commit is contained in:
parent
0ebb55eea0
commit
77d049722f
|
@ -1 +1 @@
|
||||||
Subproject commit 35489bafaa7b65702b0d342594ab2e5f5f2b187c
|
Subproject commit 78b08caab8d83e03c5a4dde07e2e823dbb5d184f
|
|
@ -1,6 +1,7 @@
|
||||||
import { mocks, structures } from "@budibase/backend-core/tests"
|
import { mocks, structures } from "@budibase/backend-core/tests"
|
||||||
import { context, events } from "@budibase/backend-core"
|
import { context, events } from "@budibase/backend-core"
|
||||||
import { Event, IdentityType } from "@budibase/types"
|
import { Event, IdentityType } from "@budibase/types"
|
||||||
|
import { auditLogs } from "@budibase/pro"
|
||||||
import { TestConfiguration } from "../../../../tests"
|
import { TestConfiguration } from "../../../../tests"
|
||||||
|
|
||||||
mocks.licenses.useAuditLogs()
|
mocks.licenses.useAuditLogs()
|
||||||
|
@ -12,10 +13,13 @@ const BASE_IDENTITY = {
|
||||||
const USER_AUDIT_LOG_COUNT = 3
|
const USER_AUDIT_LOG_COUNT = 3
|
||||||
const APP_ID = "app_1"
|
const APP_ID = "app_1"
|
||||||
|
|
||||||
describe("/api/global/auditlogs", () => {
|
describe.each(["lucene", "sql"])("/api/global/auditlogs (%s)", method => {
|
||||||
const config = new TestConfiguration()
|
const config = new TestConfiguration()
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
|
if (method === "sql") {
|
||||||
|
auditLogs.useSQLSearch()
|
||||||
|
}
|
||||||
await config.beforeAll()
|
await config.beforeAll()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue