Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
batyakopelowitz committed Oct 15, 2024
1 parent eb04ee7 commit d1adfaa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dome9/resource_dome9_awp_aws_onboarding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ func TestAccResourceAWPAWSOnboardingBasic(t *testing.T) {
resource.TestCheckResourceAttr(resourceTypeAndName, "cloudguard_account_id", variable.OnboardedAwsCloudGuardAccountID),
resource.TestCheckResourceAttr(resourceTypeAndName, "cross_account_role_name", variable.AwpAwsCrossAccountRoleName),
resource.TestCheckResourceAttr(resourceTypeAndName, "cross_account_role_external_id", CrossAccountRoleExternalId),
resource.TestCheckResourceAttr(resourceTypeAndName, "scan_mode", variable.ScanMode),
resource.TestCheckResourceAttr(resourceTypeAndName, "scan_mode", variable.ScanMode), resource.TestCheckResourceAttr(resourceTypeAndName, "scan_mode", variable.ScanMode),
resource.TestCheckResourceAttr(resourceTypeAndName, "awp_version", "10"),
resource.TestCheckResourceAttr(resourceTypeAndName, "agentless_account_settings.0.disabled_regions.0", disabledRegion1),
resource.TestCheckResourceAttr(resourceTypeAndName, "agentless_account_settings.0.disabled_regions.1", disabledRegion2),
resource.TestCheckResourceAttr(resourceTypeAndName, "agentless_account_settings.0.scan_machine_interval_in_hours", variable.ScanMachineIntervalInHours),
Expand All @@ -65,6 +66,7 @@ func TestAccResourceAWPAWSOnboardingBasic(t *testing.T) {
resource.TestCheckResourceAttr(resourceTypeAndName, "cross_account_role_name", variable.AwpAwsCrossAccountRoleName),
resource.TestCheckResourceAttr(resourceTypeAndName, "cross_account_role_external_id", CrossAccountRoleExternalId),
resource.TestCheckResourceAttr(resourceTypeAndName, "scan_mode", variable.ScanMode),
resource.TestCheckResourceAttr(resourceTypeAndName, "awp_version", "10"),
resource.TestCheckResourceAttr(resourceTypeAndName, "agentless_account_settings.0.disabled_regions.0", disabledRegion1),
resource.TestCheckResourceAttr(resourceTypeAndName, "agentless_account_settings.0.disabled_regions.1", disabledRegion2),
resource.TestCheckResourceAttr(resourceTypeAndName, "agentless_account_settings.0.disabled_regions.2", disabledRegionUpdate3),
Expand Down Expand Up @@ -159,6 +161,7 @@ resource "%s" "%s" {
in_account_scanner_vpc = "%s"
custom_tags = %s
}
awp_version = "%s"
}
`,
resourcetype.AwpAwsOnboarding,
Expand Down

0 comments on commit d1adfaa

Please sign in to comment.