File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -4546,6 +4546,14 @@ func (s *MethodTestSuite) TestOAuth2ProviderAppTokens() {
4546
4546
}
4547
4547
4548
4548
func (s * MethodTestSuite ) TestResourcesMonitor () {
4549
+ s .Run ("InsertMemoryResourceMonitor" , s .Subtest (func (db database.Store , check * expects ) {
4550
+ check .Args (database.InsertMemoryResourceMonitorParams {}).Asserts (rbac .ResourceWorkspaceAgentMemoryResourceMonitor , policy .ActionCreate )
4551
+ }))
4552
+
4553
+ s .Run ("InsertVolumeResourceMonitor" , s .Subtest (func (db database.Store , check * expects ) {
4554
+ check .Args (database.InsertVolumeResourceMonitorParams {}).Asserts (rbac .ResourceWorkspaceAgentVolumeResourceMonitor , policy .ActionCreate )
4555
+ }))
4556
+
4549
4557
s .Run ("FetchMemoryResourceMonitorsByAgentID" , s .Subtest (func (db database.Store , check * expects ) {
4550
4558
u := dbgen .User (s .T (), db , database.User {})
4551
4559
o := dbgen .Organization (s .T (), db , database.Organization {})
You can’t perform that action at this time.
0 commit comments