Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-connors-3 committed Oct 30, 2023
1 parent 623098c commit e1b5dc5
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/1.5/invalid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ models:
+materialized: view
+bogus_key: true
bogus_key_no_plus: "shonuff"
+grants:
no_numbers: 55

seeds:
test:
Expand Down
5 changes: 5 additions & 0 deletions tests/1.5/valid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ models:
contracted_models:
+contract:
enforced: true
granted_models:
+grants:
privilege: role
privileges: ["select_user", "select_cruiser"]


test_bq:
+labels:
Expand Down
4 changes: 4 additions & 0 deletions tests/1.5/valid/dbt_yml_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
models:
- name: my_first_dbt_model
description: "A starter dbt model"
config:
grants:
privilege: role
privileges: ["select_user", "select_cruiser"]
columns:
- name: id
description: "The primary key for this table"
Expand Down
5 changes: 5 additions & 0 deletions tests/1.6/invalid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ models:
+materialized: view
+bogus_key: true
bogus_key_no_plus: "shonuff"
+grants:
no_numbers: 55




seeds:
test:
Expand Down
4 changes: 4 additions & 0 deletions tests/1.6/valid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ models:
contracted_models:
+contract:
enforced: true
granted_models:
+grants:
privilege: role
privileges: ["select_user", "select_cruiser"]

test_bq:
+labels:
Expand Down
4 changes: 4 additions & 0 deletions tests/1.6/valid/dbt_yml_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
models:
- name: my_first_dbt_model
description: "A starter dbt model"
config:
grants:
privilege: role
privileges: ["select_user", "select_cruiser"]
columns:
- name: id
description: "The primary key for this table"
Expand Down

0 comments on commit e1b5dc5

Please sign in to comment.