Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Commit

Permalink
Fixed code and updated data_mesh_test to be ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestoLoma authored and Aryamanz29 committed Mar 18, 2024
1 parent 6e4c300 commit 29417ba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pyatlan-test-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
# to display only the durations of the 25 slowest tests with `pytest-sugar`
run: |
pytest tests/unit --force-sugar
pytest tests/integration --ignore tests/integration/data_mesh_test.py -p name_of_plugin --timer-top-n 25 --force-sugar
pytest tests/integration -p name_of_plugin --timer-top-n 25 --force-sugar
1 change: 1 addition & 0 deletions pyatlan/model/assets/data_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ def create(
data_domain=domain,
qualified_name=f"default/product/{camel_case_name}",
asset_icon=icon_str,
data_product_assets_playbook_filter='{"condition":"AND","isGroupLocked":false,"rules":[]}',
)

attributes: "DataProduct.Attributes" = Field(
Expand Down
1 change: 0 additions & 1 deletion tests/integration/.testignore.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
data_mesh_test.py
8 changes: 8 additions & 0 deletions tests/integration/data_mesh_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@

response = block(AtlanClient(), AssetMutationResponse())

pytestmark = pytest.mark.skip(
"Reset broke data mesh stuff. Some bootstrap policies need to be reset"
)


@pytest.fixture(scope="module")
def domain(client: AtlanClient) -> Generator[DataDomain, None, None]:
Expand Down Expand Up @@ -186,6 +190,10 @@ def test_product(client: AtlanClient, product: DataProduct):
assert product.qualified_name
assert product.name == DATA_PRODUCT_NAME
assert product.qualified_name == DATA_PRODUCT_QUALIFIED_NAME
assert (
product.data_product_assets_playbook_filter
== '{"condition":"AND","isGroupLocked":false,"rules":[]}'
)


def test_update_product(client: AtlanClient, product: DataProduct):
Expand Down

0 comments on commit 29417ba

Please sign in to comment.