Why This Matters
the local anonymous-auth rule for localhost Grafana is easy to break silently.
Read First
app/services/grafana/config.py
Scope
- Add direct config tests.
- Cover both localhost and hosted Grafana cases.
- 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
Why This Matters
the local anonymous-auth rule for localhost Grafana is easy to break silently.
Read First
app/services/grafana/config.pyScope
Tests / Coverage
tests/services/test_grafana_config.pyuses_local_anonymous_authis_configuredAcceptance Criteria