Skip to content

Commit

Permalink
Mark tests using bigquery
Browse files Browse the repository at this point in the history
  • Loading branch information
pattisdr committed Sep 21, 2024
1 parent c67acc4 commit 2bc6a90
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/dataset/bigquery_delete_override_test_dataset.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dataset:
- fides_key: bigquery_example_test_dataset_with_masking_strategy_override
name: BigQuery Example Test Dataset Demonstrating Masking Strategy Override
description: Example of a BigQuery dataset containing a variety of related tables like customers, products, addresses, etc.
description: Small bigquery dataset useful for local testing. Demonstrates masking strategy override and erase_after.
collections:
- name: address
fides_meta:
Expand Down
4 changes: 4 additions & 0 deletions data/dataset/bigquery_example_test_dataset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ dataset:
description: Example of a BigQuery dataset containing a variety of related tables like customers, products, addresses, etc.
collections:
- name: address
fides_meta:
erase_after: [ bigquery_example_test_dataset.employee ]
fields:
- name: city
data_categories: [user.contact.address.city]
Expand All @@ -21,6 +23,8 @@ dataset:
data_categories: [user.contact.address.postal_code]

- name: customer
fides_meta:
erase_after: [ bigquery_example_test_dataset.address ]
fields:
- name: address_id
data_categories: [system.operations]
Expand Down
3 changes: 2 additions & 1 deletion tests/ops/graph/test_graph_traversal.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def test_graph_creation() -> None:
}
assert graph.identity_keys == {FieldAddress("dr_1", "ds_1", "f1"): "x"}


@pytest.mark.integration_external
@pytest.mark.integration_bigquery
def test_graph_creation_with_collection_level_meta(
example_datasets, bigquery_connection_config
):
Expand Down
2 changes: 2 additions & 0 deletions tests/ops/task/test_create_request_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,8 @@ def test_update_erasure_tasks_with_placeholder_access_data(
"FIDESOPS_DO_NOT_MASK",
]

@pytest.mark.integration_external
@pytest.mark.integration_bigquery
def test_erase_after_database_collections_upstream_and_downstream_tasks(
self, db, privacy_request, example_datasets, bigquery_connection_config
):
Expand Down

0 comments on commit 2bc6a90

Please sign in to comment.