113 lines
3.8 KiB
Text
113 lines
3.8 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`releases/util.js convertGraphQLResponse matches snapshot 1`] = `
|
|
Object {
|
|
"data": Array [
|
|
Object {
|
|
"_links": Object {
|
|
"editUrl": "http://0.0.0.0:3000/root/release-test/-/releases/v5.10/edit",
|
|
"issuesUrl": null,
|
|
"mergeRequestsUrl": null,
|
|
"self": "http://0.0.0.0:3000/root/release-test/-/releases/v5.10",
|
|
"selfUrl": "http://0.0.0.0:3000/root/release-test/-/releases/v5.10",
|
|
},
|
|
"assets": Object {
|
|
"count": 7,
|
|
"links": Array [
|
|
Object {
|
|
"directAssetUrl": "http://0.0.0.0:3000/root/release-test/-/releases/v5.32/permanent/path/to/runbook",
|
|
"external": true,
|
|
"id": "gid://gitlab/Releases::Link/69",
|
|
"linkType": "other",
|
|
"name": "An example link",
|
|
"url": "https://example.com/link",
|
|
},
|
|
Object {
|
|
"directAssetUrl": "https://example.com/package",
|
|
"external": true,
|
|
"id": "gid://gitlab/Releases::Link/68",
|
|
"linkType": "package",
|
|
"name": "An example package link",
|
|
"url": "https://example.com/package",
|
|
},
|
|
Object {
|
|
"directAssetUrl": "https://example.com/image",
|
|
"external": true,
|
|
"id": "gid://gitlab/Releases::Link/67",
|
|
"linkType": "image",
|
|
"name": "An example image",
|
|
"url": "https://example.com/image",
|
|
},
|
|
],
|
|
"sources": Array [
|
|
Object {
|
|
"format": "zip",
|
|
"url": "http://0.0.0.0:3000/root/release-test/-/archive/v5.10/release-test-v5.10.zip",
|
|
},
|
|
Object {
|
|
"format": "tar.gz",
|
|
"url": "http://0.0.0.0:3000/root/release-test/-/archive/v5.10/release-test-v5.10.tar.gz",
|
|
},
|
|
Object {
|
|
"format": "tar.bz2",
|
|
"url": "http://0.0.0.0:3000/root/release-test/-/archive/v5.10/release-test-v5.10.tar.bz2",
|
|
},
|
|
Object {
|
|
"format": "tar",
|
|
"url": "http://0.0.0.0:3000/root/release-test/-/archive/v5.10/release-test-v5.10.tar",
|
|
},
|
|
],
|
|
},
|
|
"author": Object {
|
|
"avatarUrl": "/uploads/-/system/user/avatar/1/avatar.png",
|
|
"username": "root",
|
|
"webUrl": "http://0.0.0.0:3000/root",
|
|
},
|
|
"commit": Object {
|
|
"shortId": "92e7ea2e",
|
|
"title": "Testing a change.",
|
|
},
|
|
"commitPath": "http://0.0.0.0:3000/root/release-test/-/commit/92e7ea2ee4496fe0d00ff69830ba0564d3d1e5a7",
|
|
"descriptionHtml": "<p data-sourcepos=\\"1:1-1:24\\" dir=\\"auto\\">This is version <strong>1.0</strong>!</p>",
|
|
"evidences": Array [
|
|
Object {
|
|
"collectedAt": "2020-08-21T20:15:19Z",
|
|
"filepath": "http://0.0.0.0:3000/root/release-test/-/releases/v5.10/evidences/34.json",
|
|
"sha": "22bde8e8b93d870a29ddc339287a1fbb598f45d1396d",
|
|
},
|
|
],
|
|
"milestones": Array [
|
|
Object {
|
|
"description": "",
|
|
"id": "gid://gitlab/Milestone/60",
|
|
"issueStats": Object {
|
|
"closed": 0,
|
|
"total": 0,
|
|
},
|
|
"stats": undefined,
|
|
"title": "12.4",
|
|
"webPath": undefined,
|
|
"webUrl": "/root/release-test/-/milestones/2",
|
|
},
|
|
Object {
|
|
"description": "Milestone 12.3",
|
|
"id": "gid://gitlab/Milestone/59",
|
|
"issueStats": Object {
|
|
"closed": 1,
|
|
"total": 2,
|
|
},
|
|
"stats": undefined,
|
|
"title": "12.3",
|
|
"webPath": undefined,
|
|
"webUrl": "/root/release-test/-/milestones/1",
|
|
},
|
|
],
|
|
"name": "Release 1.0",
|
|
"releasedAt": "2020-08-21T20:15:18Z",
|
|
"tagName": "v5.10",
|
|
"tagPath": "/root/release-test/-/tags/v5.10",
|
|
"upcomingRelease": false,
|
|
},
|
|
],
|
|
}
|
|
`;
|