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
|
export const mockInheritedCiVariables = ({ withNextPage = false } = {}) => ({
data: {
project: {
__typename: 'Project',
id: 'gid://gitlab/Project/38',
inheritedCiVariables: {
__typename: `InheritedCiVariableConnection`,
pageInfo: {
startCursor: 'adsjsd12kldpsa',
endCursor: 'adsjsd12kldpsa',
hasPreviousPage: withNextPage,
hasNextPage: withNextPage,
__typename: 'PageInfo',
},
nodes: [
{
__typename: `InheritedCiVariable`,
id: 'gid://gitlab/Ci::GroupVariable/1',
environmentScope: '*',
groupName: 'group_abc',
groupCiCdSettingsPath: '/groups/group_abc/-/settings/ci_cd',
key: 'GROUP_VAR',
masked: false,
protected: true,
raw: false,
variableType: 'ENV_VAR',
},
{
__typename: `InheritedCiVariable`,
id: 'gid://gitlab/Ci::GroupVariable/2',
environmentScope: '*',
groupName: 'subgroup_xyz',
groupCiCdSettingsPath: '/groups/group_abc/subgroup_xyz/-/settings/ci_cd',
key: 'SUB_GROUP_VAR',
masked: true,
protected: false,
raw: true,
variableType: 'ENV_VAR',
},
],
},
},
},
});
|