superset/tests/integration_tests
David Aaron Suddjian 4ad5ad045a
feat: embedded dashboard core (#17530)
* feat(dashboard): embedded dashboard UI configuration (#17175) (#17450)

* setup embedded provider

* update ui configuration

* fix test

* feat: Guest token (for embedded dashboard auth) (#17517)

* generate an embed token

* improve existing tests

* add some auth setup, and rename token

* fix the stuff for compatibility with external request loaders

* docs, standard jwt claims, tweaks

* black

* lint

* tests, and safer token decoding

* linting

* type annotation

* prettier

* add feature flag

* quiet pylint

* apparently typing is a problem again

* Make guest role name configurable

* fake being a non-anonymous user

* just one log entry

* customizable algo

* lint

* lint again

* 403 works now!

* get guest token from header instead of cookie

* Revert "403 works now!"

This reverts commit df2f49a6d4267b3cccccd66549d54e25bae8e0b6.

* fix tests

* Revert "Revert "403 works now!""

This reverts commit 883dff38f16537e41f0eb5d699845263c96be5cb.

* rename method

* correct import

* feat: entry for embedded dashboard (#17529)

* create entry for embedded dashboard in webpack

* add cookies

* lint

* token message handshake

* guestTokenHeaderName

* use setupClient instead of calling configure

* rename the webpack chunk

* simplified handshake

* embedded entrypoint: render a proper app

* make the embedded page accept anonymous connections

* format

* lint

* fix test
# Conflicts:
#	superset-frontend/src/embedded/index.tsx
#	superset/views/core.py

* lint

* Update superset-frontend/src/embedded/index.tsx

Co-authored-by: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com>

* comment out origins checks

* move embedded for core to dashboard

* pylint

* isort

Co-authored-by: David Aaron Suddjian <aasuddjian@gmail.com>
Co-authored-by: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com>

* feat: Authorizing guest access to embedded dashboards (#17757)

* helper methods and dashboard access

* guest token dashboard authz

* adjust csrf exempt list

* eums don't work that way

* Remove unnecessary import

* move row level security tests to their own file

* a bit of refactoring

* add guest token security tests

* refactor tests

* clean imports

* variable names can be too long apparently

* missing argument to get_user_roles

* don't redefine builtins

* remove unused imports

* fix test import

* default to global user when getting roles

* missing import

* mock it

* test get_user_roles

* infer g.user for ease of tests

* remove redundant check

* tests for guest user security manager fns

* use algo to get rid of warning messages

* tweaking access checks

* fix guest token security tests

* missing imports

* more tests

* more testing and also some small refactoring

* move validation out of parsing

* fix dashboard access check again

* add more test

Co-authored-by: Lily Kuang <lily@preset.io>

* feat: Row Level Security rules for guest tokens (#17836)

* helper methods and dashboard access

* guest token dashboard authz

* adjust csrf exempt list

* eums don't work that way

* Remove unnecessary import

* move row level security tests to their own file

* a bit of refactoring

* add guest token security tests

* refactor tests

* clean imports

* variable names can be too long apparently

* missing argument to get_user_roles

* don't redefine builtins

* remove unused imports

* fix test import

* default to global user when getting roles

* missing import

* mock it

* test get_user_roles

* infer g.user for ease of tests

* remove redundant check

* tests for guest user security manager fns

* use algo to get rid of warning messages

* tweaking access checks

* fix guest token security tests

* missing imports

* more tests

* more testing and also some small refactoring

* move validation out of parsing

* fix dashboard access check again

* rls rules for guest tokens

* test guest token rls rules

* more flexible rls rules

* lint

* fix tests

* fix test

* defaults

* fix some tests

* fix some tests

* lint

Co-authored-by: Lily Kuang <lily@preset.io>

* SupersetClient guest token test

* Apply suggestions from code review

Co-authored-by: Lily Kuang <lily@preset.io>

Co-authored-by: Lily Kuang <lily@preset.io>
2022-01-25 16:41:32 -08:00
..
annotation_layers chore: Test cases for annotations and annotation layers incorrect creation through API (#17246) 2021-11-03 09:11:41 +00:00
async_events refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
cachekeys fix: set correct schema on config import (#16041) 2021-11-04 11:09:08 -07:00
charts refactor: Moves the Explore form_data endpoint (#18151) 2022-01-25 11:14:50 -03:00
css_templates chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
dashboards feat: Adds a key-value endpoint to store charts form data (#17882) 2022-01-20 16:27:57 -03:00
databases chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
datasets chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
db_engine_specs chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
explore refactor: Moves the Explore form_data endpoint (#18151) 2022-01-25 11:14:50 -03:00
fixtures refactor(example_data): replace the way the birth_names data is loaded to DB (#18060) 2022-01-18 23:21:04 +02:00
importexport chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
migrations refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
queries chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
reports chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
security feat: embedded dashboard core (#17530) 2022-01-25 16:41:32 -08:00
tasks chore: update fixtures scope that are loading data into the analytical db (#17780) 2021-12-16 16:11:47 -08:00
utils feature: Add quarter unit to datetrunc (#17416) 2021-11-12 09:46:55 -08:00
__init__.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
access_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
alerts_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
base_api_tests.py chore: update fixtures scope that are loading data into the analytical db (#17780) 2021-12-16 16:11:47 -08:00
base_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
cache_tests.py chore: update fixtures scope that are loading data into the analytical db (#17780) 2021-12-16 16:11:47 -08:00
celery_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
cli_tests.py fix(import_datasources): --sync flag works correctly (#18046) 2022-01-25 15:53:44 +01:00
commands_test.py chore(pylint): Remove top-level disable (#16589) 2021-09-15 09:30:23 -07:00
config_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
conftest.py chore: split CLI into multiple files (#18082) 2022-01-19 11:27:16 -08:00
core_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
csv_upload_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
dashboard_tests.py chore: update fixtures scope that are loading data into the analytical db (#17780) 2021-12-16 16:11:47 -08:00
dashboard_utils.py feat(alerts): Select tabs to send backend (#17749) 2022-01-11 10:48:50 -08:00
datasource_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
dict_import_export_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
druid_func_tests.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
druid_func_tests_sip38.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
druid_tests.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
dynamic_plugins_tests.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
email_tests.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
event_logger_tests.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
form_tests.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
import_export_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
insert_chart_mixin.py feat: Certify Charts and Dashboards (#17335) 2021-11-24 13:42:52 +02:00
jinja_context_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
log_api_tests.py fix: Redirect on 401 (#17597) 2021-12-08 13:14:30 -07:00
log_model_view_tests.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
logging_configurator_tests.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
migration_tests.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
model_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
pandas_postprocessing_tests.py feat(advanced analytics): support groupby in resample (#18045) 2022-01-17 18:42:59 +08:00
query_context_tests.py chore: update fixtures scope that are loading data into the analytical db (#17780) 2021-12-16 16:11:47 -08:00
result_set_tests.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
schedules_test.py chore: update fixtures scope that are loading data into the analytical db (#17780) 2021-12-16 16:11:47 -08:00
security_tests.py feat: embedded dashboard core (#17530) 2022-01-25 16:41:32 -08:00
sql_validator_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
sqla_models_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
sqla_views_tests.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
sqllab_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
stats_logger_tests.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
strategy_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
superset_test_config.py feat(filter-set): Add filterset resource (#14015) 2021-09-23 11:27:59 +03:00
superset_test_config_sqllab_backend_persist.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
superset_test_config_thumbnails.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
superset_test_custom_template_processors.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
tagging_tests.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
test_app.py refactor(tests): decouple unittests from integration tests (#15473) 2021-07-01 18:03:07 +03:00
thumbnails_tests.py fix: Add waiting time for chart animation when screenshot (#15610) 2021-07-15 18:25:48 -07:00
utils_tests.py chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
viz_tests.py fix: fix assignment in FilterBoxViz (#16662) 2021-09-10 15:10:55 +03:00