Skip to content

Commit

Permalink
CDPCP-11067 Fix acc test errors (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
daszabo authored Jun 5, 2024
1 parent 2662f65 commit 4853447
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/datalake/resource_aws_datalake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func testAccCheckAwsDataLakeDestroy(s *terraform.State) error {
})
_, err := cdpClient.Datalake.Operations.DescribeDatalake(params)
if err != nil {
if dlErr, ok := err.(*operations.DescribeDatabaseServerDefault); ok {
if dlErr, ok := err.(*operations.DescribeDatalakeDefault); ok {
if cdp.IsDatalakeError(dlErr.GetPayload(), "NOT_FOUND", "") {
return nil
}
Expand Down
4 changes: 2 additions & 2 deletions resources/environments/resource_aws_credential_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func testAccAwsCredentialConfig(rName string, roleArn string) string {
return fmt.Sprintf(`
resource "cdp_environments_aws_credential" "test" {
credential_name = %[1]q
role_arn = %[2]s
role_arn = %[2]q
}
`, rName, roleArn)
}
Expand All @@ -119,7 +119,7 @@ func testAccAwsCredentialConfigWithDescription(rName string, roleArn string, des
return fmt.Sprintf(`
resource "cdp_environments_aws_credential" "test" {
credential_name = %[1]q
role_arn = %[2]s
role_arn = %[2]q
description = %[3]q
}
`, rName, roleArn, description)
Expand Down
3 changes: 2 additions & 1 deletion resources/iam/resource_machine_user_group_assignment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ func TestAccIamMachineUserGroupAssignment_basic(t *testing.T) {
testAccIamMachineUserConfig(rName),
testAccIamMachineUserGroupAssignmentConfig(rName, grName)),
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr(resourceName, "name", rName),
resource.TestCheckResourceAttr(resourceName, "machine_user", rName),
resource.TestCheckResourceAttr(resourceName, "group", grName),
resource.TestCheckResourceAttr(resourceName, "id", rName+"_"+grName),
testAccCheckIamMachineUserGroupAssignmentExists(rName, grName, &credential),
),
Expand Down

0 comments on commit 4853447

Please sign in to comment.