Skip to content

Commit

Permalink
fix: test repository tenant_id query (#3476)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
danielbdias committed Dec 27, 2023
1 parent 068e293 commit ea2e2df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions run.sh
Expand Up @@ -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

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion server/test/test_repository.go
Expand Up @@ -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 = `
Expand Down

0 comments on commit ea2e2df

Please sign in to comment.