From f560da34bf24b67460f88df289379c326643e121 Mon Sep 17 00:00:00 2001 From: Victor Perron Date: Fri, 2 Aug 2024 18:31:31 +0200 Subject: [PATCH] chore(pipeline) : Replace all "tests" by "data_tests" To get rid of a deprecation warning whenever we run `dbt test`. https://docs.getdbt.com/docs/build/data-tests#new-data_tests-syntax The command: git grep --color=never --name-only "tests:" pipeline/dbt/models | xargs -i% sed -i 's/tests:/data_tests:/g' % --- pipeline/dbt/models/intermediate/_models.yml | 6 +- .../intermediate/brevo/_brevo__models.yml | 6 +- .../_action_logement__models.yml | 18 +-- .../sources/agefiph/_agefiph__models.yml | 18 +-- .../sources/cd35/_cd35__models.yml | 10 +- .../sources/cd72/_cd72__models.yml | 18 +-- .../_data_inclusion__models.yml | 18 +-- .../sources/dora/_dora__models.yml | 22 ++-- .../_emplois_de_linclusion__models.yml | 10 +- .../sources/finess/_finess__models.yml | 10 +- .../france_travail/_france_travail_models.yml | 18 +-- .../_mediation_numerique_models.yml | 18 +-- .../sources/mes_aides/_mes_aides__models.yml | 18 +-- .../sources/monenfant/_monenfant__models.yml | 18 +-- .../sources/odspep/_odspep__models.yml | 24 ++-- .../reseau_alpha/_reseau_alpha__models.yml | 18 +-- .../sources/siao/_siao__models.yml | 10 +- .../sources/soliguide/_soliguide__models.yml | 18 +-- .../models/staging/brevo/_brevo__models.yml | 14 +- .../_code_officiel_geographique__models.yml | 14 +- .../_action_logement__models.yml | 4 +- .../sources/agefiph/_agefiph__models.yml | 10 +- .../staging/sources/cd35/_cd35__models.yml | 40 +++--- .../staging/sources/cd72/_cd72__models.yml | 6 +- .../_data_inclusion__models.yml | 6 +- .../staging/sources/dora/_dora__models.yml | 122 +++++++++--------- .../_france_travail__models.yml | 4 +- .../staging/sources/fredo/_fredo__models.yml | 46 +++---- .../_mediation_numerique_models.yml | 54 ++++---- .../sources/monenfant/_monenfant__models.yml | 32 ++--- .../sources/odspep/_odspep__models.yml | 18 +-- .../reseau_alpha/_reseau_alpha__models.yml | 6 +- .../sources/soliguide/_soliguide__models.yml | 32 ++--- 33 files changed, 343 insertions(+), 343 deletions(-) diff --git a/pipeline/dbt/models/intermediate/_models.yml b/pipeline/dbt/models/intermediate/_models.yml index a715a106..c485cf5f 100644 --- a/pipeline/dbt/models/intermediate/_models.yml +++ b/pipeline/dbt/models/intermediate/_models.yml @@ -14,7 +14,7 @@ models: * model can contain faulty data * test failure are saved (see log output) - tests: + data_tests: - check_adresse: *union-common-check-args - name: int__union_services @@ -23,7 +23,7 @@ models: * model can contain faulty data * test failure are saved (see log output) - tests: + data_tests: - check_service: *union-common-check-args - name: int__union_structures @@ -32,7 +32,7 @@ models: * model can contain faulty data * test failure are saved (see log output) - tests: + data_tests: - check_structure: *union-common-check-args - name: int__plausible_personal_emails diff --git a/pipeline/dbt/models/intermediate/brevo/_brevo__models.yml b/pipeline/dbt/models/intermediate/brevo/_brevo__models.yml index d169ac96..8d5d478f 100644 --- a/pipeline/dbt/models/intermediate/brevo/_brevo__models.yml +++ b/pipeline/dbt/models/intermediate/brevo/_brevo__models.yml @@ -4,17 +4,17 @@ models: - name: int_brevo__contacts columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: courriel - tests: + data_tests: - not_null - dbt_utils.not_constant - dbt_utils.not_empty_string - name: est_interdit - tests: + data_tests: - not_null - accepted_values: values: [true, false] diff --git a/pipeline/dbt/models/intermediate/sources/action_logement/_action_logement__models.yml b/pipeline/dbt/models/intermediate/sources/action_logement/_action_logement__models.yml index 0c09a776..796fb841 100644 --- a/pipeline/dbt/models/intermediate/sources/action_logement/_action_logement__models.yml +++ b/pipeline/dbt/models/intermediate/sources/action_logement/_action_logement__models.yml @@ -2,54 +2,54 @@ version: 2 models: - name: int_action_logement__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: int_action_logement__services - tests: + data_tests: - check_service: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('int_action_logement__structures') field: id - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_action_logement__adresses') field: id - name: int_action_logement__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_action_logement__adresses') diff --git a/pipeline/dbt/models/intermediate/sources/agefiph/_agefiph__models.yml b/pipeline/dbt/models/intermediate/sources/agefiph/_agefiph__models.yml index 8bb6471e..65af368f 100644 --- a/pipeline/dbt/models/intermediate/sources/agefiph/_agefiph__models.yml +++ b/pipeline/dbt/models/intermediate/sources/agefiph/_agefiph__models.yml @@ -2,54 +2,54 @@ version: 2 models: - name: int_agefiph__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: int_agefiph__services - tests: + data_tests: - check_service: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('int_agefiph__structures') field: id - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_agefiph__adresses') field: id - name: int_agefiph__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_agefiph__adresses') diff --git a/pipeline/dbt/models/intermediate/sources/cd35/_cd35__models.yml b/pipeline/dbt/models/intermediate/sources/cd35/_cd35__models.yml index f80244d4..b0a2497f 100644 --- a/pipeline/dbt/models/intermediate/sources/cd35/_cd35__models.yml +++ b/pipeline/dbt/models/intermediate/sources/cd35/_cd35__models.yml @@ -2,30 +2,30 @@ version: 2 models: - name: int_cd35__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: int_cd35__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_cd35__adresses') diff --git a/pipeline/dbt/models/intermediate/sources/cd72/_cd72__models.yml b/pipeline/dbt/models/intermediate/sources/cd72/_cd72__models.yml index 8b1df2eb..17049a73 100644 --- a/pipeline/dbt/models/intermediate/sources/cd72/_cd72__models.yml +++ b/pipeline/dbt/models/intermediate/sources/cd72/_cd72__models.yml @@ -2,54 +2,54 @@ version: 2 models: - name: int_cd72__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: int_cd72__services - tests: + data_tests: - check_service: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('int_cd72__structures') field: id - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_cd72__adresses') field: id - name: int_cd72__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_cd72__adresses') diff --git a/pipeline/dbt/models/intermediate/sources/data_inclusion/_data_inclusion__models.yml b/pipeline/dbt/models/intermediate/sources/data_inclusion/_data_inclusion__models.yml index f6400e2e..fbb2bab0 100644 --- a/pipeline/dbt/models/intermediate/sources/data_inclusion/_data_inclusion__models.yml +++ b/pipeline/dbt/models/intermediate/sources/data_inclusion/_data_inclusion__models.yml @@ -2,54 +2,54 @@ version: 2 models: - name: int_data_inclusion__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: int_data_inclusion__services - tests: + data_tests: - check_service: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('int_data_inclusion__structures') field: id - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_data_inclusion__adresses') field: id - name: int_data_inclusion__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_data_inclusion__adresses') diff --git a/pipeline/dbt/models/intermediate/sources/dora/_dora__models.yml b/pipeline/dbt/models/intermediate/sources/dora/_dora__models.yml index b76138cb..df17232e 100644 --- a/pipeline/dbt/models/intermediate/sources/dora/_dora__models.yml +++ b/pipeline/dbt/models/intermediate/sources/dora/_dora__models.yml @@ -2,64 +2,64 @@ version: 2 models: - name: int_dora__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - name: int_dora__contacts columns: - name: contact_uid - tests: + data_tests: - unique - not_null - name: courriel - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: int_dora__services - tests: + data_tests: - check_service: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('int_dora__structures') field: id - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_dora__adresses') field: id - name: int_dora__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_dora__adresses') diff --git a/pipeline/dbt/models/intermediate/sources/emplois_de_linclusion/_emplois_de_linclusion__models.yml b/pipeline/dbt/models/intermediate/sources/emplois_de_linclusion/_emplois_de_linclusion__models.yml index ee563696..ba7f34ba 100644 --- a/pipeline/dbt/models/intermediate/sources/emplois_de_linclusion/_emplois_de_linclusion__models.yml +++ b/pipeline/dbt/models/intermediate/sources/emplois_de_linclusion/_emplois_de_linclusion__models.yml @@ -2,30 +2,30 @@ version: 2 models: - name: int_emplois_de_linclusion__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: int_emplois_de_linclusion__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_emplois_de_linclusion__adresses') diff --git a/pipeline/dbt/models/intermediate/sources/finess/_finess__models.yml b/pipeline/dbt/models/intermediate/sources/finess/_finess__models.yml index db981f1e..97ca27df 100644 --- a/pipeline/dbt/models/intermediate/sources/finess/_finess__models.yml +++ b/pipeline/dbt/models/intermediate/sources/finess/_finess__models.yml @@ -2,30 +2,30 @@ version: 2 models: - name: int_finess__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: int_finess__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_finess__adresses') diff --git a/pipeline/dbt/models/intermediate/sources/france_travail/_france_travail_models.yml b/pipeline/dbt/models/intermediate/sources/france_travail/_france_travail_models.yml index a844ca2e..a5c2fabc 100644 --- a/pipeline/dbt/models/intermediate/sources/france_travail/_france_travail_models.yml +++ b/pipeline/dbt/models/intermediate/sources/france_travail/_france_travail_models.yml @@ -2,54 +2,54 @@ version: 2 models: - name: int_france_travail__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: int_france_travail__services - tests: + data_tests: - check_service: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('int_france_travail__structures') field: id - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_france_travail__adresses') field: id - name: int_france_travail__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_france_travail__adresses') diff --git a/pipeline/dbt/models/intermediate/sources/mediation_numerique/_mediation_numerique_models.yml b/pipeline/dbt/models/intermediate/sources/mediation_numerique/_mediation_numerique_models.yml index 0a84c83b..dc99553d 100644 --- a/pipeline/dbt/models/intermediate/sources/mediation_numerique/_mediation_numerique_models.yml +++ b/pipeline/dbt/models/intermediate/sources/mediation_numerique/_mediation_numerique_models.yml @@ -2,7 +2,7 @@ version: 2 models: - name: int_mediation_numerique__adresses - tests: + data_tests: - dbt_utils.unique_combination_of_columns: combination_of_columns: - source @@ -12,12 +12,12 @@ models: severity: warn columns: - name: id - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: int_mediation_numerique__services - tests: + data_tests: - dbt_utils.unique_combination_of_columns: combination_of_columns: - source @@ -27,24 +27,24 @@ models: severity: warn columns: - name: id - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('int_mediation_numerique__structures') field: id - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_mediation_numerique__adresses') field: id - name: int_mediation_numerique__structures - tests: + data_tests: - dbt_utils.unique_combination_of_columns: combination_of_columns: - source @@ -54,11 +54,11 @@ models: severity: warn columns: - name: id - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_mediation_numerique__adresses') diff --git a/pipeline/dbt/models/intermediate/sources/mes_aides/_mes_aides__models.yml b/pipeline/dbt/models/intermediate/sources/mes_aides/_mes_aides__models.yml index 25616ae9..731972c7 100644 --- a/pipeline/dbt/models/intermediate/sources/mes_aides/_mes_aides__models.yml +++ b/pipeline/dbt/models/intermediate/sources/mes_aides/_mes_aides__models.yml @@ -2,54 +2,54 @@ version: 2 models: - name: int_mes_aides__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: int_mes_aides__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_mes_aides__adresses') field: id - name: int_mes_aides__services - tests: + data_tests: - check_service: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('int_mes_aides__structures') field: id - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_mes_aides__adresses') diff --git a/pipeline/dbt/models/intermediate/sources/monenfant/_monenfant__models.yml b/pipeline/dbt/models/intermediate/sources/monenfant/_monenfant__models.yml index 03c007d3..bbcaa5cd 100644 --- a/pipeline/dbt/models/intermediate/sources/monenfant/_monenfant__models.yml +++ b/pipeline/dbt/models/intermediate/sources/monenfant/_monenfant__models.yml @@ -2,54 +2,54 @@ version: 2 models: - name: int_monenfant__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: int_monenfant__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_monenfant__adresses') field: id - name: int_monenfant__services - tests: + data_tests: - check_service: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('int_monenfant__structures') field: id - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_monenfant__adresses') diff --git a/pipeline/dbt/models/intermediate/sources/odspep/_odspep__models.yml b/pipeline/dbt/models/intermediate/sources/odspep/_odspep__models.yml index 10c487fa..30f57b02 100644 --- a/pipeline/dbt/models/intermediate/sources/odspep/_odspep__models.yml +++ b/pipeline/dbt/models/intermediate/sources/odspep/_odspep__models.yml @@ -2,54 +2,54 @@ version: 2 models: - name: int_odspep__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: int_odspep__services - tests: + data_tests: - check_service: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('int_odspep__structures') field: id - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_odspep__adresses') field: id - name: int_odspep__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_odspep__adresses') @@ -65,13 +65,13 @@ models: columns: - name: group_key description: key constructed by us to group ressources parteneriales by - tests: + data_tests: - not_null - name: group_size description: records count for the associated group key - tests: + data_tests: - not_null - name: group_number description: an identifier for the group to quickly visualize groups - tests: + data_tests: - not_null diff --git a/pipeline/dbt/models/intermediate/sources/reseau_alpha/_reseau_alpha__models.yml b/pipeline/dbt/models/intermediate/sources/reseau_alpha/_reseau_alpha__models.yml index 3e11c6fe..56350bf0 100644 --- a/pipeline/dbt/models/intermediate/sources/reseau_alpha/_reseau_alpha__models.yml +++ b/pipeline/dbt/models/intermediate/sources/reseau_alpha/_reseau_alpha__models.yml @@ -2,54 +2,54 @@ version: 2 models: - name: int_reseau_alpha__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: int_reseau_alpha__services - tests: + data_tests: - check_service: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('int_reseau_alpha__structures') field: id - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_reseau_alpha__adresses') field: id - name: int_reseau_alpha__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_reseau_alpha__adresses') diff --git a/pipeline/dbt/models/intermediate/sources/siao/_siao__models.yml b/pipeline/dbt/models/intermediate/sources/siao/_siao__models.yml index 1b340c95..4ca8cb59 100644 --- a/pipeline/dbt/models/intermediate/sources/siao/_siao__models.yml +++ b/pipeline/dbt/models/intermediate/sources/siao/_siao__models.yml @@ -2,30 +2,30 @@ version: 2 models: - name: int_siao__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: int_siao__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_siao__adresses') diff --git a/pipeline/dbt/models/intermediate/sources/soliguide/_soliguide__models.yml b/pipeline/dbt/models/intermediate/sources/soliguide/_soliguide__models.yml index e3e1c179..8f02c26d 100644 --- a/pipeline/dbt/models/intermediate/sources/soliguide/_soliguide__models.yml +++ b/pipeline/dbt/models/intermediate/sources/soliguide/_soliguide__models.yml @@ -2,54 +2,54 @@ version: 2 models: - name: int_soliguide__adresses - tests: + data_tests: - check_adresse: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: int_soliguide__structures - tests: + data_tests: - check_structure: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_soliguide__adresses') field: id - name: int_soliguide__services - tests: + data_tests: - check_service: config: severity: warn columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('int_soliguide__structures') field: id - name: adresse_id - tests: + data_tests: - not_null - relationships: to: ref('int_soliguide__adresses') diff --git a/pipeline/dbt/models/staging/brevo/_brevo__models.yml b/pipeline/dbt/models/staging/brevo/_brevo__models.yml index 7909979a..3cb099c3 100644 --- a/pipeline/dbt/models/staging/brevo/_brevo__models.yml +++ b/pipeline/dbt/models/staging/brevo/_brevo__models.yml @@ -4,35 +4,35 @@ models: - name: stg_brevo__contacts columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: email - tests: + data_tests: - not_null - dbt_utils.not_constant - dbt_utils.not_empty_string - name: email_blacklisted - tests: + data_tests: - not_null - accepted_values: values: [true, false] - name: sms_blacklisted - tests: + data_tests: - not_null - accepted_values: values: [true, false] - name: created_at - tests: + data_tests: - not_null - dbt_utils.not_constant - name: modified_at - tests: + data_tests: - not_null - dbt_utils.not_constant - name: contact_uids - tests: + data_tests: - not_null - dbt_utils.not_empty_string - dbt_utils.not_constant diff --git a/pipeline/dbt/models/staging/code_officiel_geographique/_code_officiel_geographique__models.yml b/pipeline/dbt/models/staging/code_officiel_geographique/_code_officiel_geographique__models.yml index 820034e3..f986599b 100644 --- a/pipeline/dbt/models/staging/code_officiel_geographique/_code_officiel_geographique__models.yml +++ b/pipeline/dbt/models/staging/code_officiel_geographique/_code_officiel_geographique__models.yml @@ -4,19 +4,19 @@ models: - name: stg_code_officiel_geographique__communes columns: - name: type_commune - tests: + data_tests: - not_null - dbt_utils.not_constant - accepted_values: values: ['commune', 'commune-associee', 'arrondissement-municipal'] - name: code - tests: + data_tests: - unique - not_null - dbt_utils.not_constant - dbt_utils.not_empty_string - name: libelle - tests: + data_tests: - not_null - dbt_utils.not_constant - dbt_utils.not_empty_string @@ -24,13 +24,13 @@ models: - name: stg_code_officiel_geographique__departements columns: - name: code - tests: + data_tests: - unique - not_null - dbt_utils.not_constant - dbt_utils.not_empty_string - name: libelle - tests: + data_tests: - not_null - dbt_utils.not_constant - dbt_utils.not_empty_string @@ -38,13 +38,13 @@ models: - name: stg_code_officiel_geographique__regions columns: - name: code - tests: + data_tests: - unique - not_null - dbt_utils.not_constant - dbt_utils.not_empty_string - name: libelle - tests: + data_tests: - not_null - dbt_utils.not_constant - dbt_utils.not_empty_string diff --git a/pipeline/dbt/models/staging/sources/action_logement/_action_logement__models.yml b/pipeline/dbt/models/staging/sources/action_logement/_action_logement__models.yml index c06853be..cb63e21f 100644 --- a/pipeline/dbt/models/staging/sources/action_logement/_action_logement__models.yml +++ b/pipeline/dbt/models/staging/sources/action_logement/_action_logement__models.yml @@ -4,7 +4,7 @@ models: - name: stg_action_logement__services columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string @@ -12,7 +12,7 @@ models: - name: stg_action_logement__structures columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string diff --git a/pipeline/dbt/models/staging/sources/agefiph/_agefiph__models.yml b/pipeline/dbt/models/staging/sources/agefiph/_agefiph__models.yml index 919f34d6..af8bc345 100644 --- a/pipeline/dbt/models/staging/sources/agefiph/_agefiph__models.yml +++ b/pipeline/dbt/models/staging/sources/agefiph/_agefiph__models.yml @@ -4,29 +4,29 @@ models: - name: stg_agefiph__services_publics columns: - name: service_id - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: public_id - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: stg_agefiph__services_thematiques columns: - name: service_id - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: thematique_id - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: stg_agefiph__services columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string diff --git a/pipeline/dbt/models/staging/sources/cd35/_cd35__models.yml b/pipeline/dbt/models/staging/sources/cd35/_cd35__models.yml index 78a8e303..eee226e6 100644 --- a/pipeline/dbt/models/staging/sources/cd35/_cd35__models.yml +++ b/pipeline/dbt/models/staging/sources/cd35/_cd35__models.yml @@ -4,79 +4,79 @@ models: - name: stg_cd35__organisations columns: - name: adresse - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: code_insee - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: code_postal - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: commune - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: complement_adresse - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: courriel - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: date_creation - tests: + data_tests: - dbt_utils.not_constant - name: date_maj - tests: + data_tests: - dbt_utils.not_constant - name: horaires_ouvertures - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string: config: severity: warn - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: latitude - tests: + data_tests: - dbt_utils.not_constant - name: lien_source - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: longitude - tests: + data_tests: - dbt_utils.not_constant - name: nom - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: presentation_detail - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: profils - tests: + data_tests: - dbt_utils.not_constant - name: sigle - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: site_web - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: telephone - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: thematiques - tests: + data_tests: - dbt_utils.not_constant diff --git a/pipeline/dbt/models/staging/sources/cd72/_cd72__models.yml b/pipeline/dbt/models/staging/sources/cd72/_cd72__models.yml index b4d9c35c..18bf82ce 100644 --- a/pipeline/dbt/models/staging/sources/cd72/_cd72__models.yml +++ b/pipeline/dbt/models/staging/sources/cd72/_cd72__models.yml @@ -4,7 +4,7 @@ models: - name: stg_cd72__structures columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string @@ -12,12 +12,12 @@ models: - name: stg_cd72__services columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('stg_cd72__structures') diff --git a/pipeline/dbt/models/staging/sources/data_inclusion/_data_inclusion__models.yml b/pipeline/dbt/models/staging/sources/data_inclusion/_data_inclusion__models.yml index fe4401fe..b3afc5c7 100644 --- a/pipeline/dbt/models/staging/sources/data_inclusion/_data_inclusion__models.yml +++ b/pipeline/dbt/models/staging/sources/data_inclusion/_data_inclusion__models.yml @@ -4,12 +4,12 @@ models: - name: stg_data_inclusion__services columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('stg_data_inclusion__structures') @@ -18,7 +18,7 @@ models: - name: stg_data_inclusion__structures columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string diff --git a/pipeline/dbt/models/staging/sources/dora/_dora__models.yml b/pipeline/dbt/models/staging/sources/dora/_dora__models.yml index eea95752..2aff3443 100644 --- a/pipeline/dbt/models/staging/sources/dora/_dora__models.yml +++ b/pipeline/dbt/models/staging/sources/dora/_dora__models.yml @@ -4,133 +4,133 @@ models: - name: stg_dora__services columns: - name: adresse - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: code_insee - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: code_postal - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: commune - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: complement_adresse - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: contact_nom_prenom - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: contact_public - tests: + data_tests: - not_null - accepted_values: values: [true, false] - name: courriel - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: cumulable - tests: + data_tests: - not_null - accepted_values: values: [true, false] - name: date_creation - tests: + data_tests: - not_null: config: severity: warn - dbt_utils.not_constant - name: date_maj - tests: + data_tests: - not_null - dbt_utils.accepted_range: min_value: "now() - interval '2 years'" config: severity: warn - name: date_suspension - tests: + data_tests: - dbt_utils.not_constant - name: formulaire_en_ligne - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: frais_autres - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: frais - tests: + data_tests: - dbt_utils.not_constant - relationships: to: ref('frais') field: value - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: justificatifs - tests: + data_tests: - dbt_utils.not_constant - name: latitude - tests: + data_tests: - dbt_utils.not_constant - name: lien_source - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: longitude - tests: + data_tests: - dbt_utils.not_constant - name: modes_accueil - tests: + data_tests: - dbt_utils.expression_is_true: expression: "<@ ARRAY(SELECT value FROM {{ ref('modes_accueil') }})" - name: nom - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: pre_requis - tests: + data_tests: - dbt_utils.not_constant - name: presentation_resume - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: presentation_detail - tests: + data_tests: - dbt_utils.not_constant: config: severity: warn - dbt_utils.not_empty_string - name: prise_rdv - tests: + data_tests: - dbt_utils.not_constant: config: severity: warn - dbt_utils.not_empty_string - name: profils - tests: + data_tests: - dbt_utils.expression_is_true: expression: "<@ ARRAY(SELECT value FROM {{ ref('profils') }})" config: severity: warn - name: recurrence - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: source - tests: + data_tests: - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('stg_dora__structures') @@ -140,29 +140,29 @@ models: config: severity: warn - name: telephone - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: thematiques - tests: + data_tests: - dbt_utils.expression_is_true: expression: "<@ ARRAY(SELECT value FROM {{ ref('thematiques') }})" config: severity: warn - name: types - tests: + data_tests: - dbt_utils.expression_is_true: expression: "<@ ARRAY(SELECT value FROM {{ ref('typologies_de_services') }})" - name: zone_diffusion_code - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: zone_diffusion_nom - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: zone_diffusion_type - tests: + data_tests: - not_null - dbt_utils.not_constant - accepted_values: @@ -171,43 +171,43 @@ models: - name: stg_dora__structures columns: - name: accessibilite - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: adresse - tests: + data_tests: - not_null: config: severity: warn - dbt_utils.not_constant - dbt_utils.not_empty_string - name: antenne - tests: + data_tests: - not_null - accepted_values: values: [true, false] - name: code_insee - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: code_postal - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: commune - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: complement_adresse - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: courriel - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: date_maj - tests: + data_tests: - not_null: config: severity: warn @@ -217,77 +217,77 @@ models: config: severity: warn - name: horaires_ouverture - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: labels_autres - name: labels_nationaux - tests: + data_tests: - dbt_utils.expression_is_true: expression: "<@ ARRAY(SELECT value FROM {{ ref('labels_nationaux') }})" config: severity: warn - name: latitude - tests: + data_tests: - dbt_utils.not_constant - name: lien_source - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: longitude - tests: + data_tests: - dbt_utils.not_constant - name: nom - tests: + data_tests: - not_null: config: severity: warn - dbt_utils.not_constant - dbt_utils.not_empty_string - name: presentation_detail - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: presentation_resume - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: rna - tests: + data_tests: - dbt_utils.not_constant: config: severity: warn - dbt_utils.not_empty_string - name: siret - tests: + data_tests: - not_null: config: severity: warn - dbt_utils.not_constant - dbt_utils.not_empty_string - name: site_web - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: source - tests: + data_tests: - dbt_utils.not_empty_string - name: telephone - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: thematiques - tests: + data_tests: # dora's thematiques are defined at the service level - dbt_utils.expression_is_true: expression: "IS NULL" - name: typologie - tests: + data_tests: - dbt_utils.not_constant - relationships: to: ref('typologies_de_structures') diff --git a/pipeline/dbt/models/staging/sources/france_travail/_france_travail__models.yml b/pipeline/dbt/models/staging/sources/france_travail/_france_travail__models.yml index ee78077f..762fed36 100644 --- a/pipeline/dbt/models/staging/sources/france_travail/_france_travail__models.yml +++ b/pipeline/dbt/models/staging/sources/france_travail/_france_travail__models.yml @@ -4,7 +4,7 @@ models: - name: stg_france_travail__services columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string @@ -12,7 +12,7 @@ models: - name: stg_france_travail__agences columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string diff --git a/pipeline/dbt/models/staging/sources/fredo/_fredo__models.yml b/pipeline/dbt/models/staging/sources/fredo/_fredo__models.yml index c65e34fe..a630ca33 100644 --- a/pipeline/dbt/models/staging/sources/fredo/_fredo__models.yml +++ b/pipeline/dbt/models/staging/sources/fredo/_fredo__models.yml @@ -4,50 +4,50 @@ models: - name: stg_fredo__structures columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: adresse - tests: + data_tests: - not_null: config: severity: warn - dbt_utils.not_empty_string - name: code_postal - tests: + data_tests: - not_null: config: severity: warn - dbt_utils.not_empty_string - name: commune - tests: + data_tests: - not_null: config: severity: warn - dbt_utils.not_empty_string - name: frais - tests: + data_tests: - dbt_utils.not_empty_string - name: horaires_ouverture - tests: + data_tests: - dbt_utils.not_empty_string - name: lien_source - tests: + data_tests: - dbt_utils.not_empty_string - name: nom - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: presentation_resume - tests: + data_tests: - dbt_utils.not_empty_string - name: siret - tests: + data_tests: - dbt_utils.not_empty_string - name: telephone - tests: + data_tests: - dbt_utils.not_empty_string - name: latitude - name: longitude @@ -60,26 +60,26 @@ models: - name: stg_fredo__categories columns: - name: id - tests: + data_tests: - not_null - relationships: to: ref('stg_fredo__structures') field: id - name: value - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: stg_fredo__frais columns: - name: id - tests: + data_tests: - not_null - relationships: to: ref('stg_fredo__structures') field: id - name: value - tests: + data_tests: - not_null - dbt_utils.not_empty_string - accepted_values: @@ -90,51 +90,51 @@ models: - name: stg_fredo__publics columns: - name: id - tests: + data_tests: - not_null - relationships: to: ref('stg_fredo__structures') field: id - name: value - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: stg_fredo__quartiers columns: - name: id - tests: + data_tests: - not_null - relationships: to: ref('stg_fredo__structures') field: id - name: value - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: stg_fredo__services columns: - name: id - tests: + data_tests: - not_null - relationships: to: ref('stg_fredo__structures') field: id - name: value - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: stg_fredo__types columns: - name: id - tests: + data_tests: - not_null - relationships: to: ref('stg_fredo__structures') field: id - name: value - tests: + data_tests: - not_null - dbt_utils.not_empty_string diff --git a/pipeline/dbt/models/staging/sources/mediation_numerique/_mediation_numerique_models.yml b/pipeline/dbt/models/staging/sources/mediation_numerique/_mediation_numerique_models.yml index f060fb97..c76db998 100644 --- a/pipeline/dbt/models/staging/sources/mediation_numerique/_mediation_numerique_models.yml +++ b/pipeline/dbt/models/staging/sources/mediation_numerique/_mediation_numerique_models.yml @@ -4,52 +4,52 @@ models: - name: stg_mediation_numerique__services columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: structure_id - tests: + data_tests: - not_null - relationships: to: ref('stg_mediation_numerique__structures') field: id - name: thematiques - tests: + data_tests: - dbt_utils.expression_is_true: expression: "<@ ARRAY(SELECT value FROM {{ ref('thematiques') }})" - name: profils - tests: + data_tests: - dbt_utils.expression_is_true: expression: "<@ ARRAY(SELECT value FROM {{ ref('profils') }})" - name: types - tests: + data_tests: - dbt_utils.expression_is_true: expression: "<@ ARRAY(SELECT value FROM {{ ref('typologies_de_services') }})" - name: frais - tests: + data_tests: - dbt_utils.expression_is_true: expression: "<@ ARRAY(SELECT value FROM {{ ref('frais') }})" - name: latitude - tests: + data_tests: - dbt_utils.not_constant: config: severity: warn - name: longitude - tests: + data_tests: - dbt_utils.not_constant: config: severity: warn - name: nom - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: source - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: prise_rdv - tests: + data_tests: - dbt_utils.not_constant: config: severity: warn @@ -58,75 +58,75 @@ models: - name: stg_mediation_numerique__structures columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: siret - tests: + data_tests: - dbt_utils.not_empty_string - dbt_utils.expression_is_true: expression: "!= REPEAT('0', 14)" - name: source - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: nom - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: thematiques - tests: + data_tests: - dbt_utils.expression_is_true: expression: "<@ ARRAY(SELECT value FROM {{ ref('thematiques') }})" - name: latitude - tests: + data_tests: - dbt_utils.not_constant - name: longitude - tests: + data_tests: - dbt_utils.not_constant - name: labels_nationaux - tests: + data_tests: - dbt_utils.expression_is_true: expression: "<@ ARRAY(SELECT value FROM {{ ref('labels_nationaux') }})" - name: adresse - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: commune - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: courriel - tests: + data_tests: - dbt_utils.not_constant: config: severity: warn - dbt_utils.not_empty_string - name: site_web - tests: + data_tests: - dbt_utils.not_constant: config: severity: warn - dbt_utils.not_empty_string - name: telephone - tests: + data_tests: - dbt_utils.not_constant: config: severity: warn - dbt_utils.not_empty_string - name: code_postal - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: horaires_ouverture - tests: + data_tests: - dbt_utils.not_constant: config: severity: warn - dbt_utils.not_empty_string - name: date_maj - tests: + data_tests: - not_null - dbt_utils.not_constant: config: diff --git a/pipeline/dbt/models/staging/sources/monenfant/_monenfant__models.yml b/pipeline/dbt/models/staging/sources/monenfant/_monenfant__models.yml index 79e0855d..a70b8be3 100644 --- a/pipeline/dbt/models/staging/sources/monenfant/_monenfant__models.yml +++ b/pipeline/dbt/models/staging/sources/monenfant/_monenfant__models.yml @@ -4,40 +4,40 @@ models: - name: stg_monenfant__creches columns: - name: id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: avip - tests: + data_tests: - not_null - accepted_values: values: [true, false] - name: longitude - tests: + data_tests: - not_null - name: latitude - tests: + data_tests: - not_null - name: result_id - tests: + data_tests: - unique - not_null - dbt_utils.not_empty_string - name: ville - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: telephone - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: nom - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: mail - tests: + data_tests: - not_null: config: severity: warn @@ -45,14 +45,14 @@ models: at_least: 0.1 - dbt_utils.not_empty_string - name: derniere_modif_date - tests: + data_tests: - not_null - name: adresse - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: details__website - tests: + data_tests: - not_null: config: severity: warn @@ -60,7 +60,7 @@ models: at_least: 0.1 - dbt_utils.not_empty_string - name: details__infos_pratiques__jour_horaire - tests: + data_tests: - not_null: config: severity: warn @@ -68,7 +68,7 @@ models: at_least: 0.1 - dbt_utils.not_empty_string - name: details__presentation__structure_projet - tests: + data_tests: - not_null: config: severity: warn @@ -76,14 +76,14 @@ models: at_least: 0.5 - dbt_utils.not_empty_string - name: details__modalite__condition_admision - tests: + data_tests: - not_null: config: severity: warn - dbt_utils.not_constant - dbt_utils.not_empty_string - name: details__modalite__modalites_inscription - tests: + data_tests: - not_null: config: severity: warn diff --git a/pipeline/dbt/models/staging/sources/odspep/_odspep__models.yml b/pipeline/dbt/models/staging/sources/odspep/_odspep__models.yml index de2bfae0..91aaefb5 100644 --- a/pipeline/dbt/models/staging/sources/odspep/_odspep__models.yml +++ b/pipeline/dbt/models/staging/sources/odspep/_odspep__models.yml @@ -5,55 +5,55 @@ models: - name: stg_odspep__adresses columns: - name: id_adr - tests: + data_tests: - not_null - unique - name: stg_odspep__contacts columns: - name: id_ctc - tests: + data_tests: - not_null - unique - name: stg_odspep__horaires columns: - name: id_hor - tests: + data_tests: - not_null - unique - name: stg_odspep__regions columns: - name: id_res comment: id_res are not unique in this table - tests: + data_tests: - not_null - name: stg_odspep__departements columns: - name: id_res comment: id_res are not unique in this table - tests: + data_tests: - not_null - name: stg_odspep__communes columns: - name: id_res comment: id_res are not unique in this table - tests: + data_tests: - not_null - name: stg_odspep__bassins columns: - name: id_res comment: id_res are not unique in this table - tests: + data_tests: - not_null - name: stg_odspep__dir_territoriale_ofii columns: - name: id_res comment: id_res are not unique in this table - tests: + data_tests: - not_null - name: stg_odspep__res_partenariales columns: - name: id_res - tests: + data_tests: - not_null - unique diff --git a/pipeline/dbt/models/staging/sources/reseau_alpha/_reseau_alpha__models.yml b/pipeline/dbt/models/staging/sources/reseau_alpha/_reseau_alpha__models.yml index 784bb7c6..e2663ffd 100644 --- a/pipeline/dbt/models/staging/sources/reseau_alpha/_reseau_alpha__models.yml +++ b/pipeline/dbt/models/staging/sources/reseau_alpha/_reseau_alpha__models.yml @@ -4,17 +4,17 @@ models: - name: stg_reseau_alpha__formations columns: - name: structure_id - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: id - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: stg_reseau_alpha__structures columns: - name: id - tests: + data_tests: - not_null - dbt_utils.not_empty_string diff --git a/pipeline/dbt/models/staging/sources/soliguide/_soliguide__models.yml b/pipeline/dbt/models/staging/sources/soliguide/_soliguide__models.yml index 88af3284..142f2650 100644 --- a/pipeline/dbt/models/staging/sources/soliguide/_soliguide__models.yml +++ b/pipeline/dbt/models/staging/sources/soliguide/_soliguide__models.yml @@ -4,53 +4,53 @@ models: - name: stg_soliguide__categories columns: - name: code - tests: + data_tests: - not_null - unique - name: label - tests: + data_tests: - not_null - name: stg_soliguide__lieux columns: - name: lieu_id - tests: + data_tests: - not_null - unique - name: position__country - tests: + data_tests: - not_null - dbt_utils.not_empty_string - accepted_values: values: ['fr'] - name: position__department - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: position__coordinates__x - tests: + data_tests: - not_null - name: position__coordinates__y - tests: + data_tests: - not_null - name: position__additional_information - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: position__city - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: position__address - tests: + data_tests: - dbt_utils.not_constant - dbt_utils.not_empty_string - name: position__postal_code - tests: + data_tests: - not_null - dbt_utils.not_empty_string - name: position__city_code - tests: + data_tests: - not_null - dbt_utils.not_empty_string - relationships: @@ -62,17 +62,17 @@ models: - name: stg_soliguide__services columns: - name: id - tests: + data_tests: - not_null - unique - name: lieu_id - tests: + data_tests: - not_null - relationships: to: ref('stg_soliguide__lieux') field: lieu_id - name: category - tests: + data_tests: - not_null - dbt_utils.not_constant - relationships: @@ -82,7 +82,7 @@ models: - name: stg_soliguide__phones columns: - name: lieu_id - tests: + data_tests: - not_null - relationships: to: ref('stg_soliguide__lieux')