()
| 930 | } |
| 931 | |
| 932 | func sourceModeUserTestContext() context.Context { |
| 933 | ctx := context.WithValue(context.Background(), core.UserIDKey, "app-user") |
| 934 | ctx = context.WithValue(ctx, core.IdentityVarsKey, map[string]interface{}{"account_id": "app-account", "user_id": "app-user"}) |
| 935 | ctx = context.WithValue(ctx, core.IdentityRolesKey, []string{"user"}) |
| 936 | return ctx |
| 937 | } |
| 938 | |
| 939 | func TestApplySystemRoleQueryDefaultsDatabaseScoped(t *testing.T) { |
| 940 | conf := &Config{ |
no outgoing calls
no test coverage detected