Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/usage_quotas/storage/mock_data.js')
-rw-r--r--spec/frontend/usage_quotas/storage/mock_data.js101
1 files changed, 101 insertions, 0 deletions
diff --git a/spec/frontend/usage_quotas/storage/mock_data.js b/spec/frontend/usage_quotas/storage/mock_data.js
new file mode 100644
index 00000000000..b1c6be10d80
--- /dev/null
+++ b/spec/frontend/usage_quotas/storage/mock_data.js
@@ -0,0 +1,101 @@
+import mockGetProjectStorageStatisticsGraphQLResponse from 'test_fixtures/graphql/usage_quotas/storage/project_storage.query.graphql.json';
+
+export { mockGetProjectStorageStatisticsGraphQLResponse };
+export const mockEmptyResponse = { data: { project: null } };
+
+export const projectData = {
+ storage: {
+ totalUsage: '13.8 MiB',
+ storageTypes: [
+ {
+ storageType: {
+ id: 'containerRegistrySize',
+ name: 'Container Registry',
+ description: 'Gitlab-integrated Docker Container Registry for storing Docker Images.',
+ helpPath: '/container_registry',
+ },
+ value: 3_900_000,
+ },
+ {
+ storageType: {
+ id: 'buildArtifactsSize',
+ name: 'Artifacts',
+ description: 'Pipeline artifacts and job artifacts, created with CI/CD.',
+ helpPath: '/build-artifacts',
+ },
+ value: 400000,
+ },
+ {
+ storageType: {
+ id: 'lfsObjectsSize',
+ name: 'LFS storage',
+ description: 'Audio samples, videos, datasets, and graphics.',
+ helpPath: '/lsf-objects',
+ },
+ value: 4800000,
+ },
+ {
+ storageType: {
+ id: 'packagesSize',
+ name: 'Packages',
+ description: 'Code packages and container images.',
+ helpPath: '/packages',
+ },
+ value: 3800000,
+ },
+ {
+ storageType: {
+ id: 'repositorySize',
+ name: 'Repository',
+ description: 'Git repository.',
+ helpPath: '/repository',
+ },
+ value: 3900000,
+ },
+ {
+ storageType: {
+ id: 'snippetsSize',
+ name: 'Snippets',
+ description: 'Shared bits of code and text.',
+ helpPath: '/snippets',
+ },
+ value: 0,
+ },
+ {
+ storageType: {
+ id: 'uploadsSize',
+ name: 'Uploads',
+ description: 'File attachments and smaller design graphics.',
+ helpPath: '/uploads',
+ },
+ value: 900000,
+ },
+ {
+ storageType: {
+ id: 'wikiSize',
+ name: 'Wiki',
+ description: 'Wiki content.',
+ helpPath: '/wiki',
+ },
+ value: 300000,
+ },
+ ],
+ },
+};
+
+export const projectHelpLinks = {
+ containerRegistry: '/container_registry',
+ usageQuotas: '/usage-quotas',
+ buildArtifacts: '/build-artifacts',
+ lfsObjects: '/lsf-objects',
+ packages: '/packages',
+ repository: '/repository',
+ snippets: '/snippets',
+ uploads: '/uploads',
+ wiki: '/wiki',
+};
+
+export const defaultProjectProvideValues = {
+ projectPath: '/project-path',
+ helpLinks: projectHelpLinks,
+};