mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 08:50:18 +00:00
Fix E2E tests (#11267)
* fix: profile only include schema * tests: add logic to handle exsiting views and table for Hive * fix: python linting
This commit is contained in:
parent
f1d57caf97
commit
afce5fa61b
@ -62,9 +62,9 @@ class ProfilerConfigBuilder(BaseBuilder):
|
||||
}
|
||||
|
||||
if self.config_args.get("includes"):
|
||||
self.config["source"]["sourceConfig"]["config"][
|
||||
"schemaFilterPattern"
|
||||
] = self.config_args
|
||||
self.config["source"]["sourceConfig"]["config"]["schemaFilterPattern"] = {
|
||||
"includes": self.config_args.get("includes")
|
||||
}
|
||||
|
||||
self.config["processor"] = {"type": "orm-profiler", "config": {}}
|
||||
return self.config
|
||||
|
@ -197,7 +197,10 @@ class CliDBBase(TestCase):
|
||||
processor_config = self.get_profiler_processor_config(time_partition)
|
||||
self.build_config_file(
|
||||
E2EType.PROFILER_PROCESSOR,
|
||||
{"processor": processor_config},
|
||||
{
|
||||
"processor": processor_config,
|
||||
"includes": self.get_includes_schemas(),
|
||||
},
|
||||
)
|
||||
result = self.run_command("profile")
|
||||
sink_status, source_status = self.retrieve_statuses(result)
|
||||
|
@ -23,7 +23,7 @@ from .common_e2e_sqa_mixins import SQACommonMethods
|
||||
|
||||
class HiveCliTest(CliCommonDB.TestSuite, SQACommonMethods):
|
||||
create_table_query: str = """
|
||||
CREATE TABLE e2e_cli_tests.persons (
|
||||
CREATE TABLE IF NOT EXISTS e2e_cli_tests.persons (
|
||||
person_id int,
|
||||
full_name varchar(255),
|
||||
birthdate date
|
||||
@ -31,7 +31,7 @@ class HiveCliTest(CliCommonDB.TestSuite, SQACommonMethods):
|
||||
"""
|
||||
|
||||
create_view_query: str = """
|
||||
CREATE VIEW e2e_cli_tests.view_persons AS
|
||||
CREATE OR REPLACE VIEW e2e_cli_tests.view_persons AS
|
||||
SELECT *
|
||||
FROM e2e_cli_tests.persons
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user