Skip to content

Commit 4218230

Browse files
committed
apply linter to sw updates mocks
1 parent d895a0a commit 4218230

File tree

1 file changed

+71
-70
lines changed

1 file changed

+71
-70
lines changed

test/e2e/cypress/fixtures/software_updates_mocks.js

Lines changed: 71 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,111 @@
11
const mockData = {
22
relevant_patches: [
33
{
4-
date: "2024-02-27",
5-
advisory_name: "SUSE-15-SP4-2024-630",
6-
advisory_type: "bugfix",
7-
advisory_status: "stable",
4+
date: '2024-02-27',
5+
advisory_name: 'SUSE-15-SP4-2024-630',
6+
advisory_type: 'bugfix',
7+
advisory_status: 'stable',
88
id: 4182,
9-
advisory_synopsis: "Recommended update for cloud-netconfig",
10-
update_date: "2024-02-27"
9+
advisory_synopsis: 'Recommended update for cloud-netconfig',
10+
update_date: '2024-02-27',
1111
},
1212
{
13-
date: "2024-02-26",
14-
advisory_name: "SUSE-15-SP4-2024-619",
15-
advisory_type: "security_advisory",
16-
advisory_status: "stable",
13+
date: '2024-02-26',
14+
advisory_name: 'SUSE-15-SP4-2024-619',
15+
advisory_type: 'security_advisory',
16+
advisory_status: 'stable',
1717
id: 4174,
18-
advisory_synopsis: "important: Security update for java-1_8_0-ibm",
19-
update_date: "2024-02-26"
20-
}
18+
advisory_synopsis: 'important: Security update for java-1_8_0-ibm',
19+
update_date: '2024-02-26',
20+
},
2121
],
2222
upgradable_packages: [
2323
{
24-
name: "elixir",
25-
arch: "x86_64",
26-
from_version: "1.15.7",
27-
from_release: "3",
28-
from_epoch: "0",
29-
to_version: "1.16.2",
30-
to_release: "1",
31-
to_epoch: "0",
32-
to_package_id: 92348112636
24+
name: 'elixir',
25+
arch: 'x86_64',
26+
from_version: '1.15.7',
27+
from_release: '3',
28+
from_epoch: '0',
29+
to_version: '1.16.2',
30+
to_release: '1',
31+
to_epoch: '0',
32+
to_package_id: 92348112636,
3333
},
3434
{
35-
name: "systemd",
36-
arch: "x86_64",
37-
from_version: "254",
38-
from_release: "1",
39-
from_epoch: "",
40-
to_version: "255",
41-
to_release: "1",
42-
to_epoch: "0",
43-
to_package_id: 8912349843
44-
}
35+
name: 'systemd',
36+
arch: 'x86_64',
37+
from_version: '254',
38+
from_release: '1',
39+
from_epoch: '',
40+
to_version: '255',
41+
to_release: '1',
42+
to_epoch: '0',
43+
to_package_id: 8912349843,
44+
},
4545
],
4646
errata_details: {
47-
type: "security_advisory",
48-
synopsis: "important: Security update for java-1_8_0-ibm",
49-
issue_date: "2024-02-27",
50-
update_date: "2024-02-27",
51-
last_modified_date: "2024-02-27",
52-
advisory_status: "stable",
47+
type: 'security_advisory',
48+
synopsis: 'important: Security update for java-1_8_0-ibm',
49+
issue_date: '2024-02-27',
50+
update_date: '2024-02-27',
51+
last_modified_date: '2024-02-27',
52+
advisory_status: 'stable',
5353
reboot_suggested: true,
5454
restart_suggested: true,
5555
id: 2,
5656
release: 3,
57-
vendor_advisory: "IBM",
58-
product: "IBM® Semeru Runtime™ Certified Edition",
59-
errataFrom: "SUSE",
60-
topic: "Java",
61-
description: "Minor security bug fixes",
62-
references: "N.A.",
63-
notes: "N.A.",
64-
solution: "N.A."
57+
vendor_advisory: 'IBM',
58+
product: 'IBM® Semeru Runtime™ Certified Edition',
59+
errataFrom: 'SUSE',
60+
topic: 'Java',
61+
description: 'Minor security bug fixes',
62+
references: 'N.A.',
63+
notes: 'N.A.',
64+
solution: 'N.A.',
6565
},
6666
cves: [
67-
"SUSE-15-SP4-2024-630",
68-
"SUSE-15-SP4-2024-234",
69-
"SUSE-15-SP4-2024-990"
67+
'SUSE-15-SP4-2024-630',
68+
'SUSE-15-SP4-2024-234',
69+
'SUSE-15-SP4-2024-990',
7070
],
7171
bugzilla_fixes: {
72-
"1210660": "VUL-0: CVE-2023-2137: sqlite2,sqlite3: Heap buffer overflow in sqlite"
72+
1210660:
73+
'VUL-0: CVE-2023-2137: sqlite2,sqlite3: Heap buffer overflow in sqlite',
7374
},
7475
affected_packages: [
7576
{
76-
name: "elixir",
77-
version: "6.9.7",
78-
release: "2",
79-
arch_label: "x86_64",
80-
epoch: "0"
77+
name: 'elixir',
78+
version: '6.9.7',
79+
release: '2',
80+
arch_label: 'x86_64',
81+
epoch: '0',
8182
},
8283
{
83-
name: "systemd",
84-
version: "6.9.7",
85-
release: "2",
86-
arch_label: "x86_64",
87-
epoch: "0"
88-
}
84+
name: 'systemd',
85+
version: '6.9.7',
86+
release: '2',
87+
arch_label: 'x86_64',
88+
epoch: '0',
89+
},
8990
],
9091
affected_systems: [
9192
{
92-
name: "vmdrbddev01"
93+
name: 'vmdrbddev01',
9394
},
9495
{
95-
name: "vmdrbddev02"
96-
}
96+
name: 'vmdrbddev02',
97+
},
9798
],
9899
errors: {
99100
host_not_found: {
100101
errors: [
101102
{
102-
detail: "No system ID was found on SUSE Manager for this host.",
103-
title: "Unprocessable Entity"
104-
}
105-
]
106-
}
107-
}
103+
detail: 'No system ID was found on SUSE Manager for this host.',
104+
title: 'Unprocessable Entity',
105+
},
106+
],
107+
},
108+
},
108109
};
109110

110111
export const getSoftwareUpdatesList = () => ({

0 commit comments

Comments
 (0)