Skip to content

Commit 5e92648

Browse files
committed
Api key and audit fix
1 parent 2c906e5 commit 5e92648

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

coderd/authzquery/apikey_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ func (suite *MethodTestSuite) TestAPIKey() {
5050
LoginType: database.LoginTypePassword,
5151
Scope: database.APIKeyScopeAll,
5252
}), asserts(rbac.ResourceAPIKey.WithOwner(u.ID.String()), rbac.ActionCreate),
53-
values())
53+
nil)
5454
})
5555
})
5656
suite.Run("UpdateAPIKeyByID", func() {
5757
suite.RunMethodTest(func(t *testing.T, db database.Store) MethodCase {
5858
a, _ := dbgen.APIKey(t, db, database.APIKey{})
5959
return methodCase(values(database.UpdateAPIKeyByIDParams{
6060
ID: a.ID,
61-
}), asserts(a, rbac.ActionUpdate), values(a))
61+
}), asserts(a, rbac.ActionUpdate), values())
6262
})
6363
})
6464
}

coderd/authzquery/audit_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func (suite *MethodTestSuite) TestAuditLogs() {
1717
Action: database.AuditActionCreate,
1818
}),
1919
asserts(rbac.ResourceAuditLog, rbac.ActionCreate),
20-
values(database.AuditLog{}))
20+
nil)
2121
})
2222
})
2323
suite.Run("GetAuditLogsOffset", func() {
@@ -28,7 +28,7 @@ func (suite *MethodTestSuite) TestAuditLogs() {
2828
Limit: 10,
2929
}),
3030
asserts(rbac.ResourceAuditLog, rbac.ActionRead),
31-
values(database.AuditLog{}))
31+
nil)
3232
})
3333
})
3434
}

0 commit comments

Comments
 (0)