Skip to content

Commit 1569715

Browse files
Quentamestast1
andauthored
Populated test data from DSM 5.2-5967 Update 9 (#37)
Co-authored-by: aaska <aaska@users.noreply.github.com> Co-authored-by: Stanislav Toropovskyi <48147949+stast1@users.noreply.github.com>
1 parent 4d9897a commit 1569715

File tree

6 files changed

+415
-10
lines changed

6 files changed

+415
-10
lines changed
Lines changed: 117 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,120 @@
11
# -*- coding: utf-8 -*-
22
"""DSM 5 SYNO.Core.System.Utilization data."""
33

4-
DSM_5_CORE_UTILIZATION = None
4+
DSM_5_CORE_UTILIZATION = {
5+
"data": {
6+
"cpu": {
7+
"15min_load": 53,
8+
"1min_load": 57,
9+
"5min_load": 56,
10+
"device": "System",
11+
"other_load": 63,
12+
"system_load": 10,
13+
"user_load": 27,
14+
},
15+
"disk": {
16+
"disk": [
17+
{
18+
"device": "sda",
19+
"display_name": "Disk 1",
20+
"read_access": 21,
21+
"read_byte": 645529,
22+
"type": "internal",
23+
"utilization": 46,
24+
"write_access": 4,
25+
"write_byte": 86220,
26+
},
27+
{
28+
"device": "sdb",
29+
"display_name": "Disk 2",
30+
"read_access": 23,
31+
"read_byte": 711338,
32+
"type": "internal",
33+
"utilization": 33,
34+
"write_access": 4,
35+
"write_byte": 95641,
36+
},
37+
{
38+
"device": "sdc",
39+
"display_name": "Disk 3",
40+
"read_access": 21,
41+
"read_byte": 786841,
42+
"type": "internal",
43+
"utilization": 31,
44+
"write_access": 5,
45+
"write_byte": 99874,
46+
},
47+
{
48+
"device": "sdd",
49+
"display_name": "Disk 4",
50+
"read_access": 21,
51+
"read_byte": 729907,
52+
"type": "internal",
53+
"utilization": 32,
54+
"write_access": 4,
55+
"write_byte": 76663,
56+
},
57+
{
58+
"device": "sdq",
59+
"display_name": "USB Disk 1",
60+
"read_access": 0,
61+
"read_byte": 0,
62+
"type": "usb",
63+
"utilization": 0,
64+
"write_access": 0,
65+
"write_byte": 0,
66+
},
67+
],
68+
"total": {
69+
"device": "total",
70+
"read_access": 86,
71+
"read_byte": 2873615,
72+
"utilization": 28,
73+
"write_access": 17,
74+
"write_byte": 358398,
75+
},
76+
},
77+
"memory": {
78+
"avail_real": 8188,
79+
"avail_swap": 1933436,
80+
"buffer": 3700,
81+
"cached": 25636,
82+
"device": "Memory",
83+
"memory_size": 131072,
84+
"real_usage": 68,
85+
"si_disk": 5,
86+
"so_disk": 3,
87+
"swap_usage": 7,
88+
"total_real": 118464,
89+
"total_swap": 2097080,
90+
},
91+
"network": [
92+
{"device": "total", "rx": 1680, "tx": 553},
93+
{"device": "eth0", "rx": 1680, "tx": 553},
94+
],
95+
"space": {
96+
"lun": [],
97+
"total": {
98+
"device": "total",
99+
"read_access": 261,
100+
"read_byte": 1069875,
101+
"utilization": 100,
102+
"write_access": 51,
103+
"write_byte": 208896,
104+
},
105+
"volume": [
106+
{
107+
"device": "md2",
108+
"display_name": "volume1",
109+
"read_access": 261,
110+
"read_byte": 1069875,
111+
"utilization": 100,
112+
"write_access": 51,
113+
"write_byte": 208896,
114+
}
115+
],
116+
},
117+
"time": 1586592505,
118+
},
119+
"success": True,
120+
}
Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,35 @@
11
# -*- coding: utf-8 -*-
22
"""DSM 5 SYNO.DSM.Info data."""
3-
from tests.const import SERIAL # pylint: disable=unused-import
43

4+
DSM_5_DSM_INFORMATION_DS410J = {
5+
"data": {
6+
"codepage": "enu",
7+
"model": "DS410j",
8+
"ram": 128,
9+
"serial": "A3G7N00628",
10+
"temperature": 52,
11+
"temperature_warn": False,
12+
"time": "Mon Apr 13 18:26:27 2020",
13+
"uptime": 7077254,
14+
"version": "5967",
15+
"version_string": "DSM 5.2-5967 Update 9",
16+
},
17+
"success": True,
18+
}
519

6-
DSM_5_DSM_INFORMATION = None
20+
DSM_5_DSM_INFORMATION_DS3615XS = {
21+
"data": {
22+
"codepage": "rus",
23+
"model": "DS3615xs",
24+
"ram": 6144,
25+
"serial": "B3J4N01003",
26+
"temperature": 40,
27+
"time": "Sat Apr 25 20:21:57 2020",
28+
"uptime": 3897,
29+
"version": "5967",
30+
"version_string": "DSM 5.2-5967 Update 9",
31+
},
32+
"success": True,
33+
}
34+
35+
DSM_5_DSM_INFORMATION = DSM_5_DSM_INFORMATION_DS3615XS

0 commit comments

Comments
 (0)