File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import (
13
13
"golang.org/x/xerrors"
14
14
15
15
"cdr.dev/slog"
16
+
16
17
"github.com/coder/coder/v2/coderd/database/db2sdk"
17
18
"github.com/coder/coder/v2/coderd/rbac/policy"
18
19
"github.com/coder/coder/v2/codersdk"
@@ -2494,6 +2495,13 @@ func (s *MethodTestSuite) TestSystemFunctions() {
2494
2495
// TODO: update this test once we have a specific role for notifications
2495
2496
check .Args (database.FetchNewMessageMetadataParams {}).Asserts (rbac .ResourceSystem , policy .ActionRead )
2496
2497
}))
2498
+ s .Run ("GetNotificationMessagesByStatus" , s .Subtest (func (db database.Store , check * expects ) {
2499
+ // TODO: update this test once we have a specific role for notifications
2500
+ check .Args (database.GetNotificationMessagesByStatusParams {
2501
+ Status : database .NotificationMessageStatusLeased ,
2502
+ Limit : 10 ,
2503
+ }).Asserts (rbac .ResourceSystem , policy .ActionRead )
2504
+ }))
2497
2505
}
2498
2506
2499
2507
func (s * MethodTestSuite ) TestOAuth2ProviderApps () {
Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ import (
16
16
"github.com/coder/coder/v2/codersdk"
17
17
)
18
18
19
- var (
20
- ErrInvalidDispatchTimeout = xerrors .New ("dispatch timeout must be less than lease period" )
21
- )
19
+ var ErrInvalidDispatchTimeout = xerrors .New ("dispatch timeout must be less than lease period" )
22
20
23
21
// Manager manages all notifications being enqueued and dispatched.
24
22
//
Original file line number Diff line number Diff line change 97
97
name = "coder-${ osArch } " ;
98
98
# Updated with ./scripts/update-flake.sh`.
99
99
# This should be updated whenever go.mod changes!
100
- vendorHash = "sha256-xHrnqSq2Ya04d9Y48tbkQTNo9bYnp7LqcUnXXRbMFXE =" ;
100
+ vendorHash = "sha256-HXDei93ALEImIMgX3Ez829jmJJsf46GwaqPDlleQFmk =" ;
101
101
proxyVendor = true ;
102
102
src = ./. ;
103
103
nativeBuildInputs = with pkgs ; [ getopt openssl zstd ] ;
You can’t perform that action at this time.
0 commit comments