summaryrefslogtreecommitdiff
path: root/spec/javascripts/pipelines/mock_data.js
blob: f876987cd8833ef9b435f63eff64642cbd1995e3 (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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
export const pipelineWithStages = {
  id: 20333396,
  user: {
    id: 128633,
    name: 'Rémy Coutable',
    username: 'rymai',
    state: 'active',
    avatar_url:
      'https://secure.gravatar.com/avatar/263da227929cc0035cb0eba512bcf81a?s=80\u0026d=identicon',
    web_url: 'https://gitlab.com/rymai',
    path: '/rymai',
  },
  active: true,
  coverage: '58.24',
  source: 'push',
  created_at: '2018-04-11T14:04:53.881Z',
  updated_at: '2018-04-11T14:05:00.792Z',
  path: '/gitlab-org/gitlab/pipelines/20333396',
  flags: {
    latest: true,
    stuck: false,
    auto_devops: false,
    yaml_errors: false,
    retryable: false,
    cancelable: true,
    failure_reason: false,
  },
  details: {
    status: {
      icon: 'status_running',
      text: 'running',
      label: 'running',
      group: 'running',
      has_details: true,
      details_path: '/gitlab-org/gitlab/pipelines/20333396',
      favicon:
        'https://assets.gitlab-static.net/assets/ci_favicons/favicon_status_running-2eb56be2871937954b2ba6d6f4ee9fdf7e5e1c146ac45f7be98119ccaca1aca9.ico',
    },
    duration: null,
    finished_at: null,
    stages: [
      {
        name: 'build',
        title: 'build: skipped',
        status: {
          icon: 'status_skipped',
          text: 'skipped',
          label: 'skipped',
          group: 'skipped',
          has_details: true,
          details_path: '/gitlab-org/gitlab/pipelines/20333396#build',
          favicon:
            'https://assets.gitlab-static.net/assets/ci_favicons/favicon_status_skipped-a2eee568a5bffdb494050c7b62dde241de9189280836288ac8923d369f16222d.ico',
        },
        path: '/gitlab-org/gitlab/pipelines/20333396#build',
        dropdown_path: '/gitlab-org/gitlab/pipelines/20333396/stage.json?stage=build',
      },
      {
        name: 'prepare',
        title: 'prepare: passed',
        status: {
          icon: 'status_success',
          text: 'passed',
          label: 'passed',
          group: 'success',
          has_details: true,
          details_path: '/gitlab-org/gitlab/pipelines/20333396#prepare',
          favicon:
            'https://assets.gitlab-static.net/assets/ci_favicons/favicon_status_success-26f59841becbef8c6fe414e9e74471d8bfd6a91b5855c19fe7f5923a40a7da47.ico',
        },
        path: '/gitlab-org/gitlab/pipelines/20333396#prepare',
        dropdown_path: '/gitlab-org/gitlab/pipelines/20333396/stage.json?stage=prepare',
      },
      {
        name: 'test',
        title: 'test: running',
        status: {
          icon: 'status_running',
          text: 'running',
          label: 'running',
          group: 'running',
          has_details: true,
          details_path: '/gitlab-org/gitlab/pipelines/20333396#test',
          favicon:
            'https://assets.gitlab-static.net/assets/ci_favicons/favicon_status_running-2eb56be2871937954b2ba6d6f4ee9fdf7e5e1c146ac45f7be98119ccaca1aca9.ico',
        },
        path: '/gitlab-org/gitlab/pipelines/20333396#test',
        dropdown_path: '/gitlab-org/gitlab/pipelines/20333396/stage.json?stage=test',
      },
      {
        name: 'post-test',
        title: 'post-test: created',
        status: {
          icon: 'status_created',
          text: 'created',
          label: 'created',
          group: 'created',
          has_details: true,
          details_path: '/gitlab-org/gitlab/pipelines/20333396#post-test',
          favicon:
            'https://assets.gitlab-static.net/assets/ci_favicons/favicon_status_created-e997aa0b7db73165df8a9d6803932b18d7b7cc37d604d2d96e378fea2dba9c5f.ico',
        },
        path: '/gitlab-org/gitlab/pipelines/20333396#post-test',
        dropdown_path: '/gitlab-org/gitlab/pipelines/20333396/stage.json?stage=post-test',
      },
      {
        name: 'pages',
        title: 'pages: created',
        status: {
          icon: 'status_created',
          text: 'created',
          label: 'created',
          group: 'created',
          has_details: true,
          details_path: '/gitlab-org/gitlab/pipelines/20333396#pages',
          favicon:
            'https://assets.gitlab-static.net/assets/ci_favicons/favicon_status_created-e997aa0b7db73165df8a9d6803932b18d7b7cc37d604d2d96e378fea2dba9c5f.ico',
        },
        path: '/gitlab-org/gitlab/pipelines/20333396#pages',
        dropdown_path: '/gitlab-org/gitlab/pipelines/20333396/stage.json?stage=pages',
      },
      {
        name: 'post-cleanup',
        title: 'post-cleanup: created',
        status: {
          icon: 'status_created',
          text: 'created',
          label: 'created',
          group: 'created',
          has_details: true,
          details_path: '/gitlab-org/gitlab/pipelines/20333396#post-cleanup',
          favicon:
            'https://assets.gitlab-static.net/assets/ci_favicons/favicon_status_created-e997aa0b7db73165df8a9d6803932b18d7b7cc37d604d2d96e378fea2dba9c5f.ico',
        },
        path: '/gitlab-org/gitlab/pipelines/20333396#post-cleanup',
        dropdown_path: '/gitlab-org/gitlab/pipelines/20333396/stage.json?stage=post-cleanup',
      },
    ],
    artifacts: [
      {
        name: 'gitlab:assets:compile',
        expired: false,
        expire_at: '2018-05-12T14:22:54.730Z',
        path: '/gitlab-org/gitlab/-/jobs/62411438/artifacts/download',
        keep_path: '/gitlab-org/gitlab/-/jobs/62411438/artifacts/keep',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411438/artifacts/browse',
      },
      {
        name: 'rspec-mysql 12 28',
        expired: false,
        expire_at: '2018-05-12T14:22:45.136Z',
        path: '/gitlab-org/gitlab/-/jobs/62411397/artifacts/download',
        keep_path: '/gitlab-org/gitlab/-/jobs/62411397/artifacts/keep',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411397/artifacts/browse',
      },
      {
        name: 'rspec-mysql 6 28',
        expired: false,
        expire_at: '2018-05-12T14:22:41.523Z',
        path: '/gitlab-org/gitlab/-/jobs/62411391/artifacts/download',
        keep_path: '/gitlab-org/gitlab/-/jobs/62411391/artifacts/keep',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411391/artifacts/browse',
      },
      {
        name: 'rspec-pg geo 0 1',
        expired: false,
        expire_at: '2018-05-12T14:22:13.287Z',
        path: '/gitlab-org/gitlab/-/jobs/62411353/artifacts/download',
        keep_path: '/gitlab-org/gitlab/-/jobs/62411353/artifacts/keep',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411353/artifacts/browse',
      },
      {
        name: 'rspec-mysql 0 28',
        expired: false,
        expire_at: '2018-05-12T14:22:06.834Z',
        path: '/gitlab-org/gitlab/-/jobs/62411385/artifacts/download',
        keep_path: '/gitlab-org/gitlab/-/jobs/62411385/artifacts/keep',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411385/artifacts/browse',
      },
      {
        name: 'spinach-mysql 0 2',
        expired: false,
        expire_at: '2018-05-12T14:21:51.409Z',
        path: '/gitlab-org/gitlab/-/jobs/62411423/artifacts/download',
        keep_path: '/gitlab-org/gitlab/-/jobs/62411423/artifacts/keep',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411423/artifacts/browse',
      },
      {
        name: 'karma',
        expired: false,
        expire_at: '2018-05-12T14:21:20.934Z',
        path: '/gitlab-org/gitlab/-/jobs/62411440/artifacts/download',
        keep_path: '/gitlab-org/gitlab/-/jobs/62411440/artifacts/keep',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411440/artifacts/browse',
      },
      {
        name: 'spinach-pg 0 2',
        expired: false,
        expire_at: '2018-05-12T14:20:01.028Z',
        path: '/gitlab-org/gitlab/-/jobs/62411419/artifacts/download',
        keep_path: '/gitlab-org/gitlab/-/jobs/62411419/artifacts/keep',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411419/artifacts/browse',
      },
      {
        name: 'spinach-pg 1 2',
        expired: false,
        expire_at: '2018-05-12T14:19:04.336Z',
        path: '/gitlab-org/gitlab/-/jobs/62411421/artifacts/download',
        keep_path: '/gitlab-org/gitlab/-/jobs/62411421/artifacts/keep',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411421/artifacts/browse',
      },
      {
        name: 'sast',
        expired: null,
        expire_at: null,
        path: '/gitlab-org/gitlab/-/jobs/62411442/artifacts/download',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411442/artifacts/browse',
      },
      {
        name: 'code_quality',
        expired: false,
        expire_at: '2018-04-18T14:16:24.484Z',
        path: '/gitlab-org/gitlab/-/jobs/62411441/artifacts/download',
        keep_path: '/gitlab-org/gitlab/-/jobs/62411441/artifacts/keep',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411441/artifacts/browse',
      },
      {
        name: 'cache gems',
        expired: null,
        expire_at: null,
        path: '/gitlab-org/gitlab/-/jobs/62411447/artifacts/download',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411447/artifacts/browse',
      },
      {
        name: 'dependency_scanning',
        expired: null,
        expire_at: null,
        path: '/gitlab-org/gitlab/-/jobs/62411443/artifacts/download',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411443/artifacts/browse',
      },
      {
        name: 'compile-assets',
        expired: false,
        expire_at: '2018-04-18T14:12:07.638Z',
        path: '/gitlab-org/gitlab/-/jobs/62411334/artifacts/download',
        keep_path: '/gitlab-org/gitlab/-/jobs/62411334/artifacts/keep',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411334/artifacts/browse',
      },
      {
        name: 'setup-test-env',
        expired: false,
        expire_at: '2018-04-18T14:10:27.024Z',
        path: '/gitlab-org/gitlab/-/jobs/62411336/artifacts/download',
        keep_path: '/gitlab-org/gitlab/-/jobs/62411336/artifacts/keep',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411336/artifacts/browse',
      },
      {
        name: 'retrieve-tests-metadata',
        expired: false,
        expire_at: '2018-05-12T14:06:35.926Z',
        path: '/gitlab-org/gitlab/-/jobs/62411333/artifacts/download',
        keep_path: '/gitlab-org/gitlab/-/jobs/62411333/artifacts/keep',
        browse_path: '/gitlab-org/gitlab/-/jobs/62411333/artifacts/browse',
      },
    ],
    manual_actions: [
      {
        name: 'package-and-qa',
        path: '/gitlab-org/gitlab/-/jobs/62411330/play',
        playable: true,
      },
      {
        name: 'review-docs-deploy',
        path: '/gitlab-org/gitlab/-/jobs/62411332/play',
        playable: true,
      },
    ],
  },
  ref: {
    name: 'master',
    path: '/gitlab-org/gitlab/commits/master',
    tag: false,
    branch: true,
  },
  commit: {
    id: 'e6a2885c503825792cb8a84a8731295e361bd059',
    short_id: 'e6a2885c',
    title: "Merge branch 'ce-to-ee-2018-04-11' into 'master'",
    created_at: '2018-04-11T14:04:39.000Z',
    parent_ids: [
      '5d9b5118f6055f72cff1a82b88133609912f2c1d',
      '6fdc6ee76a8062fe41b1a33f7c503334a6ebdc02',
    ],
    message:
      "Merge branch 'ce-to-ee-2018-04-11' into 'master'\n\nCE upstream - 2018-04-11 12:26 UTC\n\nSee merge request gitlab-org/gitlab-ee!5326",
    author_name: 'Rémy Coutable',
    author_email: 'remy@rymai.me',
    authored_date: '2018-04-11T14:04:39.000Z',
    committer_name: 'Rémy Coutable',
    committer_email: 'remy@rymai.me',
    committed_date: '2018-04-11T14:04:39.000Z',
    author: {
      id: 128633,
      name: 'Rémy Coutable',
      username: 'rymai',
      state: 'active',
      avatar_url:
        'https://secure.gravatar.com/avatar/263da227929cc0035cb0eba512bcf81a?s=80\u0026d=identicon',
      web_url: 'https://gitlab.com/rymai',
      path: '/rymai',
    },
    author_gravatar_url:
      'https://secure.gravatar.com/avatar/263da227929cc0035cb0eba512bcf81a?s=80\u0026d=identicon',
    commit_url:
      'https://gitlab.com/gitlab-org/gitlab/commit/e6a2885c503825792cb8a84a8731295e361bd059',
    commit_path: '/gitlab-org/gitlab/commit/e6a2885c503825792cb8a84a8731295e361bd059',
  },
  cancel_path: '/gitlab-org/gitlab/pipelines/20333396/cancel',
  triggered_by: null,
  triggered: [],
};

export const stageReply = {
  name: 'deploy',
  title: 'deploy: running',
  latest_statuses: [
    {
      id: 928,
      name: 'stop staging',
      started: false,
      build_path: '/twitter/flight/-/jobs/928',
      cancel_path: '/twitter/flight/-/jobs/928/cancel',
      playable: false,
      created_at: '2018-04-04T20:02:02.728Z',
      updated_at: '2018-04-04T20:02:02.766Z',
      status: {
        icon: 'status_pending',
        text: 'pending',
        label: 'pending',
        group: 'pending',
        tooltip: 'pending',
        has_details: true,
        details_path: '/twitter/flight/-/jobs/928',
        favicon:
          '/assets/ci_favicons/dev/favicon_status_pending-db32e1faf94b9f89530ac519790920d1f18ea8f6af6cd2e0a26cd6840cacf101.ico',
        action: {
          icon: 'cancel',
          title: 'Cancel',
          path: '/twitter/flight/-/jobs/928/cancel',
          method: 'post',
        },
      },
    },
    {
      id: 926,
      name: 'production',
      started: false,
      build_path: '/twitter/flight/-/jobs/926',
      retry_path: '/twitter/flight/-/jobs/926/retry',
      play_path: '/twitter/flight/-/jobs/926/play',
      playable: true,
      created_at: '2018-04-04T20:00:57.202Z',
      updated_at: '2018-04-04T20:11:13.110Z',
      status: {
        icon: 'status_canceled',
        text: 'canceled',
        label: 'manual play action',
        group: 'canceled',
        tooltip: 'canceled',
        has_details: true,
        details_path: '/twitter/flight/-/jobs/926',
        favicon:
          '/assets/ci_favicons/dev/favicon_status_canceled-5491840b9b6feafba0bc599cbd49ee9580321dc809683856cf1b0d51532b1af6.ico',
        action: {
          icon: 'play',
          title: 'Play',
          path: '/twitter/flight/-/jobs/926/play',
          method: 'post',
        },
      },
    },
    {
      id: 217,
      name: 'staging',
      started: '2018-03-07T08:41:46.234Z',
      build_path: '/twitter/flight/-/jobs/217',
      retry_path: '/twitter/flight/-/jobs/217/retry',
      playable: false,
      created_at: '2018-03-07T14:41:58.093Z',
      updated_at: '2018-03-07T14:41:58.093Z',
      status: {
        icon: 'status_success',
        text: 'passed',
        label: 'passed',
        group: 'success',
        tooltip: 'passed',
        has_details: true,
        details_path: '/twitter/flight/-/jobs/217',
        favicon:
          '/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico',
        action: {
          icon: 'retry',
          title: 'Retry',
          path: '/twitter/flight/-/jobs/217/retry',
          method: 'post',
        },
      },
    },
  ],
  status: {
    icon: 'status_running',
    text: 'running',
    label: 'running',
    group: 'running',
    tooltip: 'running',
    has_details: true,
    details_path: '/twitter/flight/pipelines/13#deploy',
    favicon:
      '/assets/ci_favicons/dev/favicon_status_running-c3ad2fc53ea6079c174e5b6c1351ff349e99ec3af5a5622fb77b0fe53ea279c1.ico',
  },
  path: '/twitter/flight/pipelines/13#deploy',
  dropdown_path: '/twitter/flight/pipelines/13/stage.json?stage=deploy',
};