@@ -20,17 +20,27 @@ func TestAccSecurityAccountResource(t *testing.T) {
20
20
Check : resource .ComposeTestCheckFunc (
21
21
resource .TestCheckResourceAttr ("netapp-ontap_security_account.security_account" , "name" , "tf_acc_test" ),
22
22
resource .TestCheckResourceAttr ("netapp-ontap_security_account.security_account" , "password" , "password123" ),
23
+ resource .TestCheckResourceAttr ("netapp-ontap_security_account.security_account" , "locked" , "false" ),
23
24
),
24
25
},
25
26
// Test updating a resource with comment and locked
26
27
{
27
- Config : testAccSecurityAccountResourceConfig ("tf_acc_test" , "update " , true ),
28
+ Config : testAccSecurityAccountResourceConfig ("tf_acc_test" , "locked " , true ),
28
29
Check : resource .ComposeTestCheckFunc (
29
30
resource .TestCheckResourceAttr ("netapp-ontap_security_account.security_account" , "name" , "tf_acc_test" ),
30
- resource .TestCheckResourceAttr ("netapp-ontap_security_account.security_account" , "comment" , "update " ),
31
+ resource .TestCheckResourceAttr ("netapp-ontap_security_account.security_account" , "comment" , "locked " ),
31
32
resource .TestCheckResourceAttr ("netapp-ontap_security_account.security_account" , "locked" , "true" ),
32
33
),
33
34
},
35
+ // Test updating a resource with comment and unlocked
36
+ {
37
+ Config : testAccSecurityAccountResourceConfig ("tf_acc_test" , "unlocked" , false ),
38
+ Check : resource .ComposeTestCheckFunc (
39
+ resource .TestCheckResourceAttr ("netapp-ontap_security_account.security_account" , "name" , "tf_acc_test" ),
40
+ resource .TestCheckResourceAttr ("netapp-ontap_security_account.security_account" , "comment" , "unlocked" ),
41
+ resource .TestCheckResourceAttr ("netapp-ontap_security_account.security_account" , "locked" , "false" ),
42
+ ),
43
+ },
34
44
// Test updating a resource with application and secondAuthenticationMethod
35
45
{
36
46
Config : testAccSecurityAccountResourceConfigUpdateAndCheckIdempotency ("tf_acc_test" ),
0 commit comments