File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -2146,6 +2146,22 @@ func (s *MethodTestSuite) TestWorkspace() {
2146
2146
// no asserts here because SQLFilter
2147
2147
check .Args ([]uuid.UUID {}, emptyPreparedAuthorized {}).Asserts ()
2148
2148
}))
2149
+ s .Run ("UpdateWorkspaceACLByID" , s .Subtest (func (db database.Store , check * expects ) {
2150
+ u := dbgen .User (s .T (), db , database.User {})
2151
+ o := dbgen .Organization (s .T (), db , database.Organization {})
2152
+ tpl := dbgen .Template (s .T (), db , database.Template {
2153
+ OrganizationID : o .ID ,
2154
+ CreatedBy : u .ID ,
2155
+ })
2156
+ ws := dbgen .Workspace (s .T (), db , database.WorkspaceTable {
2157
+ OwnerID : u .ID ,
2158
+ OrganizationID : o .ID ,
2159
+ TemplateID : tpl .ID ,
2160
+ })
2161
+ check .Args (database.UpdateWorkspaceACLByIDParams {
2162
+ ID : ws .ID ,
2163
+ }).Asserts (ws , policy .ActionCreate )
2164
+ }))
2149
2165
s .Run ("GetLatestWorkspaceBuildByWorkspaceID" , s .Subtest (func (db database.Store , check * expects ) {
2150
2166
u := dbgen .User (s .T (), db , database.User {})
2151
2167
o := dbgen .Organization (s .T (), db , database.Organization {})
You can’t perform that action at this time.
0 commit comments