Skip to content

Add direct unit tests for app/services/grafana/config.py #879

@VaibhavUpreti

Description

@VaibhavUpreti

Why This Matters

the local anonymous-auth rule for localhost Grafana is easy to break silently.

Read First

  • app/services/grafana/config.py

Scope

  1. Add direct config tests.
  2. Cover both localhost and hosted Grafana cases.
  3. Keep the tests purely configuration-focused.

Tests / Coverage

  • tests/services/test_grafana_config.py
  • cover uses_local_anonymous_auth
  • cover is_configured
  • cover URL normalization

Acceptance Criteria

  • localhost anonymous auth is tested explicitly
  • hosted instances still require a token
  • config behavior is clear from the test names

Metadata

Metadata

Labels

testsTest coverage and test organization

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions