2021-10-20 11:12:43 -04:00
import mockGetProjectStorageCountGraphQLResponse from 'test_fixtures/graphql/projects/storage_counter/project_storage.query.graphql.json' ;
export { mockGetProjectStorageCountGraphQLResponse } ;
2021-09-09 11:09:24 -04:00
export const mockEmptyResponse = { data : { project : null } } ;
export const defaultProvideValues = {
projectPath : '/project-path' ,
helpLinks : {
usageQuotasHelpPagePath : '/usage-quotas' ,
buildArtifactsHelpPagePath : '/build-artifacts' ,
lfsObjectsHelpPagePath : '/lsf-objects' ,
packagesHelpPagePath : '/packages' ,
repositoryHelpPagePath : '/repository' ,
snippetsHelpPagePath : '/snippets' ,
uploadsHelpPagePath : '/uploads' ,
wikiHelpPagePath : '/wiki' ,
} ,
} ;
export const projectData = {
storage : {
2021-10-20 11:12:43 -04:00
totalUsage : '13.8 MiB' ,
2021-09-09 11:09:24 -04:00
storageTypes : [
{
storageType : {
id : 'buildArtifactsSize' ,
name : 'Artifacts' ,
description : 'Pipeline artifacts and job artifacts, created with CI/CD.' ,
warningMessage :
'There is a known issue with Artifact storage where the total could be incorrect for some projects. More details and progress are available in %{warningLinkStart}the epic%{warningLinkEnd}.' ,
helpPath : '/build-artifacts' ,
} ,
2021-09-15 20:11:46 -04:00
value : 400000 ,
2021-09-09 11:09:24 -04:00
} ,
{
storageType : {
id : 'lfsObjectsSize' ,
name : 'LFS Storage' ,
description : 'Audio samples, videos, datasets, and graphics.' ,
helpPath : '/lsf-objects' ,
} ,
2021-09-15 20:11:46 -04:00
value : 4800000 ,
2021-09-09 11:09:24 -04:00
} ,
{
storageType : {
id : 'packagesSize' ,
name : 'Packages' ,
description : 'Code packages and container images.' ,
helpPath : '/packages' ,
} ,
2021-09-15 20:11:46 -04:00
value : 3800000 ,
2021-09-09 11:09:24 -04:00
} ,
{
storageType : {
id : 'repositorySize' ,
name : 'Repository' ,
description : 'Git repository, managed by the Gitaly service.' ,
helpPath : '/repository' ,
} ,
2021-09-15 20:11:46 -04:00
value : 3900000 ,
2021-09-09 11:09:24 -04:00
} ,
{
storageType : {
id : 'snippetsSize' ,
name : 'Snippets' ,
description : 'Shared bits of code and text.' ,
helpPath : '/snippets' ,
} ,
2021-10-20 11:12:43 -04:00
value : 0 ,
2021-09-09 11:09:24 -04:00
} ,
{
storageType : {
id : 'uploadsSize' ,
name : 'Uploads' ,
description : 'File attachments and smaller design graphics.' ,
helpPath : '/uploads' ,
} ,
2021-09-15 20:11:46 -04:00
value : 900000 ,
2021-09-09 11:09:24 -04:00
} ,
{
storageType : {
id : 'wikiSize' ,
name : 'Wiki' ,
description : 'Wiki content.' ,
helpPath : '/wiki' ,
} ,
2021-09-15 20:11:46 -04:00
value : 300000 ,
2021-09-09 11:09:24 -04:00
} ,
] ,
} ,
} ;