fix(integration-tests): auth with multiworkspace and skip clickhouse … (#11630)

…tests
This commit is contained in:
Antoine Moreaux
2025-04-17 16:49:57 +02:00
committed by GitHub
parent a7b75c61e8
commit 21c3edf8d6
3 changed files with 16 additions and 5 deletions

View File

@ -5,6 +5,7 @@ import { createClient, ClickHouseClient } from '@clickhouse/client';
import { GenericTrackEvent } from 'src/engine/core-modules/analytics/utils/events/track/track';
import { OBJECT_RECORD_CREATED_EVENT } from 'src/engine/core-modules/analytics/utils/events/track/object-record/object-record-created';
describe('ClickHouse Event Registration (integration)', () => {
let clickhouseClient: ClickHouseClient;

View File

@ -4,6 +4,13 @@ const SERVER_URL = `http://localhost:${APP_PORT}`;
const client = request(SERVER_URL);
const ORIGIN = new URL(SERVER_URL);
ORIGIN.hostname =
process.env.IS_MULTIWORKSPACE_ENABLED === 'true'
? `acme.${ORIGIN.hostname}`
: ORIGIN.hostname;
const auth = {
email: 'tim@apple.dev',
password: 'Applecar2025',
@ -28,7 +35,7 @@ describe('AuthResolve (integration)', () => {
return client
.post('/graphql')
.set('Origin', SERVER_URL)
.set('Origin', ORIGIN.toString())
.send(queryData)
.expect(200)
.expect((res) => {
@ -62,7 +69,7 @@ describe('AuthResolve (integration)', () => {
return client
.post('/graphql')
.set('Origin', SERVER_URL)
.set('Origin', ORIGIN.toString())
.send(queryData)
.expect(200)
.expect((res) => {