1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { GroupClass, GroupResource } 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: "",
27 ensure_unique_name: true,
31 export const mockProjectResource = (data: Partial<ProjectResource> = {}): ProjectResource =>
32 mockGroupResource({ ...data, groupClass: GroupClass.PROJECT }) as ProjectResource;
34 export const mockCommonResource = (data: Partial<Resource>): Resource => ({
38 kind: ResourceKind.NONE,
40 modifiedByClientUuid: "",
41 modifiedByUserUuid: "",