Skip to content

Commit a2f3d65

Browse files
committed
Update test values; pause housing GX job
1 parent 01fab12 commit a2f3d65

File tree

2 files changed

+11
-32
lines changed

2 files changed

+11
-32
lines changed

scripts/jobs/housing/housing_nec_migration_properties_data_load_gx_suite.py

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,6 @@ class PropertiesExpectPropRefColumnValuesToNotBeNull(gxe.ExpectColumnValuesToNot
1717
description: str = "Expect LPRO_PROPREF (prop ref) values to not be Null"
1818

1919

20-
class PropertiesExpectPropTypeCodeToBeInSet(gxe.ExpectColumnValuesToBeInSet):
21-
column: str = "LPRO_HOU_PTV_CODE"
22-
value_set: list = [
23-
"BUN",
24-
"CMC",
25-
"CMF",
26-
"COM",
27-
"CYC",
28-
"DUP",
29-
"FLT",
30-
"GAR",
31-
"HOU",
32-
"MAI",
33-
"PRA",
34-
"PSP",
35-
"ROM",
36-
"STD",
37-
"TRV",
38-
]
39-
description: str = "Expect property type codes to contain one of the set"
40-
41-
4220
class PropertiesExpectOccStatusCodeToBeInSet(gxe.ExpectColumnValuesToBeInSet):
4321
column: str = "LPRO_SCO_CODE"
4422
value_set: list = ["OCC", "VOI", "CLO"]
@@ -106,7 +84,9 @@ class PropertiesExpectPropTypeValuesToBeInSet(gxe.ExpectColumnValuesToBeInSet):
10684
description: str = "Expect property type values to be one of the set"
10785

10886

109-
class PropertiesExpectPropColumnsToMatchOrderedList(gxe.ExpectTableColumnsToMatchOrderedList):
87+
class PropertiesExpectPropColumnsToMatchOrderedList(
88+
gxe.ExpectTableColumnsToMatchOrderedList
89+
):
11090
column_list = [
11191
"LPRO_PROPREF",
11292
"LPRO_HOU_FRB",
@@ -155,7 +135,6 @@ class PropertiesExpectPropColumnsToMatchOrderedList(gxe.ExpectTableColumnsToMatc
155135
suite = gx.ExpectationSuite(name="properties_data_load_suite")
156136

157137
suite.add_expectation(PropertiesExpectPropRefColumnValuesToBeUnique())
158-
suite.add_expectation(PropertiesExpectPropTypeCodeToBeInSet())
159138
suite.add_expectation(PropertiesExpectOccStatusCodeToBeInSet())
160139
suite.add_expectation(PropertiesExpectOrgIndicatorToBeInSet())
161140
suite.add_expectation(PropertiesExpectOwnTypeToBeInSet())

terraform/etl/54-aws-glue-housing-apply-gx-dq-tests.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ module "housing_apply_gx_dq_tests" {
1313
helper_module_key = data.aws_s3_object.helpers.key
1414
pydeequ_zip_key = data.aws_s3_object.pydeequ.key
1515
spark_ui_output_storage_id = module.spark_ui_output_storage_data_source.bucket_id
16-
trigger_enabled = local.is_production_environment
16+
trigger_enabled = false
1717
number_of_workers_for_glue_job = 2
1818
schedule = "cron(0 10 ? * MON-FRI *)"
19-
job_parameters = {
19+
job_parameters = {
2020
"--job-bookmark-option" = "job-bookmark-enable"
2121
"--enable-glue-datacatalog" = "true"
2222
"--enable-continuous-cloudwatch-log" = "true"
@@ -51,7 +51,7 @@ module "housing_gx_dq_metadata" {
5151
spark_ui_output_storage_id = module.spark_ui_output_storage_data_source.bucket_id
5252
trigger_enabled = local.is_production_environment
5353
number_of_workers_for_glue_job = 2
54-
job_parameters = {
54+
job_parameters = {
5555
"--job-bookmark-option" = "job-bookmark-enable"
5656
"--enable-glue-datacatalog" = "true"
5757
"--enable-continuous-cloudwatch-log" = "true"
@@ -68,11 +68,11 @@ module "housing_gx_dq_metadata" {
6868
}
6969

7070
resource "aws_glue_trigger" "housing_gx_dq_metadata" {
71-
name = "${local.short_identifier_prefix}Housing GX Data Quality Metadata Trigger"
72-
type = "CONDITIONAL"
73-
tags = module.department_housing_data_source.tags
74-
enabled = local.is_production_environment
75-
count = local.is_live_environment ? 1 : 0
71+
name = "${local.short_identifier_prefix}Housing GX Data Quality Metadata Trigger"
72+
type = "CONDITIONAL"
73+
tags = module.department_housing_data_source.tags
74+
enabled = local.is_production_environment
75+
count = local.is_live_environment ? 1 : 0
7676

7777
actions {
7878
job_name = "${local.short_identifier_prefix}Housing GX Data Quality Metadata"

0 commit comments

Comments
 (0)