# README
Integration tests
This directory contains Prometheus, Tempo and Loki API integration tests.
Docker is required to run.
Getting traces from tests for debugging
Run a local Jaeger
instance:
docker run --rm -d --name jaeger -p 16686:16686 -p 4317:4317 jaegertracing/all-in-one:latest
Run wanted test with E2E_TRACES_EXPORTER
:
E2E_TRACES_EXPORTER='localhost:4317' E2E='1' go test -v -run "TestCH/QueryRange" ./integration/prome2e
Open Jaeger UI http://localhost:16686/.
# Packages
No description provided by the author
Package lokie2e provides scripts for E2E testing Loki API implementation.
Package prome2e provides scripts for E2E testing Prometheus API implementation.
Package requirex provides additional testing helpers.
Package tempoe2e provides scripts for E2E testing Tempo API implementation.
# Functions
IntegrationProvider returns trace exporter for debugging.
Logger creates a new [zap.Logger] to use in tests.
NewProvider initializes and returns a new Provider along with an exporter.
Skip test if E2E env is not set.