-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes Druid Profiler failures (#13700)
* fix: updated playwrigth test structure * fix: druid profiler queries * fix: python linting * fix: python linting * fix: do not compute random sample if profile sample is 100 * fix: updated workflow to test on push * fix: move connector config to category folder * fix: updated imports * fix: added pytest-dependency package * fix: updated readme.md * fix: python linting * fix: updated profile doc for Druid sampling * fix: empty commit for CI * fix: added workflow constrain back * fix: sonar code smell * fix: added secrets to container * Update openmetadata-docs/content/v1.2.x-SNAPSHOT/connectors/ingestion/workflows/profiler/index.md Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com> * Update openmetadata-docs/content/v1.2.x-SNAPSHOT/connectors/ingestion/workflows/profiler/index.md Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com> * Update ingestion/tests/e2e/entity/database/test_redshift.py * fix: ran pylint * fix: updated redshift env var. * fix: import linting --------- Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
- Loading branch information
Showing
31 changed files
with
911 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
"""Redshift connector for e2e tests""" | ||
|
||
import os | ||
|
||
from playwright.sync_api import Page, expect | ||
|
||
from .interface import DataBaseConnectorInterface | ||
|
||
|
||
class Db2Connector(DataBaseConnectorInterface): | ||
"""db2 connector""" | ||
|
||
def get_service(self, page: Page): | ||
"""get service from the service page""" | ||
page.get_by_test_id("Db2").click() | ||
|
||
def set_connection(self, page): | ||
"""Set connection for redshift service""" | ||
page.get_by_label("Username*").fill(os.environ["E2E_DB2_USERNAME"]) | ||
expect(page.get_by_label("Username*")).to_have_value( | ||
os.environ["E2E_DB2_USERNAME"] | ||
) | ||
|
||
page.get_by_label("Password").fill(os.environ["E2E_DB2_PASSWORD"]) | ||
expect(page.get_by_label("Password")).to_have_value( | ||
os.environ["E2E_DB2_PASSWORD"] | ||
) | ||
|
||
page.get_by_label("Host and Port*").fill(os.environ["E2E_DB2_HOST_PORT"]) | ||
expect(page.get_by_label("Host and Port*")).to_have_value( | ||
os.environ["E2E_DB2_HOST_PORT"] | ||
) | ||
|
||
page.get_by_label("database*").fill(os.environ["E2E_DB2_DATABASE"]) | ||
expect(page.get_by_label("database*")).to_have_value( | ||
os.environ["E2E_DB2_DATABASE"] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"""Redshift connector for e2e tests""" | ||
|
||
import os | ||
|
||
from playwright.sync_api import Page, expect | ||
|
||
from .interface import DataBaseConnectorInterface | ||
|
||
|
||
class DruidConnector(DataBaseConnectorInterface): | ||
"""druid connector""" | ||
|
||
def get_service(self, page: Page): | ||
"""get service from the service page""" | ||
page.get_by_test_id("Druid").click() | ||
|
||
def set_connection(self, page): | ||
"""Set connection for redshift service""" | ||
page.get_by_label("Host and Port*").fill(os.environ["E2E_DRUID_HOST_PORT"]) | ||
expect(page.get_by_label("Host and Port*")).to_have_value( | ||
os.environ["E2E_DRUID_HOST_PORT"] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""MySQL connector for e2e tests""" | ||
|
||
import os | ||
|
||
from playwright.sync_api import Page, expect | ||
|
||
from .interface import DataBaseConnectorInterface | ||
|
||
|
||
class HiveConnector(DataBaseConnectorInterface): | ||
def get_service(self, page: Page): | ||
"""get service from the service page""" | ||
page.get_by_test_id("Hive").click() | ||
|
||
def set_connection(self, page): | ||
"""Set connection for redshift service""" | ||
page.locator('[id="root\\/hostPort"]').fill(os.environ["E2E_HIVE_HOST_PORT"]) | ||
expect(page.locator('[id="root\\/hostPort"]')).to_have_value( | ||
os.environ["E2E_HIVE_HOST_PORT"] | ||
) | ||
|
||
page.locator('[id="root\\/metastoreConnection__oneof_select"]').select_option( | ||
"2" | ||
) |
Oops, something went wrong.