@@ -19,19 +19,17 @@ run *args: build
19
19
- e BASIC_AUTH_USER=$BASIC_AUTH_USER \
20
20
- e BASIC_AUTH_PASSWORD=$BASIC_AUTH_PASSWORD \
21
21
- e HONEYCOMB_KEY \
22
- - e GRAFANA_INSTANCE_ID \
23
- - e GRAFANA_API_TOKEN \
24
22
{{ args }} {{ IMAGE_NAME }}
25
23
26
24
27
- # run integration test. You will need keys for Honeycomb & Grafana set in the environment
25
+ # run integration test. You will need a HONEYCOMB_KEY set in the environment
28
26
test-integration : venv
29
27
#!/ bin/ bash
30
28
set -euo pipefail
31
29
32
30
{{ just_executable () }} run -d -e LOG_LEVEL=debug -p 4318 :4318
33
31
{{ just_executable () }} run-python tests.py
34
- echo " Data sent to honeycomb and grafana "
32
+ echo " Data sent to honeycomb"
35
33
echo " https://ui.honeycomb.io/bennett-institute-for-applied-data-science/environments/development/datasets/otel-gateway-tests?query=%7B%22time_range%22%3A600%2C%22granularity%22%3A0%2C%22breakdowns%22%3A%5B%5D%2C%22calculations%22%3A%5B%5D%2C%22orders%22%3A%5B%5D%2C%22havings%22%3A%5B%5D%2C%22limit%22%3A100%7D"
36
34
37
35
@@ -53,40 +51,16 @@ _mock_honeycomb_start:
53
51
_ mock_honeycomb_stop :
54
52
docker stop mock-honeycomb
55
53
56
- _ mock_grafana_start :
57
- #!/ bin/ bash
58
- set -euo pipefail
59
-
60
- mkdir -p exported/ grafana
61
-
62
- # run a different instance of a collector as a test endpoint
63
- docker rm --force mock-grafana 2 >/ dev/ null || true
64
- docker run -d -p 4320 :4318 --name mock-grafana -u " $(id -u):$(id -g)" \
65
- - v $PWD/ mock-grafana-config.yaml:/ etc/ otelcol-contrib/ config.yaml \
66
- - v $PWD/ exported/ grafana:/ exported \
67
- - e GRAFANA_INSTANCE_ID \
68
- - e GRAFANA_API_TOKEN \
69
- otel/ opentelemetry-collector-contrib:0.62.1
70
-
71
- test " $(docker inspect mock-grafana -f '{{{{.State.Status}}')" == " running" || { docker logs mock-grafana; exit 1 ; }
72
-
73
- _ mock_grafana_stop :
74
- docker stop mock-grafana
75
-
76
54
# run tests against mock upstream servers
77
- test-ci : venv _mock_honeycomb_start _mock_grafana_start && _mock_honeycomb_stop _mock_grafana_stop
55
+ test-ci : venv _mock_honeycomb_start && _mock_honeycomb_stop
78
56
#!/ bin/ bash
79
57
set -euo pipefail
80
58
81
59
export HONEYCOMB_ENDPOINT=" http://host.docker.internal:4319"
82
- export GRAFANA_ENDPOINT=" http://host.docker.internal:4320"
83
60
84
61
# run otel-gateway pointing at the test endpoint
85
62
{{ just_executable () }} run -d \
86
63
- e HONEYCOMB_ENDPOINT \
87
- - e GRAFANA_ENDPOINT \
88
- - e GRAFANA_INSTANCE_ID \
89
- - e GRAFANA_API_TOKEN \
90
64
- e LOG_LEVEL=debug \
91
65
- p 4318 :4318 \
92
66
- -add-host=host.docker.internal:host-gateway
0 commit comments