1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { GroupResource, GroupClass } from "./group";
6 import { Resource, ResourceKind } from "./resource";
7 import { ProjectResource } from "./project";
9 export const mockGroupResource = (data: Partial<GroupResource> = {}): GroupResource => ({
17 kind: ResourceKind.GROUP,
19 modifiedByClientUuid: "",
20 modifiedByUserUuid: "",
30 export const mockProjectResource = (data: Partial<ProjectResource> = {}): ProjectResource =>
31 mockGroupResource({ ...data, groupClass: GroupClass.PROJECT }) as ProjectResource;
33 export const mockCommonResource = (data: Partial<Resource>): Resource => ({
39 modifiedByClientUuid: "",
40 modifiedByUserUuid: "",