From d1adfaa48209990cf8c2156439d12284436c9ae3 Mon Sep 17 00:00:00 2001 From: batyak Date: Tue, 15 Oct 2024 13:20:41 +0300 Subject: [PATCH] fix test --- dome9/resource_dome9_awp_aws_onboarding_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dome9/resource_dome9_awp_aws_onboarding_test.go b/dome9/resource_dome9_awp_aws_onboarding_test.go index 1260efd4..ac4e64ef 100644 --- a/dome9/resource_dome9_awp_aws_onboarding_test.go +++ b/dome9/resource_dome9_awp_aws_onboarding_test.go @@ -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), @@ -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), @@ -159,6 +161,7 @@ resource "%s" "%s" { in_account_scanner_vpc = "%s" custom_tags = %s } + awp_version = "%s" } `, resourcetype.AwpAwsOnboarding,