From 15d5ff621e06d819bb1ccfcda389df83d78fb6b7 Mon Sep 17 00:00:00 2001 From: Artur Sawicki Date: Wed, 6 Nov 2024 13:34:36 +0100 Subject: [PATCH] Add test description References: #3005 --- .../user_password_policy_attachment_acceptance_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/resources/user_password_policy_attachment_acceptance_test.go b/pkg/resources/user_password_policy_attachment_acceptance_test.go index ef206ed955..94bd2ebfca 100644 --- a/pkg/resources/user_password_policy_attachment_acceptance_test.go +++ b/pkg/resources/user_password_policy_attachment_acceptance_test.go @@ -52,6 +52,12 @@ func TestAcc_UserPasswordPolicyAttachment(t *testing.T) { }) } +// Adding this test to check if it will fail sometimes. It should, based on: +// - https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/3005 +// - https://github.com/Snowflake-Labs/terraform-provider-snowflake/pull/2627 +// but haven't (at least during manual runs). +// The behavior was fixed in https://github.com/Snowflake-Labs/terraform-provider-snowflake/pull/2627 +// so the problem should not occur in the newest provider versions. func TestAcc_UserPasswordPolicyAttachment_gh3005(t *testing.T) { userId := acc.TestClient().Ids.RandomAccountObjectIdentifier() userName := userId.Name()