Coverage for tests/routers/properties_resp.py: 100%
10 statements
« prev ^ index » next coverage.py v7.9.1, created at 2025-06-25 05:47 +0000
« prev ^ index » next coverage.py v7.9.1, created at 2025-06-25 05:47 +0000
1local_props = {
2 "uuid": "cde7624a-3b4d-4947-baac-1d45d8f55f47",
3 "action": "PropertiesRouter",
4 "result": {
5 "totalCount": 2,
6 "data": [
7 {
8 "category": "Misc",
9 "description": "",
10 "islocal": 1,
11 "value": "[{\"user\":\"mmm_agent\",\"passwd\":\"1quf82swe3\",\"port\":\"7014\"},{\"user\":\"mmm_agent\",\"passwd\":\"1quf82swe3\",\"port\":\"7031\"}]",
12 "label": "zMySQLConnectionString",
13 "valueAsString": "[{\"user\":\"mmm_agent\",\"passwd\":\"1quf82swe3\",\"port\":\"7014\"},{\"user\":\"mmm_agent\",\"passwd\":\"1quf82swe3\",\"port\":\"7031\"}]",
14 "id": "zMySQLConnectionString",
15 "path": "/Server/TEST/devices/test.example.com",
16 "type": "multilinecredentials",
17 "options": []
18 },
19 {
20 "category": "Windows",
21 "description": "Authentication domain trusted by zWinRMUser",
22 "islocal": 1,
23 "value": "Westeros",
24 "label": "Windows Trusted Realm",
25 "valueAsString": "Westeros",
26 "id": "zWinTrustedRealm",
27 "path": "/Server/TEST/devices/test.example.com",
28 "type": "string",
29 "options": []
30 }
31 ],
32 "success": True
33 },
34 "tid": 1,
35 "type": "rpc",
36 "method": "getZenProperties"
37}
39get_prop = {
40 "uuid": "cde7624a-3b4d-4947-baac-1d45d8f55f47",
41 "action": "PropertiesRouter",
42 "result": {
43 "totalCount": 1,
44 "data": [
45 {
46 "category": "Windows",
47 "description": "Authentication domain trusted by zWinRMUser",
48 "islocal": 0,
49 "value": "",
50 "label": "Windows Trusted Realm",
51 "valueAsString": "",
52 "id": "zWinTrustedRealm",
53 "path": "/",
54 "type": "string",
55 "options": []
56 }
57 ],
58 "success": True
59 },
60 "tid": 1,
61 "type": "rpc",
62 "method": "getZenProperties"
63}
65get_local_prop = {
66 "uuid": "cde7624a-3b4d-4947-baac-1d45d8f55f47",
67 "action": "PropertiesRouter",
68 "result": {
69 "totalCount": 1,
70 "data": [
71 {
72 "category": "Windows",
73 "description": "Authentication domain trusted by zWinRMUser",
74 "islocal": 1,
75 "value": "Westeros",
76 "label": "Windows Trusted Realm",
77 "valueAsString": "Westeros",
78 "id": "zWinTrustedRealm",
79 "path": "/Server/TEST/devices/test.example.com",
80 "type": "string",
81 "options": []
82 }
83 ],
84 "success": True
85 },
86 "tid": 1,
87 "type": "rpc",
88 "method": "getZenProperties"
89}
91props = {
92 "uuid": "bf7a06f5-e5c6-4864-bcc9-7b9e615a800f",
93 "action": "PropertiesRouter",
94 "result": {
95 "totalCount": 4,
96 "data": [
97 {
98 "category": "Misc",
99 "description": "",
100 "islocal": 0,
101 "value": 300,
102 "label": "zAggregatorCollectionInterval",
103 "valueAsString": 300,
104 "id": "zAggregatorCollectionInterval",
105 "path": "/",
106 "type": "int",
107 "options": []
108 },
109 {
110 "category": "Misc",
111 "description": "Indicates whether to log changes.",
112 "islocal": 0,
113 "value": False,
114 "label": "Log Collector Changes?",
115 "valueAsString": False,
116 "id": "zCollectorLogChanges",
117 "path": "/",
118 "type": "boolean",
119 "options": []
120 },
121 {
122 "category": "Misc",
123 "description": "",
124 "islocal": 0,
125 "value": "",
126 "label": "zMySQLConnectionString",
127 "valueAsString": "",
128 "id": "zMySQLConnectionString",
129 "path": "/",
130 "type": "multilinecredentials",
131 "options": []
132 },
133 {
134 "category": "Windows",
135 "description": "Authentication domain trusted by zWinRMUser",
136 "islocal": 0,
137 "value": "",
138 "label": "Windows Trusted Realm",
139 "valueAsString": "",
140 "id": "zWinTrustedRealm",
141 "path": "/",
142 "type": "string",
143 "options": []
144 }
145 ],
146 "success": True
147 },
148 "tid": 1,
149 "type": "rpc",
150 "method": "getZenProperties"
151}
153custom_props = {
154 "uuid": "0a65ae37-76d0-442e-bc31-623b453c9e17",
155 "action": "PropertiesRouter",
156 "result": {
157 "totalCount": 1,
158 "data": [
159 {
160 "islocal": 0,
161 "value": "1900/01/01 00:00:00 US/Central",
162 "label": None,
163 "valueAsString": "1900/01/01 00:00:00 US/Central",
164 "id": "cDateTest",
165 "path": "/",
166 "type": "date",
167 "options": []
168 }
169 ],
170 "success": True
171 },
172 "tid": 1,
173 "type": "rpc",
174 "method": "getCustomProperties"
175}
177custom_local_props = {
178 "uuid": "0a65ae37-76d0-442e-bc31-623b453c9e17",
179 "action": "PropertiesRouter",
180 "result": {
181 "totalCount": 1,
182 "data": [
183 {
184 "islocal": 1,
185 "value": "2017/12/19 00:00:00 US/Pacific",
186 "label": None,
187 "valueAsString": "2017/12/19 00:00:00 US/Pacific",
188 "id": "cDateTest",
189 "path": "/Server/TEST/devices/test.example.com",
190 "type": "date",
191 "options": []
192 }
193 ],
194 "success": True
195 },
196 "tid": 1,
197 "type": "rpc",
198 "method": "getCustomProperties"
199}
201set_prop = {
202 "uuid": "09ebdcae-5000-424a-a24a-955173feb650",
203 "action": "PropertiesRouter",
204 "result": {
205 "data": {
206 "path": "/Server/TEST/devices/test.example.com",
207 "type": "string",
208 "options": [],
209 "value": "Westeros",
210 "valueAsString": "Westeros"
211 },
212 "success": True
213 },
214 "tid": 1,
215 "type": "rpc",
216 "method": "setZenProperty"
217}
219delete_prop = {
220 "uuid": "980dd3fa-e425-4bdb-b362-6fea72f4d211",
221 "action": "PropertiesRouter",
222 "result": {
223 "data": None,
224 "success": True
225 },
226 "tid": 1,
227 "type": "rpc",
228 "method": "deleteZenProperty"
229}
231set_custom_prop = {
232 "uuid": "be1c91bb-055e-47a2-bff4-08ca3a049a0a",
233 "action": "PropertiesRouter",
234 "result": {
235 "data": {
236 "path": "/Server/TEST/devices/test.example.com",
237 "type": "date",
238 "options": [],
239 "value": "2017/12/19 00:00:00 US/Pacific",
240 "valueAsString": "2017/12/19 00:00:00 US/Pacific"
241 },
242 "success": True
243 },
244 "tid": 1,
245 "type": "rpc",
246 "method": "setZenProperty"
247}
249update = {
250 "uuid": "62bc1c3b-f7f3-41b1-89af-5b0720d089cc",
251 "action": "PropertiesRouter",
252 "result": {
253 "msg": "Property updated.",
254 "success": True
255 },
256 "tid": 1,
257 "type": "rpc",
258 "method": "update"
259}