1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
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',
},
},
};
export const mockJobMutationData = {
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',
},
},
};
|