2018-04-17 11:27:46 -04:00
|
|
|
export const projectData = {
|
|
|
|
id: 1,
|
|
|
|
name: 'abcproject',
|
|
|
|
web_url: '',
|
|
|
|
avatar_url: '',
|
|
|
|
path: '',
|
2018-04-17 12:02:48 -04:00
|
|
|
name_with_namespace: 'namespace/abcproject',
|
2018-04-17 11:27:46 -04:00
|
|
|
branches: {
|
|
|
|
master: {
|
|
|
|
treeId: 'abcproject/master',
|
2018-06-25 06:22:46 -04:00
|
|
|
can_push: true,
|
2018-07-10 03:33:35 -04:00
|
|
|
commit: {
|
|
|
|
id: '123',
|
|
|
|
},
|
2018-04-17 11:27:46 -04:00
|
|
|
},
|
|
|
|
},
|
2018-05-03 10:12:56 -04:00
|
|
|
mergeRequests: {},
|
2018-05-09 12:07:02 -04:00
|
|
|
merge_requests_enabled: true,
|
2018-04-17 11:27:46 -04:00
|
|
|
};
|
2018-05-11 12:27:09 -04:00
|
|
|
|
|
|
|
export const pipelines = [
|
|
|
|
{
|
|
|
|
id: 1,
|
|
|
|
ref: 'master',
|
|
|
|
sha: '123',
|
2018-05-29 08:09:19 -04:00
|
|
|
details: {
|
|
|
|
status: {
|
|
|
|
icon: 'status_failed',
|
|
|
|
group: 'failed',
|
|
|
|
text: 'Failed',
|
|
|
|
},
|
|
|
|
},
|
2018-05-29 05:35:13 -04:00
|
|
|
commit: { id: '123' },
|
2018-05-11 12:27:09 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 2,
|
|
|
|
ref: 'master',
|
|
|
|
sha: '213',
|
2018-05-29 08:09:19 -04:00
|
|
|
details: {
|
|
|
|
status: {
|
|
|
|
icon: 'status_failed',
|
|
|
|
group: 'failed',
|
|
|
|
text: 'Failed',
|
|
|
|
},
|
|
|
|
},
|
2018-05-29 05:35:13 -04:00
|
|
|
commit: { id: '213' },
|
2018-05-11 12:27:09 -04:00
|
|
|
},
|
|
|
|
];
|
|
|
|
|
2018-05-24 10:07:09 -04:00
|
|
|
export const stages = [
|
|
|
|
{
|
2018-05-29 08:09:19 -04:00
|
|
|
dropdown_path: `${gl.TEST_HOST}/testing`,
|
2018-05-24 10:07:09 -04:00
|
|
|
name: 'build',
|
|
|
|
status: {
|
|
|
|
icon: 'status_failed',
|
|
|
|
group: 'failed',
|
2018-05-29 08:09:19 -04:00
|
|
|
text: 'failed',
|
2018-05-24 10:07:09 -04:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
dropdown_path: 'testing',
|
|
|
|
name: 'test',
|
|
|
|
status: {
|
|
|
|
icon: 'status_failed',
|
|
|
|
group: 'failed',
|
2018-05-29 08:09:19 -04:00
|
|
|
text: 'failed',
|
2018-05-24 10:07:09 -04:00
|
|
|
},
|
2018-05-11 12:27:09 -04:00
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export const jobs = [
|
|
|
|
{
|
|
|
|
id: 1,
|
|
|
|
name: 'test',
|
2018-05-29 08:09:19 -04:00
|
|
|
path: 'testing',
|
|
|
|
status: {
|
2018-07-18 12:56:19 -04:00
|
|
|
icon: 'status_success',
|
2018-05-29 08:09:19 -04:00
|
|
|
text: 'passed',
|
|
|
|
},
|
2018-05-11 12:27:09 -04:00
|
|
|
stage: 'test',
|
|
|
|
duration: 1,
|
2018-06-01 09:44:22 -04:00
|
|
|
started: new Date(),
|
2018-05-11 12:27:09 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 2,
|
|
|
|
name: 'test 2',
|
2018-05-29 08:09:19 -04:00
|
|
|
path: 'testing2',
|
|
|
|
status: {
|
2018-07-18 12:56:19 -04:00
|
|
|
icon: 'status_success',
|
2018-05-29 08:09:19 -04:00
|
|
|
text: 'passed',
|
|
|
|
},
|
2018-05-11 12:27:09 -04:00
|
|
|
stage: 'test',
|
|
|
|
duration: 1,
|
2018-06-01 09:44:22 -04:00
|
|
|
started: new Date(),
|
2018-05-11 12:27:09 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 3,
|
|
|
|
name: 'test 3',
|
2018-05-29 08:09:19 -04:00
|
|
|
path: 'testing3',
|
|
|
|
status: {
|
2018-07-18 12:56:19 -04:00
|
|
|
icon: 'status_success',
|
2018-05-29 08:09:19 -04:00
|
|
|
text: 'passed',
|
|
|
|
},
|
2018-05-11 12:27:09 -04:00
|
|
|
stage: 'test',
|
|
|
|
duration: 1,
|
2018-06-01 09:44:22 -04:00
|
|
|
started: new Date(),
|
2018-05-11 12:27:09 -04:00
|
|
|
},
|
2018-05-14 11:30:52 -04:00
|
|
|
{
|
|
|
|
id: 4,
|
2018-05-29 08:09:19 -04:00
|
|
|
name: 'test 4',
|
|
|
|
path: 'testing4',
|
|
|
|
status: {
|
|
|
|
icon: 'status_failed',
|
|
|
|
text: 'failed',
|
|
|
|
},
|
2018-05-14 11:30:52 -04:00
|
|
|
stage: 'build',
|
|
|
|
duration: 1,
|
2018-06-01 09:44:22 -04:00
|
|
|
started: new Date(),
|
2018-05-14 11:30:52 -04:00
|
|
|
},
|
2018-05-11 12:27:09 -04:00
|
|
|
];
|
2018-05-25 06:08:53 -04:00
|
|
|
|
|
|
|
export const fullPipelinesResponse = {
|
|
|
|
data: {
|
|
|
|
count: {
|
|
|
|
all: 2,
|
|
|
|
},
|
|
|
|
pipelines: [
|
|
|
|
{
|
|
|
|
id: '51',
|
2018-05-25 11:00:00 -04:00
|
|
|
path: 'test',
|
2018-05-25 06:08:53 -04:00
|
|
|
commit: {
|
2018-05-25 11:00:00 -04:00
|
|
|
id: '123',
|
2018-05-25 06:08:53 -04:00
|
|
|
},
|
|
|
|
details: {
|
|
|
|
status: {
|
|
|
|
icon: 'status_failed',
|
|
|
|
text: 'failed',
|
|
|
|
},
|
2018-05-25 11:00:00 -04:00
|
|
|
stages: [...stages],
|
2018-05-25 06:08:53 -04:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: '50',
|
|
|
|
commit: {
|
|
|
|
id: 'abc123def456ghi789jkl',
|
|
|
|
},
|
|
|
|
details: {
|
|
|
|
status: {
|
2018-07-18 12:56:19 -04:00
|
|
|
icon: 'status_success',
|
2018-05-25 06:08:53 -04:00
|
|
|
text: 'passed',
|
|
|
|
},
|
2018-05-25 11:00:00 -04:00
|
|
|
stages: [...stages],
|
2018-05-25 06:08:53 -04:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|
2018-05-11 05:37:10 -04:00
|
|
|
|
|
|
|
export const mergeRequests = [
|
|
|
|
{
|
2018-05-30 05:59:29 -04:00
|
|
|
id: 1,
|
2018-05-11 05:37:10 -04:00
|
|
|
iid: 1,
|
|
|
|
title: 'Test merge request',
|
|
|
|
project_id: 1,
|
2018-05-30 05:59:29 -04:00
|
|
|
web_url: `${gl.TEST_HOST}/namespace/project-path/merge_requests/1`,
|
2018-05-11 05:37:10 -04:00
|
|
|
},
|
|
|
|
];
|
2018-08-07 11:15:56 -04:00
|
|
|
|
|
|
|
export const branches = [
|
|
|
|
{
|
|
|
|
id: 1,
|
|
|
|
name: 'master',
|
|
|
|
commit: {
|
|
|
|
message: 'Update master branch',
|
|
|
|
committed_date: '2018-08-01T00:20:05Z',
|
|
|
|
},
|
|
|
|
can_push: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 2,
|
|
|
|
name: 'feature/lorem-ipsum',
|
|
|
|
commit: {
|
|
|
|
message: 'Update some stuff',
|
|
|
|
committed_date: '2018-08-02T00:00:05Z',
|
|
|
|
},
|
|
|
|
can_push: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 3,
|
|
|
|
name: 'feature/dolar-amit',
|
|
|
|
commit: {
|
|
|
|
message: 'Update some more stuff',
|
|
|
|
committed_date: '2018-06-30T00:20:05Z',
|
|
|
|
},
|
|
|
|
can_push: true,
|
|
|
|
},
|
|
|
|
];
|