-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fix/fix-n-test-utils-macros' into 'main'
fix: Correct drop_tags and add poe for utils macros See merge request infinitelambda/bi-chapter/dbt-tags!6
- Loading branch information
Showing
11 changed files
with
88 additions
and
58 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
integration_tests/models/behavior/verify_if_masking_policies_applied_correctly.yml
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
models: | ||
- name: verify_if_masking_policies_applied_correctly | ||
tests: | ||
data_tests: | ||
- dbt_utils.expression_is_true: | ||
expression: ifnull(adapter_tag, '') = dbt_project_tag |
2 changes: 1 addition & 1 deletion
2
integration_tests/models/behavior/verify_if_masking_policies_created_correctly.yml
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
models: | ||
- name: verify_if_masking_policies_created_correctly | ||
tests: | ||
data_tests: | ||
- dbt_utils.expression_is_true: | ||
expression: ifnull(adapter_masking_policy, '') = dbt_project_masking_policy |
2 changes: 1 addition & 1 deletion
2
integration_tests/models/behavior/verify_if_tags_applied_correctly.yml
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
models: | ||
- name: verify_if_tags_applied_correctly | ||
tests: | ||
data_tests: | ||
- dbt_utils.expression_is_true: | ||
expression: ifnull(actual_tag_value, '') = config_tag_value |
2 changes: 1 addition & 1 deletion
2
integration_tests/models/behavior/verify_if_tags_created_correctly.yml
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
models: | ||
- name: verify_if_tags_created_correctly | ||
tests: | ||
data_tests: | ||
- dbt_utils.expression_is_true: | ||
expression: adapter_tag is not null |
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
9 changes: 9 additions & 0 deletions
9
integration_tests/tests/cleanup/verify_if_drop_tags_correctly.sql
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,9 @@ | ||
{{ | ||
config( | ||
tags = ['cleanup'], | ||
) | ||
}} | ||
select * | ||
from {{ ref('verify_if_tags_created_correctly') }} | ||
where dbt_project_tag in ('{{ var("dbt_tags__allowed_tags", []) | join("','") }}') | ||
and adapter_tag is not null |
9 changes: 9 additions & 0 deletions
9
integration_tests/tests/cleanup/verify_if_unapply_mps_correctly.sql
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,9 @@ | ||
{{ | ||
config( | ||
tags = ['cleanup'], | ||
) | ||
}} | ||
|
||
select * | ||
from {{ ref('verify_if_masking_policies_applied_correctly') }} | ||
where adapter_tag is not null |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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