Skip to content

Commit

Permalink
CDPCP-14163 - add more strict order for e2e test execution per resour…
Browse files Browse the repository at this point in the history
…ce to increase the effectiveness of clean-up
  • Loading branch information
gregito committed Mar 3, 2025
1 parent 99ed2db commit 3c90ef5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/dw/resource_dw_aws_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ func testAccAwsDataLakeConfig(params *awsDataLakeTestParameters) string {
data_access_role = %[1]q
ranger_audit_role = %[2]q
set_empty_mappings = true
depends_on = [cdp_environments_aws_environment.test_env_dw_aws]
}
resource "cdp_datalake_aws_datalake" "test_dl_dw_aws" {
Expand All @@ -267,7 +268,6 @@ func testAccAwsDataLakeConfig(params *awsDataLakeTestParameters) string {
tags = {
"made-with": "CDP Terraform Provider"
}
depends_on = [ cdp_environments_id_broker_mappings.test_idbm_dw_aws ]
}
`,
Expand Down Expand Up @@ -296,6 +296,7 @@ func testAccDwCatalog() string {
return `
resource "cdp_dw_database_catalog" "test_catalog" {
cluster_id = cdp_dw_aws_cluster.test_data_warehouse_aws.cluster_id
depends_on = [cdp_dw_aws_cluster.test_data_warehouse_aws]
}
`
}
Expand Down Expand Up @@ -323,6 +324,7 @@ func testAccHiveVirtualWarehouse(name string) string {
"made-with": "CDP-Terraform-Provider"
}
}
depends_on = [cdp_dw_database_catalog.test_catalog]
}
`, name)
}
Expand Down

0 comments on commit 3c90ef5

Please sign in to comment.