We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0da03c6 commit 4415b6bCopy full SHA for 4415b6b
coderd/authzquery/license_test.go
@@ -0,0 +1,24 @@
1
+package authzquery_test
2
+
3
+import (
4
+ "context"
5
+ "testing"
6
7
+ "github.com/google/uuid"
8
+ "github.com/stretchr/testify/require"
9
10
+ "github.com/coder/coder/coderd/database"
11
+ "github.com/coder/coder/coderd/rbac"
12
+)
13
14
+func (suite *MethodTestSuite) TestLicense() {
15
+ suite.Run("GetLicenses", func() {
16
+ suite.RunMethodTest(func(t *testing.T, db database.Store) MethodCase {
17
+ l, err := db.InsertLicense(context.Background(), database.InsertLicenseParams{
18
+ Uuid: uuid.NullUUID{UUID: uuid.New(), Valid: true},
19
+ })
20
+ require.NoError(t, err)
21
+ return methodCase(inputs(), asserts(l, rbac.ActionRead))
22
23
24
+}
0 commit comments