@@ -27,28 +27,28 @@ func Test_parseAcls(t *testing.T) {
2727
2828// Note that these must be sorted for this to work
2929var relationship1 = []map [string ]string {
30- {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table1" , "relationship_acl" : "c42=rwa/postgres" },
31- {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table1" , "relationship_acl" : "o42=xdwra/postgres" },
32- {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table2" , "relationship_acl" : "c42=rwa/postgres" },
30+ {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table1" , "relationship_acl" : "c42=rwa/postgres" },
31+ {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table1" , "relationship_acl" : "o42=xdwra/postgres" },
32+ {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table2" , "relationship_acl" : "c42=rwa/postgres" },
3333}
3434
3535// Note that these must be sorted for this to work
3636var relationship2 = []map [string ]string {
37- {"schema" : "public" , "relationship_name" : "table1" , "type" : "TABLE" , "relationship_acl" : "c42=r/postgres" },
37+ {"schema" : "public" , "relationship_name" : "table1" , "type" : "TABLE" , "relationship_acl" : "c42=r/postgres" },
3838 {"schema" : "public" , "relationship_name" : "table2" , "type" : "TABLE" , "relationship_acl" : "c42=rwad/postgres" },
3939}
4040
4141// Note that these must be sorted for this to work
4242var attribute1 = []map [string ]string {
43- {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table1" , "attribute_name" : "column1" , "attribute_acl" : "c42ro=r/postgres" },
44- {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table1" , "attribute_name" : "column1" , "attribute_acl" : "o42ro=rwa/postgres" },
45- {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table2" , "attribute_name" : "column2" , "attribute_acl" : "c42ro=r/postgres" },
43+ {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table1" , "attribute_name" : "column1" , "attribute_acl" : "c42ro=r/postgres" },
44+ {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table1" , "attribute_name" : "column1" , "attribute_acl" : "o42ro=rwa/postgres" },
45+ {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table2" , "attribute_name" : "column2" , "attribute_acl" : "c42ro=r/postgres" },
4646}
4747
4848// Note that these must be sorted for this to work
4949var attribute2 = []map [string ]string {
50- {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table1" , "attribute_name" : "column1" , "attribute_acl" : "c42ro=r/postgres" },
51- {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table1" , "attribute_name" : "column1" , "attribute_acl" : "o42ro=r/postgres" },
50+ {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table1" , "attribute_name" : "column1" , "attribute_acl" : "c42ro=r/postgres" },
51+ {"schema" : "public" , "type" : "TABLE" , "relationship_name" : "table1" , "attribute_name" : "column1" , "attribute_acl" : "o42ro=r/postgres" },
5252}
5353
5454func Test_diffGrants (t * testing.T ) {
0 commit comments