Skip to content

Commit

Permalink
add integration test for docker lgtm image
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Sep 13, 2024
1 parent cb7dc72 commit 0eb9041
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ jobs:
uses: actions/checkout@v4
with:
repository: grafana/oats
ref: 4e02b327cf997bc21c4b64dea1951ce3f6361c68
ref: d07befda3cfa162865d8081aa64501ea26578870
path: oats
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
cache-dependency-path: oats/go.sum
- name: Build Image for integration tests
run: ./build-lgtm.sh
- name: Run acceptance tests
run: ./scripts/run-acceptance-tests.sh
- name: upload log file
Expand Down
4 changes: 2 additions & 2 deletions examples/dotnet/docker-compose.oats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ services:
ports:
- 8080:8083
environment:
- Otlp__Endpoint=http://collector:4317
- OTEL_METRIC_EXPORT_INTERVAL=5000 # so we don't have to wait 60s for metrics
- Otlp__Endpoint=http://lgtm:4317
- OTEL_METRIC_EXPORT_INTERVAL=5000 # so we don't have to wait 60s for metrics
2 changes: 1 addition & 1 deletion examples/dotnet/oats.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OATS is an acceptance testing framework for OpenTelemetry - https://github.com/grafana/oats/tree/main/yaml
docker-compose:
generator: lgtm
generator: docker-lgtm
files:
- ./docker-compose.oats.yml
input:
Expand Down
2 changes: 1 addition & 1 deletion examples/go/docker-compose.oats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
context: .
dockerfile: Dockerfile
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: http://collector:4318
OTEL_EXPORTER_OTLP_ENDPOINT: http://lgtm:4318
OTEL_METRIC_EXPORT_INTERVAL: "5000" # so we don't have to wait 60s for metrics
ports:
- "8080:8081"
2 changes: 1 addition & 1 deletion examples/go/oats.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OATS is an acceptance testing framework for OpenTelemetry - https://github.com/grafana/oats/tree/main/yaml
docker-compose:
generator: lgtm
generator: docker-lgtm
files:
- ./docker-compose.oats.yml
input:
Expand Down
2 changes: 1 addition & 1 deletion examples/python/docker-compose.oats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
context: .
dockerfile: Dockerfile
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: http://collector:4317
OTEL_EXPORTER_OTLP_ENDPOINT: http://lgtm:4317
OTEL_METRIC_EXPORT_INTERVAL: "5000" # so we don't have to wait 60s for metrics
ports:
- "8080:8082"
2 changes: 1 addition & 1 deletion examples/python/oats.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OATS is an acceptance testing framework for OpenTelemetry - https://github.com/grafana/oats/tree/main/yaml
docker-compose:
generator: lgtm
generator: docker-lgtm
files:
- ./docker-compose.oats.yml
input:
Expand Down

0 comments on commit 0eb9041

Please sign in to comment.