oncall-engine/engine/apps/user_management/tests
Joey Orlando b61f2ce41f
patch minor sync issue when HTTP 302 is received from Grafana API instance (#1393)
# What this PR does

this PR refactors the `sync_organization` and
`GrafanaAPIClient.is_rbac_enabled_for_organization` methods to check the
connected response bool rather than explicit check on HTTP 200. This
handles the legitimate case where the Grafana instance may return an
HTTP 302 (redirect) rather than an HTTP 200.

## Which issue(s) this PR fixes

See
[this](https://grafana.slack.com/archives/C02LSUUSE2G/p1677136582890269)
Slack thread in the community channel for more context

## Checklist

- [x] Tests updated
- [ ] Documentation added (N/A)
- [x] `CHANGELOG.md` updated
2023-02-23 13:23:57 +00:00
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
factories.py Add tests 2022-10-27 15:40:46 -06:00
test_free_public_beta_subcription_strategy.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_organization.py Org soft-delete (#1073) 2023-01-05 12:42:55 +08:00
test_region.py Org soft-delete (#1073) 2023-01-05 12:42:55 +08:00
test_sync.py patch minor sync issue when HTTP 302 is received from Grafana API instance (#1393) 2023-02-23 13:23:57 +00:00
test_user.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00