From e1b5dc55fc37529297b2200e7353d219574f93a7 Mon Sep 17 00:00:00 2001 From: Dave Connors Date: Mon, 30 Oct 2023 15:58:06 -0500 Subject: [PATCH] tests --- tests/1.5/invalid/dbt_project.yml | 2 ++ tests/1.5/valid/dbt_project.yml | 5 +++++ tests/1.5/valid/dbt_yml_files.yml | 4 ++++ tests/1.6/invalid/dbt_project.yml | 5 +++++ tests/1.6/valid/dbt_project.yml | 4 ++++ tests/1.6/valid/dbt_yml_files.yml | 4 ++++ 6 files changed, 24 insertions(+) diff --git a/tests/1.5/invalid/dbt_project.yml b/tests/1.5/invalid/dbt_project.yml index 9584d5b..cae2f0b 100644 --- a/tests/1.5/invalid/dbt_project.yml +++ b/tests/1.5/invalid/dbt_project.yml @@ -38,6 +38,8 @@ models: +materialized: view +bogus_key: true bogus_key_no_plus: "shonuff" + +grants: + no_numbers: 55 seeds: test: diff --git a/tests/1.5/valid/dbt_project.yml b/tests/1.5/valid/dbt_project.yml index 5b9543c..9dd8d1f 100644 --- a/tests/1.5/valid/dbt_project.yml +++ b/tests/1.5/valid/dbt_project.yml @@ -49,6 +49,11 @@ models: contracted_models: +contract: enforced: true + granted_models: + +grants: + privilege: role + privileges: ["select_user", "select_cruiser"] + test_bq: +labels: diff --git a/tests/1.5/valid/dbt_yml_files.yml b/tests/1.5/valid/dbt_yml_files.yml index 0731c87..fff284f 100644 --- a/tests/1.5/valid/dbt_yml_files.yml +++ b/tests/1.5/valid/dbt_yml_files.yml @@ -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" diff --git a/tests/1.6/invalid/dbt_project.yml b/tests/1.6/invalid/dbt_project.yml index b1ee0d9..6961709 100644 --- a/tests/1.6/invalid/dbt_project.yml +++ b/tests/1.6/invalid/dbt_project.yml @@ -39,6 +39,11 @@ models: +materialized: view +bogus_key: true bogus_key_no_plus: "shonuff" + +grants: + no_numbers: 55 + + + seeds: test: diff --git a/tests/1.6/valid/dbt_project.yml b/tests/1.6/valid/dbt_project.yml index 13ff230..691a276 100644 --- a/tests/1.6/valid/dbt_project.yml +++ b/tests/1.6/valid/dbt_project.yml @@ -49,6 +49,10 @@ models: contracted_models: +contract: enforced: true + granted_models: + +grants: + privilege: role + privileges: ["select_user", "select_cruiser"] test_bq: +labels: diff --git a/tests/1.6/valid/dbt_yml_files.yml b/tests/1.6/valid/dbt_yml_files.yml index 7bd16d2..8afac24 100644 --- a/tests/1.6/valid/dbt_yml_files.yml +++ b/tests/1.6/valid/dbt_yml_files.yml @@ -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"