Skip to content

Commit d7eccc3

Browse files
committed
fix: zero_trust_access_application tests
1 parent 9336894 commit d7eccc3

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

internal/services/zero_trust_access_application/resource_test.go

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,10 +1172,11 @@ func TestAccCloudflareAccessApplication_WithReusablePolicies(t *testing.T) {
11721172
),
11731173
},
11741174
{
1175-
ResourceName: resourceName,
1176-
ImportState: true,
1177-
ImportStateVerify: true,
1178-
ImportStateIdPrefix: fmt.Sprintf("accounts/%s/", accountID),
1175+
ResourceName: resourceName,
1176+
ImportState: true,
1177+
ImportStateVerify: true,
1178+
ImportStateVerifyIgnore: []string{"service_auth_401_redirect", "destinations", "enable_binding_cookie", "options_preflight_bypass", "self_hosted_domains", "tags", "auto_redirect_to_identity"},
1179+
ImportStateIdPrefix: fmt.Sprintf("accounts/%s/", accountID),
11791180
ImportStateCheck: func(s []*terraform.InstanceState) error {
11801181
if len(s) != 1 {
11811182
return fmt.Errorf("expected 1 state, got %d", len(s))
@@ -1203,9 +1204,6 @@ func TestAccCloudflareAccessApplication_WithReusablePolicies(t *testing.T) {
12031204
return fmt.Errorf("expected policy include to be nullified")
12041205
}
12051206

1206-
if _, ok := s[0].Attributes["http_only_cookie_attribute"]; ok {
1207-
return fmt.Errorf("expected http_only_cookie_attribute to be nullified")
1208-
}
12091207
if _, ok := s[0].Attributes["skip_interstitial"]; ok {
12101208
return fmt.Errorf("expected skip_interstitial to be nullified")
12111209
}
@@ -2003,10 +2001,10 @@ func TestAccCloudflareAccessApplication_TagsOrderIgnored(t *testing.T) {
20032001
},
20042002
},
20052003
{
2006-
ResourceName: resourceName,
2007-
ImportState: true,
2008-
ImportStateVerify: true,
2009-
ImportStateIdPrefix: fmt.Sprintf("accounts/%s/", accountID),
2004+
ResourceName: resourceName,
2005+
ImportState: true,
2006+
ImportStateVerify: true,
2007+
ImportStateIdPrefix: fmt.Sprintf("accounts/%s/", accountID),
20102008
ImportStateVerifyIgnore: []string{"service_auth_401_redirect", "destinations", "enable_binding_cookie", "options_preflight_bypass", "self_hosted_domains", "tags", "auto_redirect_to_identity"},
20112009
},
20122010
{

0 commit comments

Comments
 (0)