@@ -3736,7 +3736,7 @@ func (s *MethodTestSuite) TestSystemFunctions() {
3736
3736
s .Run ("GetProvisionerJobsCreatedAfter" , s .Subtest (func (db database.Store , check * expects ) {
3737
3737
// TODO: add provisioner job resource type
3738
3738
_ = dbgen .ProvisionerJob (s .T (), db , nil , database.ProvisionerJob {CreatedAt : time .Now ().Add (- time .Hour )})
3739
- check .Args (time .Now ()).Asserts ( /*rbac.ResourceSystem, policy.ActionRead*/ )
3739
+ check .Args (time .Now ()).Asserts ( /*rbac.ResourceSystem, policy.ActionRead*/ )
3740
3740
}))
3741
3741
s .Run ("GetTemplateVersionsByIDs" , s .Subtest (func (db database.Store , check * expects ) {
3742
3742
dbtestutil .DisableForeignKeysAndTriggers (s .T (), db )
@@ -3915,7 +3915,7 @@ func (s *MethodTestSuite) TestSystemFunctions() {
3915
3915
a := dbgen .ProvisionerJob (s .T (), db , nil , database.ProvisionerJob {})
3916
3916
b := dbgen .ProvisionerJob (s .T (), db , nil , database.ProvisionerJob {})
3917
3917
check .Args ([]uuid.UUID {a .ID , b .ID }).
3918
- Asserts ( /*rbac.ResourceSystem, policy.ActionRead*/ ).
3918
+ Asserts ( /*rbac.ResourceSystem, policy.ActionRead*/ ).
3919
3919
Returns (slice .New (a , b ))
3920
3920
}))
3921
3921
s .Run ("InsertWorkspaceAgent" , s .Subtest (func (db database.Store , check * expects ) {
@@ -3959,22 +3959,22 @@ func (s *MethodTestSuite) TestSystemFunctions() {
3959
3959
OrganizationID : j .OrganizationID ,
3960
3960
Types : []database.ProvisionerType {j .Provisioner },
3961
3961
ProvisionerTags : must (json .Marshal (j .Tags )),
3962
- }).Asserts ( /*rbac.ResourceSystem, policy.ActionUpdate*/ )
3962
+ }).Asserts ( /*rbac.ResourceSystem, policy.ActionUpdate*/ )
3963
3963
}))
3964
3964
s .Run ("UpdateProvisionerJobWithCompleteByID" , s .Subtest (func (db database.Store , check * expects ) {
3965
3965
// TODO: we need to create a ProvisionerJob resource
3966
3966
j := dbgen .ProvisionerJob (s .T (), db , nil , database.ProvisionerJob {})
3967
3967
check .Args (database.UpdateProvisionerJobWithCompleteByIDParams {
3968
3968
ID : j .ID ,
3969
- }).Asserts ( /*rbac.ResourceSystem, policy.ActionUpdate*/ )
3969
+ }).Asserts ( /*rbac.ResourceSystem, policy.ActionUpdate*/ )
3970
3970
}))
3971
3971
s .Run ("UpdateProvisionerJobByID" , s .Subtest (func (db database.Store , check * expects ) {
3972
3972
// TODO: we need to create a ProvisionerJob resource
3973
3973
j := dbgen .ProvisionerJob (s .T (), db , nil , database.ProvisionerJob {})
3974
3974
check .Args (database.UpdateProvisionerJobByIDParams {
3975
3975
ID : j .ID ,
3976
3976
UpdatedAt : time .Now (),
3977
- }).Asserts ( /*rbac.ResourceSystem, policy.ActionUpdate*/ )
3977
+ }).Asserts ( /*rbac.ResourceSystem, policy.ActionUpdate*/ )
3978
3978
}))
3979
3979
s .Run ("InsertProvisionerJob" , s .Subtest (func (db database.Store , check * expects ) {
3980
3980
dbtestutil .DisableForeignKeysAndTriggers (s .T (), db )
@@ -3985,21 +3985,21 @@ func (s *MethodTestSuite) TestSystemFunctions() {
3985
3985
StorageMethod : database .ProvisionerStorageMethodFile ,
3986
3986
Type : database .ProvisionerJobTypeWorkspaceBuild ,
3987
3987
Input : json .RawMessage ("{}" ),
3988
- }).Asserts ( /*rbac.ResourceSystem, policy.ActionCreate*/ )
3988
+ }).Asserts ( /*rbac.ResourceSystem, policy.ActionCreate*/ )
3989
3989
}))
3990
3990
s .Run ("InsertProvisionerJobLogs" , s .Subtest (func (db database.Store , check * expects ) {
3991
3991
// TODO: we need to create a ProvisionerJob resource
3992
3992
j := dbgen .ProvisionerJob (s .T (), db , nil , database.ProvisionerJob {})
3993
3993
check .Args (database.InsertProvisionerJobLogsParams {
3994
3994
JobID : j .ID ,
3995
- }).Asserts ( /*rbac.ResourceSystem, policy.ActionCreate*/ )
3995
+ }).Asserts ( /*rbac.ResourceSystem, policy.ActionCreate*/ )
3996
3996
}))
3997
3997
s .Run ("InsertProvisionerJobTimings" , s .Subtest (func (db database.Store , check * expects ) {
3998
3998
// TODO: we need to create a ProvisionerJob resource
3999
3999
j := dbgen .ProvisionerJob (s .T (), db , nil , database.ProvisionerJob {})
4000
4000
check .Args (database.InsertProvisionerJobTimingsParams {
4001
4001
JobID : j .ID ,
4002
- }).Asserts ( /*rbac.ResourceSystem, policy.ActionCreate*/ )
4002
+ }).Asserts ( /*rbac.ResourceSystem, policy.ActionCreate*/ )
4003
4003
}))
4004
4004
s .Run ("UpsertProvisionerDaemon" , s .Subtest (func (db database.Store , check * expects ) {
4005
4005
dbtestutil .DisableForeignKeysAndTriggers (s .T (), db )
0 commit comments