@@ -19,41 +19,25 @@ func TestAccPostgresqlRole_Basic(t *testing.T) {
1919 Config : testAccPostgresqlRoleConfig ,
2020 Check : resource .ComposeTestCheckFunc (
2121 testAccCheckPostgresqlRoleExists ("postgresql_role.myrole2" , "true" ),
22- resource .TestCheckResourceAttr (
23- "postgresql_role.myrole2" , "name" , "myrole2" ),
24- resource .TestCheckResourceAttr (
25- "postgresql_role.myrole2" , "login" , "true" ),
26- resource .TestCheckResourceAttr (
27- "postgresql_role.myrole2" , "skip_drop_role" , "false" ),
28- resource .TestCheckResourceAttr (
29- "postgresql_role.myrole2" , "skip_reassign_owned" , "false" ),
30-
31- resource .TestCheckResourceAttr (
32- "postgresql_role.role_with_defaults" , "name" , "testing_role_with_defaults" ),
33- resource .TestCheckResourceAttr (
34- "postgresql_role.role_with_defaults" , "superuser" , "false" ),
35- resource .TestCheckResourceAttr (
36- "postgresql_role.role_with_defaults" , "create_database" , "false" ),
37- resource .TestCheckResourceAttr (
38- "postgresql_role.role_with_defaults" , "create_role" , "false" ),
39- resource .TestCheckResourceAttr (
40- "postgresql_role.role_with_defaults" , "inherit" , "false" ),
41- resource .TestCheckResourceAttr (
42- "postgresql_role.role_with_defaults" , "replication" , "false" ),
43- resource .TestCheckResourceAttr (
44- "postgresql_role.role_with_defaults" , "bypass_row_level_security" , "false" ),
45- resource .TestCheckResourceAttr (
46- "postgresql_role.role_with_defaults" , "connection_limit" , "-1" ),
47- resource .TestCheckResourceAttr (
48- "postgresql_role.role_with_defaults" , "encrypted_password" , "true" ),
49- resource .TestCheckResourceAttr (
50- "postgresql_role.role_with_defaults" , "password" , "" ),
51- resource .TestCheckResourceAttr (
52- "postgresql_role.role_with_defaults" , "valid_until" , "infinity" ),
53- resource .TestCheckResourceAttr (
54- "postgresql_role.role_with_defaults" , "skip_drop_role" , "false" ),
55- resource .TestCheckResourceAttr (
56- "postgresql_role.role_with_defaults" , "skip_reassign_owned" , "false" ),
22+ resource .TestCheckResourceAttr ("postgresql_role.myrole2" , "name" , "myrole2" ),
23+ resource .TestCheckResourceAttr ("postgresql_role.myrole2" , "login" , "true" ),
24+ resource .TestCheckResourceAttr ("postgresql_role.myrole2" , "skip_drop_role" , "false" ),
25+ resource .TestCheckResourceAttr ("postgresql_role.myrole2" , "skip_reassign_owned" , "false" ),
26+ resource .TestCheckResourceAttr ("postgresql_role.myrole2" , "connection_limit" , "-1" ),
27+
28+ resource .TestCheckResourceAttr ("postgresql_role.role_with_defaults" , "name" , "testing_role_with_defaults" ),
29+ resource .TestCheckResourceAttr ("postgresql_role.role_with_defaults" , "superuser" , "false" ),
30+ resource .TestCheckResourceAttr ("postgresql_role.role_with_defaults" , "create_database" , "false" ),
31+ resource .TestCheckResourceAttr ("postgresql_role.role_with_defaults" , "create_role" , "false" ),
32+ resource .TestCheckResourceAttr ("postgresql_role.role_with_defaults" , "inherit" , "false" ),
33+ resource .TestCheckResourceAttr ("postgresql_role.role_with_defaults" , "replication" , "false" ),
34+ resource .TestCheckResourceAttr ("postgresql_role.role_with_defaults" , "bypass_row_level_security" , "false" ),
35+ resource .TestCheckResourceAttr ("postgresql_role.role_with_defaults" , "connection_limit" , "-1" ),
36+ resource .TestCheckResourceAttr ("postgresql_role.role_with_defaults" , "encrypted_password" , "true" ),
37+ resource .TestCheckResourceAttr ("postgresql_role.role_with_defaults" , "password" , "" ),
38+ resource .TestCheckResourceAttr ("postgresql_role.role_with_defaults" , "valid_until" , "infinity" ),
39+ resource .TestCheckResourceAttr ("postgresql_role.role_with_defaults" , "skip_drop_role" , "false" ),
40+ resource .TestCheckResourceAttr ("postgresql_role.role_with_defaults" , "skip_reassign_owned" , "false" ),
5741 ),
5842 },
5943 },
0 commit comments