change "tests:" to "data_tests:"
This commit is contained in:
parent
db1edf7a1c
commit
c3c628aec4
29 changed files with 1565 additions and 1565 deletions
|
|
@ -12,21 +12,21 @@ models:
|
|||
- name: id_verification
|
||||
data_type: character varying
|
||||
description: "Unique id for the specific transaction."
|
||||
tests:
|
||||
data_tests:
|
||||
- unique
|
||||
- not_null
|
||||
|
||||
- name: id_booking
|
||||
data_type: text
|
||||
description: ""
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null:
|
||||
where: created_at_utc > '2024-04-01T00:00:00Z' and verification_status != 'InsufficientInformation'
|
||||
|
||||
- name: id_user_partner
|
||||
data_type: text
|
||||
description: The unique ID of the partner calling the API.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: id_accommodation
|
||||
|
|
@ -38,7 +38,7 @@ models:
|
|||
description: |
|
||||
Indicates whether the verification is for V1 (Athena) or V2
|
||||
(e-deposit).
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
|
|
@ -51,7 +51,7 @@ models:
|
|||
of the user. Note that the Athena/e-deposit user also has a configured
|
||||
nightly fee. It's unclear at this point which one has priority for
|
||||
billing.
|
||||
tests:
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
max_value: 100
|
||||
|
|
@ -61,7 +61,7 @@ models:
|
|||
data_type: text
|
||||
description: |
|
||||
This field shows the outcome of the Verification itself.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
|
|
@ -85,7 +85,7 @@ models:
|
|||
description: |
|
||||
Null if the phone number shows no issues, otherwise it details the
|
||||
problems attached to the given phone number.
|
||||
tests:
|
||||
data_tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
- "Phone number not reachable"
|
||||
|
|
@ -95,7 +95,7 @@ models:
|
|||
- name: watch_list
|
||||
data_type: text
|
||||
description: ""
|
||||
tests:
|
||||
data_tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
- "Match"
|
||||
|
|
@ -119,7 +119,7 @@ models:
|
|||
Indicates if the booking has been cancelled or not. At the source,
|
||||
null and false values have the same meaning, so here we turn nulls
|
||||
into false to keep thing simple.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
|
|
@ -129,7 +129,7 @@ models:
|
|||
- name: cancelled_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description: If the booking was cancelled, when did we learn about it.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null:
|
||||
where: is_cancelled = true
|
||||
|
||||
|
|
@ -207,7 +207,7 @@ models:
|
|||
description: |
|
||||
Timestamp of the last time the record was modified before screening
|
||||
happened. Only relevant for V1 records.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null:
|
||||
where: version = 'V1'
|
||||
|
||||
|
|
@ -216,7 +216,7 @@ models:
|
|||
description: |
|
||||
Date of the last time the record was modified before screening
|
||||
happened. Only relevant for V1 records.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null:
|
||||
where: version = 'V1'
|
||||
|
||||
|
|
@ -225,7 +225,7 @@ models:
|
|||
description: |
|
||||
Timestamp of the last edit of the record, as set by the
|
||||
Athena/e-deposit application.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: updated_date_utc
|
||||
|
|
@ -233,7 +233,7 @@ models:
|
|||
description: |
|
||||
Date of the last edit of the record, as set by the
|
||||
Athena/e-deposit application.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: athena_creation_at_utc
|
||||
|
|
@ -252,18 +252,18 @@ models:
|
|||
data_type: timestamp without time zone
|
||||
description: |
|
||||
The internal application timestamp of when this record was created.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: created_date_utc
|
||||
data_type: timestamp without time zone
|
||||
description: |
|
||||
The internal application date of when this record was created.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: cosmos_db_timestamp_utc
|
||||
data_type: timestamp with time zone
|
||||
description: The internal Cosmos DB timestamp of the last record update.
|
||||
tests:
|
||||
data_tests:
|
||||
- not_null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue