mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
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:
@@ -1141,7 +1141,7 @@ class TestDatabaseApi(SupersetTestCase):
|
||||
argument = [database.id]
|
||||
uri = f"api/v1/database/export/?q={prison.dumps(argument)}"
|
||||
rv = self.client.get(uri)
|
||||
assert rv.status_code == 401
|
||||
assert rv.status_code == 403
|
||||
|
||||
def test_export_database_non_existing(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user