Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDPCP-14163 - add more strict order for e2e test execution per resource to increase the effectiveness of clean-up #225

Merged
merged 1 commit into from
Mar 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading