Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): Allow user to reference protobuf file path on Test yaml fr…
…om CLI (#2620) * Adding grpc e2e test * Updating tests * Adding feature of read protobuf file from path and injecting it on gRPC trigger * Adding validation to the test * Adding PR suggestion
- Loading branch information
1 parent
d55b683
commit ab6d0a4
Showing
10 changed files
with
499 additions
and
85 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
68 changes: 68 additions & 0 deletions
68
testing/cli-e2etest/environment/jaeger/server-setup/docker-compose-no-api.yaml
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,68 @@ | ||
version: '3' | ||
services: | ||
tracetest: | ||
image: kubeshop/tracetest:${TAG:-latest} | ||
volumes: | ||
- type: bind | ||
source: ./tracetest-config.yaml | ||
target: /app/tracetest.yaml | ||
- type: bind | ||
source: ./tracetest-provision.yaml | ||
target: /app/provision.yaml | ||
command: --provisioning-file /app/provision.yaml | ||
ports: | ||
- 11633:11633 | ||
extra_hosts: | ||
- "host.docker.internal:host-gateway" | ||
depends_on: | ||
postgres: | ||
condition: service_healthy | ||
otel-collector: | ||
condition: service_started | ||
healthcheck: | ||
test: ["CMD", "wget", "--spider", "localhost:11633"] | ||
interval: 1s | ||
timeout: 3s | ||
retries: 60 | ||
environment: | ||
TRACETEST_DEV: ${TRACETEST_DEV} | ||
|
||
postgres: | ||
image: postgres:14 | ||
environment: | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_USER: postgres | ||
healthcheck: | ||
test: pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB" | ||
interval: 1s | ||
timeout: 5s | ||
retries: 60 | ||
ports: | ||
- 5432 | ||
|
||
otel-collector: | ||
image: otel/opentelemetry-collector:0.54.0 | ||
command: | ||
- "--config" | ||
- "/otel-local-config.yaml" | ||
volumes: | ||
- ./collector.config.yaml:/otel-local-config.yaml | ||
depends_on: | ||
- jaeger | ||
ports: | ||
- 4317 | ||
|
||
jaeger: | ||
image: jaegertracing/all-in-one:latest | ||
restart: unless-stopped | ||
healthcheck: | ||
test: ["CMD", "wget", "--spider", "localhost:16686"] | ||
interval: 1s | ||
timeout: 3s | ||
retries: 60 | ||
ports: | ||
- 16685 | ||
|
||
networks: | ||
default: | ||
name: _default |
112 changes: 112 additions & 0 deletions
112
testing/cli-e2etest/environment/jaeger/server-setup/docker-compose-pokeshop.yaml
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,112 @@ | ||
services: | ||
cache: | ||
healthcheck: | ||
test: | ||
- CMD | ||
- redis-cli | ||
- ping | ||
timeout: 3s | ||
interval: 1s | ||
retries: 60 | ||
image: redis:6 | ||
restart: unless-stopped | ||
|
||
demo-api: | ||
depends_on: | ||
cache: | ||
condition: service_healthy | ||
postgres: | ||
condition: service_healthy | ||
queue: | ||
condition: service_healthy | ||
environment: | ||
COLLECTOR_ENDPOINT: http://otel-collector:4317 | ||
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres?schema=public | ||
NPM_RUN_COMMAND: api | ||
POKE_API_BASE_URL: https://pokeapi.co/api/v2 | ||
RABBITMQ_HOST: queue | ||
REDIS_URL: cache | ||
healthcheck: | ||
test: | ||
- CMD | ||
- wget | ||
- --spider | ||
- localhost:8081 | ||
timeout: 3s | ||
interval: 1s | ||
retries: 60 | ||
image: kubeshop/demo-pokemon-api:latest | ||
ports: | ||
- mode: ingress | ||
target: 8081 | ||
published: 8081 | ||
protocol: tcp | ||
pull_policy: always | ||
restart: unless-stopped | ||
|
||
demo-rpc: | ||
depends_on: | ||
cache: | ||
condition: service_healthy | ||
postgres: | ||
condition: service_healthy | ||
queue: | ||
condition: service_healthy | ||
environment: | ||
COLLECTOR_ENDPOINT: http://otel-collector:4317 | ||
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres?schema=public | ||
NPM_RUN_COMMAND: rpc | ||
POKE_API_BASE_URL: https://pokeapi.co/api/v2 | ||
RABBITMQ_HOST: queue | ||
REDIS_URL: cache | ||
healthcheck: | ||
test: | ||
- CMD | ||
- lsof | ||
- -i | ||
- "8082" | ||
timeout: 3s | ||
interval: 1s | ||
retries: 60 | ||
image: kubeshop/demo-pokemon-api:latest | ||
ports: | ||
- mode: ingress | ||
target: 8082 | ||
published: 8082 | ||
protocol: tcp | ||
pull_policy: always | ||
restart: unless-stopped | ||
|
||
demo-worker: | ||
depends_on: | ||
cache: | ||
condition: service_healthy | ||
postgres: | ||
condition: service_healthy | ||
queue: | ||
condition: service_healthy | ||
environment: | ||
COLLECTOR_ENDPOINT: http://otel-collector:4317 | ||
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres?schema=public | ||
NPM_RUN_COMMAND: worker | ||
POKE_API_BASE_URL: https://pokeapi.co/api/v2 | ||
RABBITMQ_HOST: queue | ||
REDIS_URL: cache | ||
image: kubeshop/demo-pokemon-api:latest | ||
pull_policy: always | ||
restart: unless-stopped | ||
|
||
queue: | ||
healthcheck: | ||
test: | ||
- CMD-SHELL | ||
- rabbitmq-diagnostics -q check_running | ||
timeout: 5s | ||
interval: 1s | ||
retries: 60 | ||
image: rabbitmq:3.8-management | ||
restart: unless-stopped | ||
|
||
networks: | ||
default: | ||
name: _default |
65 changes: 0 additions & 65 deletions
65
testing/cli-e2etest/environment/jaeger/server-setup/docker-compose.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.