mirror of
https://github.com/apache/superset.git
synced 2026-04-12 20:57:55 +00:00
fix(databases): GSheets and Clickhouse DBs are not allowed to upload files (#21065)
This commit is contained in:
committed by
GitHub
parent
82bd5a31b8
commit
b36bd3f083
@@ -195,6 +195,7 @@ class TestDatabaseApi(SupersetTestCase):
|
||||
"created_by",
|
||||
"database_name",
|
||||
"disable_data_preview",
|
||||
"engine_information",
|
||||
"explore_database_id",
|
||||
"expose_in_sqllab",
|
||||
"extra",
|
||||
@@ -1941,6 +1942,9 @@ class TestDatabaseApi(SupersetTestCase):
|
||||
},
|
||||
"preferred": True,
|
||||
"sqlalchemy_uri_placeholder": "postgresql://user:password@host:port/dbname[?key=value&key=value...]",
|
||||
"engine_information": {
|
||||
"supports_file_upload": True,
|
||||
},
|
||||
},
|
||||
{
|
||||
"available_drivers": ["bigquery"],
|
||||
@@ -1960,6 +1964,9 @@ class TestDatabaseApi(SupersetTestCase):
|
||||
},
|
||||
"preferred": True,
|
||||
"sqlalchemy_uri_placeholder": "bigquery://{project_id}",
|
||||
"engine_information": {
|
||||
"supports_file_upload": True,
|
||||
},
|
||||
},
|
||||
{
|
||||
"available_drivers": ["psycopg2"],
|
||||
@@ -2008,6 +2015,9 @@ class TestDatabaseApi(SupersetTestCase):
|
||||
},
|
||||
"preferred": False,
|
||||
"sqlalchemy_uri_placeholder": "redshift+psycopg2://user:password@host:port/dbname[?key=value&key=value...]",
|
||||
"engine_information": {
|
||||
"supports_file_upload": True,
|
||||
},
|
||||
},
|
||||
{
|
||||
"available_drivers": ["apsw"],
|
||||
@@ -2027,6 +2037,9 @@ class TestDatabaseApi(SupersetTestCase):
|
||||
},
|
||||
"preferred": False,
|
||||
"sqlalchemy_uri_placeholder": "gsheets://",
|
||||
"engine_information": {
|
||||
"supports_file_upload": False,
|
||||
},
|
||||
},
|
||||
{
|
||||
"available_drivers": ["mysqlconnector", "mysqldb"],
|
||||
@@ -2075,12 +2088,18 @@ class TestDatabaseApi(SupersetTestCase):
|
||||
},
|
||||
"preferred": False,
|
||||
"sqlalchemy_uri_placeholder": "mysql://user:password@host:port/dbname[?key=value&key=value...]",
|
||||
"engine_information": {
|
||||
"supports_file_upload": True,
|
||||
},
|
||||
},
|
||||
{
|
||||
"available_drivers": [""],
|
||||
"engine": "hana",
|
||||
"name": "SAP HANA",
|
||||
"preferred": False,
|
||||
"engine_information": {
|
||||
"supports_file_upload": True,
|
||||
},
|
||||
},
|
||||
]
|
||||
}
|
||||
@@ -2108,12 +2127,18 @@ class TestDatabaseApi(SupersetTestCase):
|
||||
"engine": "mysql",
|
||||
"name": "MySQL",
|
||||
"preferred": True,
|
||||
"engine_information": {
|
||||
"supports_file_upload": True,
|
||||
},
|
||||
},
|
||||
{
|
||||
"available_drivers": [""],
|
||||
"engine": "hana",
|
||||
"name": "SAP HANA",
|
||||
"preferred": False,
|
||||
"engine_information": {
|
||||
"supports_file_upload": True,
|
||||
},
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user