MCPcopy
hub / github.com/dosco/graphjin / sourceModeUserTestContext

Function sourceModeUserTestContext

serv/control_plane_graphql_test.go:932–937  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

930}
931
932func 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
939func TestApplySystemRoleQueryDefaultsDatabaseScoped(t *testing.T) {
940 conf := &Config{

Calls

no outgoing calls

Tested by

no test coverage detected