File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2700,10 +2700,17 @@ func (s *MethodTestSuite) TestSystemFunctions() {
2700
2700
check .Args ("test" ).Asserts (rbac .ResourceSystem , policy .ActionDelete )
2701
2701
}))
2702
2702
s .Run ("GetRuntimeConfig" , s .Subtest (func (db database.Store , check * expects ) {
2703
+ _ = db .UpsertRuntimeConfig (context .Background (), database.UpsertRuntimeConfigParams {
2704
+ Key : "test" ,
2705
+ Value : "value" ,
2706
+ })
2703
2707
check .Args ("test" ).Asserts (rbac .ResourceSystem , policy .ActionRead )
2704
2708
}))
2705
2709
s .Run ("UpsertRuntimeConfig" , s .Subtest (func (db database.Store , check * expects ) {
2706
- check .Args ("test" , "value" ).Asserts (rbac .ResourceSystem , policy .ActionUpdate )
2710
+ check .Args (database.UpsertRuntimeConfigParams {
2711
+ Key : "test" ,
2712
+ Value : "value" ,
2713
+ }).Asserts (rbac .ResourceSystem , policy .ActionCreate )
2707
2714
}))
2708
2715
}
2709
2716
You can’t perform that action at this time.
0 commit comments