summaryrefslogtreecommitdiff
path: root/spec/frontend/vue_merge_request_widget/extensions/security_reports/mock_data.js
blob: c7354483e8beaca7685f41254c1acd80ad17f5bd (plain)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
export const mockArtifacts = () => ({
  data: {
    project: {
      id: 'gid://gitlab/Project/9',
      mergeRequest: {
        id: 'gid://gitlab/MergeRequest/1',
        headPipeline: {
          id: 'gid://gitlab/Ci::Pipeline/1',
          jobs: {
            nodes: [
              {
                id: 'gid://gitlab/Ci::Build/14',
                name: 'sam_scan',
                artifacts: {
                  nodes: [
                    {
                      downloadPath:
                        '/root/security-reports/-/jobs/14/artifacts/download?file_type=trace',
                      fileType: 'TRACE',
                      __typename: 'CiJobArtifact',
                    },
                    {
                      downloadPath:
                        '/root/security-reports/-/jobs/14/artifacts/download?file_type=sast',
                      fileType: 'SAST',
                      __typename: 'CiJobArtifact',
                    },
                  ],
                  __typename: 'CiJobArtifactConnection',
                },
                __typename: 'CiJob',
              },
              {
                id: 'gid://gitlab/Ci::Build/11',
                name: 'sast-spotbugs',
                artifacts: {
                  nodes: [
                    {
                      downloadPath:
                        '/root/security-reports/-/jobs/11/artifacts/download?file_type=trace',
                      fileType: 'TRACE',
                      __typename: 'CiJobArtifact',
                    },
                    {
                      downloadPath:
                        '/root/security-reports/-/jobs/11/artifacts/download?file_type=sast',
                      fileType: 'SAST',
                      __typename: 'CiJobArtifact',
                    },
                  ],
                  __typename: 'CiJobArtifactConnection',
                },
                __typename: 'CiJob',
              },
              {
                id: 'gid://gitlab/Ci::Build/10',
                name: 'sast-sobelow',
                artifacts: {
                  nodes: [
                    {
                      downloadPath:
                        '/root/security-reports/-/jobs/10/artifacts/download?file_type=trace',
                      fileType: 'TRACE',
                      __typename: 'CiJobArtifact',
                    },
                  ],
                  __typename: 'CiJobArtifactConnection',
                },
                __typename: 'CiJob',
              },
              {
                id: 'gid://gitlab/Ci::Build/9',
                name: 'sast-pmd-apex',
                artifacts: {
                  nodes: [
                    {
                      downloadPath:
                        '/root/security-reports/-/jobs/9/artifacts/download?file_type=trace',
                      fileType: 'TRACE',
                      __typename: 'CiJobArtifact',
                    },
                  ],
                  __typename: 'CiJobArtifactConnection',
                },
                __typename: 'CiJob',
              },
              {
                id: 'gid://gitlab/Ci::Build/8',
                name: 'sast-eslint',
                artifacts: {
                  nodes: [
                    {
                      downloadPath:
                        '/root/security-reports/-/jobs/8/artifacts/download?file_type=trace',
                      fileType: 'TRACE',
                      __typename: 'CiJobArtifact',
                    },
                    {
                      downloadPath:
                        '/root/security-reports/-/jobs/8/artifacts/download?file_type=sast',
                      fileType: 'SAST',
                      __typename: 'CiJobArtifact',
                    },
                  ],
                  __typename: 'CiJobArtifactConnection',
                },
                __typename: 'CiJob',
              },
              {
                id: 'gid://gitlab/Ci::Build/7',
                name: 'secrets',
                artifacts: {
                  nodes: [
                    {
                      downloadPath:
                        '/root/security-reports/-/jobs/7/artifacts/download?file_type=trace',
                      fileType: 'TRACE',
                      __typename: 'CiJobArtifact',
                    },
                    {
                      downloadPath:
                        '/root/security-reports/-/jobs/7/artifacts/download?file_type=secret_detection',
                      fileType: 'SECRET_DETECTION',
                      __typename: 'CiJobArtifact',
                    },
                  ],
                  __typename: 'CiJobArtifactConnection',
                },
                __typename: 'CiJob',
              },
            ],
            __typename: 'CiJobConnection',
          },
          __typename: 'Pipeline',
        },
        __typename: 'MergeRequest',
      },
      __typename: 'Project',
    },
  },
});