summaryrefslogtreecommitdiff
path: root/spec/frontend/releases/mock_data.js
blob: bd5fc86275e87f1a8f936dd1d471332e35bfaab4 (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
export const milestones = [
  {
    id: 50,
    iid: 2,
    project_id: 18,
    title: '13.6',
    description: 'The 13.6 milestone!',
    state: 'active',
    created_at: '2019-08-27T17:22:38.280Z',
    updated_at: '2019-08-27T17:22:38.280Z',
    due_date: '2019-09-19',
    start_date: '2019-08-31',
    web_url: 'http://0.0.0.0:3001/root/release-test/-/milestones/2',
    issue_stats: {
      total: 33,
      closed: 19,
    },
  },
  {
    id: 49,
    iid: 1,
    project_id: 18,
    title: '13.5',
    description: 'The 13.5 milestone!',
    state: 'active',
    created_at: '2019-08-26T17:55:48.643Z',
    updated_at: '2019-08-26T17:55:48.643Z',
    due_date: '2019-10-11',
    start_date: '2019-08-19',
    web_url: 'http://0.0.0.0:3001/root/release-test/-/milestones/1',
    issue_stats: {
      total: 21,
      closed: 3,
    },
  },
];

export const release = {
  name: 'New release',
  tag_name: 'v0.3',
  tag_path: '/root/release-test/-/tags/v0.3',
  description: 'A super nice release!',
  description_html: '<p data-sourcepos="1:1-1:21" dir="auto">A super nice release!</p>',
  created_at: '2019-08-26T17:54:04.952Z',
  released_at: '2019-08-26T17:54:04.807Z',
  author: {
    id: 1,
    name: 'Administrator',
    username: 'root',
    state: 'active',
    avatar_url: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
    web_url: 'http://0.0.0.0:3001/root',
  },
  commit: {
    id: 'c22b0728d1b465f82898c884d32b01aa642f96c1',
    short_id: 'c22b0728',
    created_at: '2019-08-26T17:47:07.000Z',
    parent_ids: [],
    title: 'Initial commit',
    message: 'Initial commit',
    author_name: 'Administrator',
    author_email: 'admin@example.com',
    authored_date: '2019-08-26T17:47:07.000Z',
    committer_name: 'Administrator',
    committer_email: 'admin@example.com',
    committed_date: '2019-08-26T17:47:07.000Z',
  },
  commit_path: '/root/release-test/commit/c22b0728d1b465f82898c884d32b01aa642f96c1',
  upcoming_release: false,
  milestones,
  evidences: [
    {
      filepath:
        'https://20592.qa-tunnel.gitlab.info/root/test-deployments/-/releases/v1.1.2/evidences/1.json',
      sha: 'fb3a125fd69a0e5048ebfb0ba43eb32ce4911520dd8d',
      collected_at: '2018-10-19 15:43:20 +0200',
    },
    {
      filepath:
        'https://20592.qa-tunnel.gitlab.info/root/test-deployments/-/releases/v1.1.2/evidences/2.json',
      sha: '6ebd17a66e6a861175735416e49cf677678029805712dd71bb805c609e2d9108',
      collected_at: '2018-10-19 15:43:20 +0200',
    },
    {
      filepath:
        'https://20592.qa-tunnel.gitlab.info/root/test-deployments/-/releases/v1.1.2/evidences/3.json',
      sha: '2f65beaf275c3cb4b4e24fb01d481cc475d69c957830833f15338384816b5cba',
      collected_at: '2018-10-19 15:43:20 +0200',
    },
  ],
  assets: {
    count: 5,
    sources: [
      {
        format: 'zip',
        url: 'http://0.0.0.0:3001/root/release-test/-/archive/v0.3/release-test-v0.3.zip',
      },
      {
        format: 'tar.gz',
        url: 'http://0.0.0.0:3001/root/release-test/-/archive/v0.3/release-test-v0.3.tar.gz',
      },
      {
        format: 'tar.bz2',
        url: 'http://0.0.0.0:3001/root/release-test/-/archive/v0.3/release-test-v0.3.tar.bz2',
      },
      {
        format: 'tar',
        url: 'http://0.0.0.0:3001/root/release-test/-/archive/v0.3/release-test-v0.3.tar',
      },
    ],
    links: [
      {
        id: 1,
        name: 'my link',
        url: 'https://google.com',
        direct_asset_url: 'https://redirected.google.com',
        external: true,
      },
      {
        id: 2,
        name: 'my second link',
        url:
          'https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/artifacts/v11.6.0-rc4/download?job=rspec-mysql+41%2F50',
        direct_asset_url: 'https://redirected.google.com',
        external: false,
      },
    ],
  },
  _links: {
    self: 'http://0.0.0.0:3001/root/release-test/-/releases/v0.3',
    edit_url: 'http://0.0.0.0:3001/root/release-test/-/releases/v0.3/edit',
  },
};