@@ -682,12 +682,10 @@ var _ = Describe("ReconcilePostgres", func() {
682
682
// Expected method calls
683
683
// customers schema
684
684
pg .EXPECT ().CreateSchema (name , name + "-group" , "customers" , gomock .Any ()).Return (nil ).Times (1 )
685
- pg .EXPECT ().SetSchemaPrivileges (name , name + "-group" , gomock .Any (), "customers" , gomock .Any (), gomock .Any ()).Return (nil ).Times (2 )
686
- pg .EXPECT ().SetSchemaPrivilegesCreate (name , name + "-group" , name + "-writer" , "customers" , gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
685
+ pg .EXPECT ().SetSchemaPrivileges (name , name + "-group" , gomock .Any (), "customers" , gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil ).Times (2 )
687
686
// stores schema
688
687
pg .EXPECT ().CreateSchema (name , name + "-group" , "stores" , gomock .Any ()).Return (nil ).Times (1 )
689
- pg .EXPECT ().SetSchemaPrivileges (name , name + "-group" , gomock .Any (), "stores" , gomock .Any (), gomock .Any ()).Return (nil ).Times (2 )
690
- pg .EXPECT ().SetSchemaPrivilegesCreate (name , name + "-group" , name + "-writer" , "stores" , gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
688
+ pg .EXPECT ().SetSchemaPrivileges (name , name + "-group" , gomock .Any (), "stores" , gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil ).Times (2 )
691
689
})
692
690
693
691
It ("should update status" , func () {
@@ -709,12 +707,11 @@ var _ = Describe("ReconcilePostgres", func() {
709
707
// Expected method calls
710
708
// customers schema errors
711
709
pg .EXPECT ().CreateSchema (name , name + "-group" , "customers" , gomock .Any ()).Return (fmt .Errorf ("Could not create schema" )).Times (1 )
712
- pg .EXPECT ().SetSchemaPrivileges (name , name + "-group" , gomock .Any (), "customers" , gomock .Any (), gomock .Any ()).Return (nil ).Times (0 )
713
- pg .EXPECT ().SetSchemaPrivilegesCreate (name , name + "-group" , name + "-writer" , "customers" , gomock .Any (), gomock .Any ()).Return (nil ).Times (0 )
710
+ pg .EXPECT ().SetSchemaPrivileges (name , name + "-group" , gomock .Any (), "customers" , gomock .Any (), gomock .Any () ,gomock .Any ()).Return (nil ).Times (0 )
714
711
// stores schema
715
712
pg .EXPECT ().CreateSchema (name , name + "-group" , "stores" , gomock .Any ()).Return (nil ).Times (1 )
716
- pg .EXPECT ().SetSchemaPrivileges (name , name + "-group" , gomock .Any (), "stores" , gomock .Any (), gomock .Any ()).Return (nil ).Times (2 )
717
- pg .EXPECT ().SetSchemaPrivilegesCreate (name , name + "-group" , name + "-writer" , "stores" , gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
713
+ pg .EXPECT ().SetSchemaPrivileges (name , name + "-group" , gomock .Any (), "stores" , gomock .Any (), false , gomock .Any ()).Return (nil ).Times (1 )
714
+ pg .EXPECT ().SetSchemaPrivileges (name , name + "-group" , gomock . Any () , "stores" , gomock .Any (), true , gomock .Any ()).Return (nil ).Times (1 )
718
715
})
719
716
720
717
It ("should update status" , func () {
@@ -755,8 +752,7 @@ var _ = Describe("ReconcilePostgres", func() {
755
752
// Expected method calls
756
753
// customers schema
757
754
pg .EXPECT ().CreateSchema (name , name + "-group" , "customers" , gomock .Any ()).Return (nil ).Times (1 )
758
- pg .EXPECT ().SetSchemaPrivileges (name , name + "-group" , gomock .Any (), "customers" , gomock .Any (), gomock .Any ()).Return (nil ).Times (2 )
759
- pg .EXPECT ().SetSchemaPrivilegesCreate (name , name + "-group" , name + "-writer" , "customers" , gomock .Any (), gomock .Any ()).Return (nil ).Times (1 )
755
+ pg .EXPECT ().SetSchemaPrivileges (name , name + "-group" , gomock .Any (), "customers" , gomock .Any (), gomock .Any (), gomock .Any ()).Return (nil ).Times (2 )
760
756
// stores schema already exists
761
757
pg .EXPECT ().CreateSchema (name , name + "-group" , "stores" , gomock .Any ()).Times (0 )
762
758
// Call reconcile
0 commit comments