oncall-engine/engine/apps/grafana_plugin/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
..
test_app_config.py Get rid of installation token + add a bunch of tests (#624) 2022-11-21 16:26:00 +01:00
test_gcom_api_client.py refactor the is_rbac_permissions_enabled check to be more robust (#1099) 2023-01-11 12:48:30 +01:00
test_grafana_api_client.py patch minor sync issue when HTTP 302 is received from Grafana API instance (#1393) 2023-02-23 13:23:57 +00:00
test_install.py Get rid of installation token + add a bunch of tests (#624) 2022-11-21 16:26:00 +01:00
test_self_hosted_install.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_status.py Get rid of installation token + add a bunch of tests (#624) 2022-11-21 16:26:00 +01:00
test_sync.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00