superset/tests
Maxime Beauchemin 315a11dfe2
fix: shut off unneeded endpoints (#8960)
* fix: shut off all uneeded endpoints

We recently added a new feature to FAB allowing to whitelist the needed
endpoints in ModelView and ModelRestApi.

First, we set our base wrapper class to an empty set, forcing each
class inheriting from it to explicitely turn on the endpoints that
Superset intends to use.

Second, we go ModelView by ModelView to whitelist the actual endpoints
used in the app.

Notes:
* as a result a large set of [unneeded] permissions should be cleaned up
* outside of the "private" use of endpoints in the app, people that have
  been using endpoints in their environment for other purposes may
  experience loss of functionality

* Tweaking

* Reduce the amount of endpoints using white lists

* Fix, included needed endpoints for dashboard and druid

* Drying things up

* fixes

* limiting more endpoints

* Read only on some FAB model views

* fixing some tests

* fixes

* Fixing more tests

* Addressing comments

* Drying up route_methods

* further drying

Co-authored-by: Daniel Vaz Gaspar <danielvazgaspar@gmail.com>
2020-01-23 11:25:15 -05:00
..
db_engine_specs Enable running of tests in tests/db_engine_specs (#8902) 2019-12-31 14:45:33 +02:00
fixtures Re-enable pylint for common, connector, and test files (#8774) 2019-12-09 22:32:54 -08:00
__init__.py Add licenses to translations (#6732) 2019-01-22 08:21:13 -08:00
access_tests.py factor out datasource_access_request model (#8809) 2019-12-17 16:17:49 -08:00
base_api_tests.py [charts] New, REST API (#8917) 2020-01-21 13:04:52 -05:00
base_tests.py [charts] New, REST API (#8917) 2020-01-21 13:04:52 -05:00
cache_tests.py [ci] Deprecate flake8 (#8409) 2019-10-18 14:44:27 -07:00
celery_tests.py Replace pandas.DataFrame with PyArrow.Table for nullable int typing (#8733) 2020-01-03 11:55:39 -05:00
chart_api_tests.py [charts] New, REST API (#8917) 2020-01-21 13:04:52 -05:00
core_tests.py fix: shut off unneeded endpoints (#8960) 2020-01-23 11:25:15 -05:00
dashboard_api_tests.py [dashboards] New, API for Bulk delete (#8972) 2020-01-21 17:14:53 -05:00
dashboard_tests.py [dashboard] New, list view (react) (#8845) 2020-01-16 00:48:55 -05:00
dataframe_test.py Replace pandas.DataFrame with PyArrow.Table for nullable int typing (#8733) 2020-01-03 11:55:39 -05:00
datasource_tests.py guard against duplicate columns in datasource save (#8712) 2019-12-04 11:05:06 -08:00
dict_import_export_tests.py [db migration] change datasources-clusters foreign key to cluster_id (#8576) 2020-01-13 11:02:36 -08:00
druid_func_tests.py Support timeFormat extraction function column for Druid in Filter (#8728) 2019-12-07 17:54:37 -08:00
druid_tests.py [db migration] change datasources-clusters foreign key to cluster_id (#8576) 2020-01-13 11:02:36 -08:00
email_tests.py Flask App factory PR #1 (#8418) 2019-11-20 15:47:06 +00:00
event_logger_tests.py Event logger config takes instance instead of class (#7997) 2019-08-08 13:47:18 -07:00
feature_flag_tests.py Flask App factory PR #1 (#8418) 2019-11-20 15:47:06 +00:00
form_tests.py [format] Using Black (#7769) 2019-06-25 13:34:48 -07:00
import_export_tests.py fix: shut off unneeded endpoints (#8960) 2020-01-23 11:25:15 -05:00
load_examples_test.py Flask App factory PR #1 (#8418) 2019-11-20 15:47:06 +00:00
logging_configurator_tests.py Add LogConfigurator, and add logging for CSV export (#8085) 2019-08-27 13:22:18 -07:00
macro_tests.py [ci] Deprecate flake8 (#8409) 2019-10-18 14:44:27 -07:00
migration_tests.py [tests] Fix, removing deprecated function for future Python release compatibility. (#8353) 2019-10-21 15:49:12 +01:00
model_tests.py [fix] Enforce the query result to contain a data-frame (#8935) 2020-01-08 11:50:26 -08:00
result_set_tests.py Replace pandas.DataFrame with PyArrow.Table for nullable int typing (#8733) 2020-01-03 11:55:39 -05:00
schedules_test.py Refactor Dashboard and Slice models (#8820) 2019-12-18 11:40:45 -08:00
security_tests.py fix: shut off unneeded endpoints (#8960) 2020-01-23 11:25:15 -05:00
sql_parse_tests.py [tests] Fix, removing deprecated function for future Python release compatibility. (#8353) 2019-10-21 15:49:12 +01:00
sql_validator_tests.py Flask App factory PR #1 (#8418) 2019-11-20 15:47:06 +00:00
sqla_models_tests.py chore: refactor, add typing and fix uncovered errors (#8900) 2019-12-31 09:26:23 +02:00
sqllab_tests.py Replace pandas.DataFrame with PyArrow.Table for nullable int typing (#8733) 2020-01-03 11:55:39 -05:00
stats_logger_tests.py [format] Using Black (#7769) 2019-06-25 13:34:48 -07:00
strategy_tests.py Add protocol to cache warmup (#8721) 2019-12-03 10:51:06 -08:00
superset_test_config_sqllab_backend_persist.py SIP-23: Persist SQL Lab state in the backend (#8060) 2019-11-14 09:44:57 -08:00
superset_test_config.py Making test_config and main config the same (#8838) 2020-01-02 13:57:54 -05:00
test_app.py Flask App factory PR #1 (#8418) 2019-11-20 15:47:06 +00:00
utils_tests.py Ensure proper JSON serialization of numpy.ndarray (#8946) 2020-01-10 13:24:03 -05:00
utils.py [format] Using Black (#7769) 2019-06-25 13:34:48 -07:00
viz_tests.py chore: refactor, add typing and fix uncovered errors (#8900) 2019-12-31 09:26:23 +02:00