@@ -118,43 +118,43 @@ func (s *OrgIntegrationTestSuite) TestUpdate() {
118118
119119 s .Run ("org non existent" , func () {
120120 // org not found
121- _ , err := s .Organization .Update (ctx , s .user .ID , uuid .NewString (), nil , nil , nil )
121+ _ , err := s .Organization .Update (ctx , s .user .ID , uuid .NewString (), nil , nil , nil , nil )
122122 s .Error (err )
123123 s .True (biz .IsNotFound (err ))
124124 })
125125
126126 s .Run ("org not accessible to user" , func () {
127127 org2 , err := s .Organization .CreateWithRandomName (ctx )
128128 require .NoError (s .T (), err )
129- _ , err = s .Organization .Update (ctx , s .user .ID , org2 .Name , nil , nil , nil )
129+ _ , err = s .Organization .Update (ctx , s .user .ID , org2 .Name , nil , nil , nil , nil )
130130 s .Error (err )
131131 s .True (biz .IsNotFound (err ))
132132 })
133133
134134 s .Run ("valid block on policy violation update" , func () {
135- got , err := s .Organization .Update (ctx , s .user .ID , s .org .Name , toPtrBool (true ), nil , nil )
135+ got , err := s .Organization .Update (ctx , s .user .ID , s .org .Name , toPtrBool (true ), nil , nil , nil )
136136 s .NoError (err )
137137 s .True (got .BlockOnPolicyViolation )
138138 })
139139
140140 s .Run ("valid policy allowed hostnames update" , func () {
141- got , err := s .Organization .Update (ctx , s .user .ID , s .org .Name , nil , []string {"foo.com" , "bar.com" }, nil )
141+ got , err := s .Organization .Update (ctx , s .user .ID , s .org .Name , nil , []string {"foo.com" , "bar.com" }, nil , nil )
142142 s .NoError (err )
143143 s .Equal ([]string {"foo.com" , "bar.com" }, got .PoliciesAllowedHostnames )
144144 })
145145
146146 s .Run ("clear policy allowed hostnames" , func () {
147- got , err := s .Organization .Update (ctx , s .user .ID , s .org .Name , nil , []string {}, nil )
147+ got , err := s .Organization .Update (ctx , s .user .ID , s .org .Name , nil , []string {}, nil , nil )
148148 s .NoError (err )
149149 s .Equal ([]string {}, got .PoliciesAllowedHostnames )
150150 })
151151
152152 s .Run ("but not passing a value doesn't clear the hostnames value" , func () {
153- got , err := s .Organization .Update (ctx , s .user .ID , s .org .Name , nil , []string {"foo.com" , "bar.com" }, nil )
153+ got , err := s .Organization .Update (ctx , s .user .ID , s .org .Name , nil , []string {"foo.com" , "bar.com" }, nil , nil )
154154 s .NoError (err )
155155 s .Equal ([]string {"foo.com" , "bar.com" }, got .PoliciesAllowedHostnames )
156156
157- got , err = s .Organization .Update (ctx , s .user .ID , s .org .Name , nil , nil , nil )
157+ got , err = s .Organization .Update (ctx , s .user .ID , s .org .Name , nil , nil , nil , nil )
158158 s .NoError (err )
159159 s .Equal ([]string {"foo.com" , "bar.com" }, got .PoliciesAllowedHostnames )
160160 })
0 commit comments