-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new e2e test env for events endpoints
- Loading branch information
Showing
9 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
export PRISME_POSTGRES_URL='postgres://postgres:[email protected]:5432/prisme?sslmode=disable' | ||
|
||
export PRISME_CLICKHOUSE_HOSTPORT='clickhouse.localhost:9000' | ||
export PRISME_CLICKHOUSE_DB="prisme" | ||
export PRISME_CLICKHOUSE_USER="clickhouse" | ||
export PRISME_CLICKHOUSE_PASSWORD="password" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
repository_root := $(shell git rev-parse --show-toplevel) | ||
export repository_root := $(or $(repository_root), $(CURDIR)) | ||
include $(repository_root)/variables.mk | ||
|
||
export COMPOSE_PROJECT_NAME := prisme-bun-events | ||
|
||
.PHONY: start | ||
start: | ||
source $(CURDIR)/prisme.env && \ | ||
$(DOCKER_COMPOSE) \ | ||
-f $(repository_root)/docker-compose.yml \ | ||
-f ./docker-compose.env.yml \ | ||
up --wait -d | ||
|
||
.PHONY: test | ||
test: | ||
$(DOCKER_COMPOSE) \ | ||
-f ./docker-compose.test.yml \ | ||
up \ | ||
--abort-on-container-exit \ | ||
--exit-code-from bun | ||
|
||
.PHONY: clean | ||
clean: | ||
$(DOCKER_COMPOSE) \ | ||
-f $(repository_root)/docker-compose.yml \ | ||
-f ./docker-compose.env.yml \ | ||
-f ./docker-compose.test.yml \ | ||
down --volumes --remove-orphans |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: '3' | ||
services: | ||
prisme: | ||
image: prismelabs/analytics:dev | ||
env_file: $PWD/prisme.env | ||
networks: | ||
default: | ||
aliases: | ||
- prisme.localhost | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: '3' | ||
services: | ||
bun: | ||
image: docker.io/oven/bun | ||
command: sh -c "bun install && cd ./events && exec bun test" | ||
working_dir: /data | ||
volumes: | ||
- ..:/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export PRISME_POSTGRES_URL='postgres://postgres:[email protected]:5432/prisme?sslmode=disable' | ||
|
||
export PRISME_CLICKHOUSE_HOSTPORT='clickhouse.localhost:9000' | ||
export PRISME_CLICKHOUSE_USER="clickhouse" | ||
export PRISME_CLICKHOUSE_PASSWORD="password" | ||
|
||
export PRISME_SOURCE_REGISTRY_SOURCES="mywebsite.localhost,foo.mywebsite.localhost" | ||
|
||
export PRISME_EVENTSTORE_MAX_BATCH_SIZE="1" | ||
|
||
# Trust proxy so we can change rate limited IP address using X-Forwarded-For | ||
export PRISME_TRUST_PROXY="true" |