@@ -69,11 +69,11 @@ func TestAccPostgresqlSchema_AddPolicy(t *testing.T) {
6969 resource .TestCheckResourceAttr ("postgresql_role.policy_move" , "name" , "policy_move" ),
7070
7171 resource .TestCheckResourceAttr ("postgresql_role.all_with_grantstay" , "name" , "all_with_grantstay" ),
72- // resource.TestCheckResourceAttr("postgresql_role.all_with_grantdrop", "name", "all_with_grantdrop"),
72+ resource .TestCheckResourceAttr ("postgresql_role.all_with_grantdrop" , "name" , "all_with_grantdrop" ),
7373
7474 resource .TestCheckResourceAttr ("postgresql_schema.test4" , "name" , "test4" ),
7575 resource .TestCheckResourceAttr ("postgresql_schema.test4" , "owner" , "all_without_grant_stay" ),
76- resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.#" , "6 " ),
76+ resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.#" , "7 " ),
7777 resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.108605972.create" , "false" ),
7878 resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.108605972.create_with_grant" , "true" ),
7979 resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.108605972.role" , "all_with_grantstay" ),
@@ -99,11 +99,11 @@ func TestAccPostgresqlSchema_AddPolicy(t *testing.T) {
9999 resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.3959936977.role" , "policy_compose" ),
100100 resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.3959936977.usage" , "false" ),
101101 resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.3959936977.usage_with_grant" , "true" ),
102- // resource.TestCheckResourceAttr("postgresql_schema.test4", "policy.4178211897.create", "false"),
103- // resource.TestCheckResourceAttr("postgresql_schema.test4", "policy.4178211897.create_with_grant", "true"),
104- // resource.TestCheckResourceAttr("postgresql_schema.test4", "policy.4178211897.role", "all_with_grantdrop"),
105- // resource.TestCheckResourceAttr("postgresql_schema.test4", "policy.4178211897.usage", "false"),
106- // resource.TestCheckResourceAttr("postgresql_schema.test4", "policy.4178211897.usage_with_grant", "true"),
102+ resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.4178211897.create" , "false" ),
103+ resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.4178211897.create_with_grant" , "true" ),
104+ resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.4178211897.role" , "all_with_grantdrop" ),
105+ resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.4178211897.usage" , "false" ),
106+ resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.4178211897.usage_with_grant" , "true" ),
107107 resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.815478369.create" , "true" ),
108108 resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.815478369.create_with_grant" , "false" ),
109109 resource .TestCheckResourceAttr ("postgresql_schema.test4" , "policy.815478369.role" , "policy_compose" ),
@@ -298,9 +298,9 @@ resource "postgresql_role" "all_with_grantstay" {
298298 name = "all_with_grantstay"
299299}
300300
301- // resource "postgresql_role" "all_with_grantdrop" {
302- // name = "all_with_grantdrop"
303- // }
301+ resource "postgresql_role" "all_with_grantdrop" {
302+ name = "all_with_grantdrop"
303+ }
304304
305305resource "postgresql_schema" "test4" {
306306 name = "test4"
@@ -336,11 +336,11 @@ resource "postgresql_schema" "test4" {
336336 role = "${postgresql_role.all_with_grantstay.name}"
337337 }
338338
339- // policy {
340- // create_with_grant = true
341- // usage_with_grant = true
342- // role = "${postgresql_role.all_with_grantdrop.name}"
343- // }
339+ policy {
340+ create_with_grant = true
341+ usage_with_grant = true
342+ role = "${postgresql_role.all_with_grantdrop.name}"
343+ }
344344
345345 policy {
346346 create_with_grant = true
0 commit comments