#!/bin/sh

set -eu

# Regression guard for the missing-hard-dependency bug: this test's Depends
# lists ONLY python3-opentelemetry-exporter-otlp-proto-http, so
# opentelemetry.exporter.otlp.common and opentelemetry.exporter.http.transport
# must be pulled in transitively through that package's Depends. If they are
# not declared, the imports below fail and the test fails.
python3 - <<'PY'
import opentelemetry.exporter.otlp.proto.http
import opentelemetry.exporter.otlp.proto.http._log_exporter  # pulls otlp.common + http.transport
import opentelemetry.exporter.otlp.proto.http.trace_exporter
import opentelemetry.exporter.otlp.proto.http.metric_exporter

# Verify the transitive modules resolve here too (they come from the Depends).
import opentelemetry.exporter.otlp.common
import opentelemetry.exporter.http.transport._requests

print("OK: otlp-proto-http exporter and transitive deps importable")
PY
