2023-03-04 22:38:38 +05:30
|
|
|
export const mockFullPath = 'Commit451/lab-coat';
|
|
|
|
export const mockId = 401;
|
|
|
|
|
|
|
|
export const mockJobResponse = {
|
|
|
|
data: {
|
|
|
|
project: {
|
|
|
|
id: 'gid://gitlab/Project/4',
|
|
|
|
job: {
|
|
|
|
id: 'gid://gitlab/Ci::Build/401',
|
|
|
|
manualJob: true,
|
|
|
|
manualVariables: {
|
|
|
|
nodes: [],
|
|
|
|
__typename: 'CiManualVariableConnection',
|
|
|
|
},
|
|
|
|
name: 'manual_job',
|
|
|
|
retryable: true,
|
|
|
|
status: 'SUCCESS',
|
|
|
|
__typename: 'CiJob',
|
|
|
|
},
|
|
|
|
__typename: 'Project',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const mockJobWithVariablesResponse = {
|
|
|
|
data: {
|
|
|
|
project: {
|
|
|
|
id: 'gid://gitlab/Project/4',
|
|
|
|
job: {
|
|
|
|
id: 'gid://gitlab/Ci::Build/401',
|
|
|
|
manualJob: true,
|
|
|
|
manualVariables: {
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
id: 'gid://gitlab/Ci::JobVariable/150',
|
|
|
|
key: 'new key',
|
|
|
|
value: 'new value',
|
|
|
|
__typename: 'CiManualVariable',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
__typename: 'CiManualVariableConnection',
|
|
|
|
},
|
|
|
|
name: 'manual_job',
|
|
|
|
retryable: true,
|
|
|
|
status: 'SUCCESS',
|
|
|
|
__typename: 'CiJob',
|
|
|
|
},
|
|
|
|
__typename: 'Project',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2023-05-27 22:25:52 +05:30
|
|
|
export const mockJobPlayMutationData = {
|
|
|
|
data: {
|
|
|
|
jobPlay: {
|
|
|
|
job: {
|
|
|
|
id: 'gid://gitlab/Ci::Build/401',
|
|
|
|
manualVariables: {
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
id: 'gid://gitlab/Ci::JobVariable/151',
|
|
|
|
key: 'new key',
|
|
|
|
value: 'new value',
|
|
|
|
__typename: 'CiManualVariable',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
__typename: 'CiManualVariableConnection',
|
|
|
|
},
|
|
|
|
webPath: '/Commit451/lab-coat/-/jobs/401',
|
|
|
|
__typename: 'CiJob',
|
|
|
|
},
|
|
|
|
errors: [],
|
|
|
|
__typename: 'JobPlayPayload',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const mockJobRetryMutationData = {
|
2023-03-04 22:38:38 +05:30
|
|
|
data: {
|
|
|
|
jobRetry: {
|
|
|
|
job: {
|
|
|
|
id: 'gid://gitlab/Ci::Build/401',
|
|
|
|
manualVariables: {
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
id: 'gid://gitlab/Ci::JobVariable/151',
|
|
|
|
key: 'new key',
|
|
|
|
value: 'new value',
|
|
|
|
__typename: 'CiManualVariable',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
__typename: 'CiManualVariableConnection',
|
|
|
|
},
|
|
|
|
webPath: '/Commit451/lab-coat/-/jobs/401',
|
|
|
|
__typename: 'CiJob',
|
|
|
|
},
|
|
|
|
errors: [],
|
|
|
|
__typename: 'JobRetryPayload',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
2023-04-23 21:23:45 +05:30
|
|
|
|
|
|
|
export const mockPendingJobData = {
|
|
|
|
has_trace: false,
|
|
|
|
status: {
|
|
|
|
group: 'pending',
|
|
|
|
icon: 'status_pending',
|
|
|
|
label: 'pending',
|
|
|
|
text: 'pending',
|
|
|
|
details_path: 'path',
|
|
|
|
illustration: {
|
|
|
|
image: 'path',
|
|
|
|
size: '340',
|
|
|
|
title: '',
|
|
|
|
content: '',
|
|
|
|
},
|
|
|
|
action: {
|
|
|
|
button_title: 'Retry job',
|
|
|
|
method: 'post',
|
|
|
|
path: '/path',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|