fix: Redirect on 401 (#17597)

* Redirect on 401

* Bump FAB

* Format

* Update Cypress save test

* Revert Cypress change

* Bump FAB 3.4.1rc2

* Update test

* Update return statement

* Update api test

* Update datasets api test

* Update datasets api 401s to 403s

* Add typeguard

* Use Promise.resolve

* Update callApiAndParseWithhTimeout test

* Disable parseResponse test

* Try catch

* Handle npm 8 issues
This commit is contained in:
Geido
2021-12-08 22:14:30 +02:00
committed by GitHub
parent aee5c9a3ea
commit 46cdc77ae6
13 changed files with 73 additions and 54 deletions

View File

@@ -102,10 +102,10 @@ class TestLogApi(SupersetTestCase):
self.login(username="gamma")
uri = "api/v1/log/"
rv = self.client.get(uri)
self.assertEqual(rv.status_code, 401)
self.assertEqual(rv.status_code, 403)
self.login(username="alpha")
rv = self.client.get(uri)
self.assertEqual(rv.status_code, 401)
self.assertEqual(rv.status_code, 403)
def test_get_item(self):
"""