Skip to content

Commit 62e3fa0

Browse files
committed
Fix unit tests that use create over update
1 parent c962897 commit 62e3fa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/authzquery/license_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ func (suite *MethodTestSuite) TestLicense() {
3030
})
3131
suite.Run("InsertOrUpdateLogoURL", func() {
3232
suite.RunMethodTest(func(t *testing.T, db database.Store) MethodCase {
33-
return methodCase(values("value"), asserts(rbac.ResourceDeploymentConfig, rbac.ActionUpdate), nil)
33+
return methodCase(values("value"), asserts(rbac.ResourceDeploymentConfig, rbac.ActionCreate), nil)
3434
})
3535
})
3636
suite.Run("InsertOrUpdateServiceBanner", func() {
3737
suite.RunMethodTest(func(t *testing.T, db database.Store) MethodCase {
38-
return methodCase(values("value"), asserts(rbac.ResourceDeploymentConfig, rbac.ActionUpdate), nil)
38+
return methodCase(values("value"), asserts(rbac.ResourceDeploymentConfig, rbac.ActionCreate), nil)
3939
})
4040
})
4141
suite.Run("GetLicenseByID", func() {

0 commit comments

Comments
 (0)