test_configuration.py 439 B

1234567891011121314
  1. from sentry.sentry_metrics.configuration import (
  2. _METRICS_INGEST_CONFIG_BY_USE_CASE,
  3. IndexerStorage,
  4. UseCaseKey,
  5. get_ingest_config,
  6. )
  7. def test_unique_namespaces() -> None:
  8. get_ingest_config(UseCaseKey.RELEASE_HEALTH, IndexerStorage.POSTGRES)
  9. namespaces = [
  10. config.writes_limiter_namespace for config in _METRICS_INGEST_CONFIG_BY_USE_CASE.values()
  11. ]
  12. assert len(namespaces) == len(set(namespaces))