From ea2e2df438a34181065a120e61e46dce5e584df0 Mon Sep 17 00:00:00 2001 From: Daniel Baptista Dias Date: Wed, 27 Dec 2023 17:51:37 -0300 Subject: [PATCH] fix: test repository tenant_id query (#3476) * fix: test repository tenant_id query * omitting logs from cypress e2e tests * wip * added tenant_id check on get test sql to avoid cartesian products --- run.sh | 4 ---- server/test/test_repository.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/run.sh b/run.sh index 4c92fd06af..f45d3dd8de 100755 --- a/run.sh +++ b/run.sh @@ -53,10 +53,8 @@ stop() { } cypress-ci() { - echo "Running cypress" - export CYPRESS_BASE_URL=http://localhost:11633 export POKEMON_HTTP_ENDPOINT=http://demo-api:8081 @@ -65,10 +63,8 @@ cypress-ci() { } cypress() { - echo "Running cypress" - export CYPRESS_BASE_URL=http://localhost:11633 export POKEMON_HTTP_ENDPOINT=http://demo-api:8081 diff --git a/server/test/test_repository.go b/server/test/test_repository.go index 633507c533..f5b5c6e707 100644 --- a/server/test/test_repository.go +++ b/server/test/test_repository.go @@ -85,7 +85,7 @@ const ( ) as ltr ON ltr.test_id = t.id AND ltr.tenant_id = t.tenant_id LEFT OUTER JOIN test_runs last_test_run - ON last_test_run.test_id = ltr.test_id AND last_test_run.id = ltr.id + ON last_test_run.test_id = ltr.test_id AND last_test_run.id = ltr.id AND last_test_run.tenant_id = ltr.tenant_id ` testMaxVersionQuery = `