You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Clarifications on Subscribe Testclasses
* Improve gitignore content
* Improve UnitTests of path handling
* Add Testcases UnitTests to linting and formatting
* Add UnitTests for Telemetry Once
* Added telemetry_once.CountUpdatePaths
* Changes to Telemetry Once
* Check always that the Updates belong to the subscribed path
* Add `CountUpdatePaths` testclass
* Rename `CheckLeafs` to `CheckLeafsFromModel`
* Changes to Telemetry Sample
* Check always that the Updates belong to the subscribed path
* Rename `CountUpdates` to `CountUpdatePaths`
* Rename `CheckLeafs` to `CheckLeafsFromModel`
* Update sample Test Files
* Update Demo
* Reviewed CheckLeafsFromModel
From telemetry_once and telemetry_sample
Also, added UnitTests
* Correct arg in docstring
* Increase Version, as some Testclasses have changed
"test_name": "Bad Compare mgmt Interface state JSON",
124
+
"test_name": "FAIL Compare mgmt Interface state JSON",
109
125
"success": false,
110
126
"duration_sec": 0,
111
127
"results": [
112
128
{
113
129
"test_case": "testGetCompare",
114
130
"test_class": "GetCompare",
115
131
"test_module": "oc_config_validate.testcases",
116
-
"start_time_sec": 1681289913,
132
+
"start_time_sec": 1755724163,
117
133
"duration_sec": 0,
118
134
"result": "FAIL",
119
-
"log": "\n Traceback (most recent call last):\n File \"/home/itamayo/gnxi/oc_config_validate/oc_config_validate/testbase.py\", line 56, in inner\n method(self, *args, **kw)\n File \"/home/itamayo/gnxi/oc_config_validate/oc_config_validate/testcases/get.py\", line 49, in testGetCompare\n self.assertTrue(cmp, diff)\nAssertionError: False is not true : key openconfig-interfaces:enabled: got 'True', wanted 'False'\n"
135
+
"log": "\n Traceback (most recent call last):\n File \"/home/joseignaciotamayo/gnxi/oc_config_validate/oc_config_validate/testbase.py\", line 55, in inner\n method(self, *args, **kw)\n File \"/home/joseignaciotamayo/gnxi/oc_config_validate/oc_config_validate/testcases/get.py\", line 49, in testGetCompare\n self.assertTrue(cmp, diff)\nAssertionError: False is not true : key openconfig-interfaces:enabled: got 'True', wanted 'False'\n"
120
136
}
121
137
]
122
138
},
123
139
{
124
-
"test_name": "Set Hostname",
140
+
"test_name": "Update Hostname",
125
141
"success": true,
126
142
"duration_sec": 2,
127
143
"results": [
128
144
{
129
145
"test_case": "testSetUpdate",
130
146
"test_class": "SetUpdate",
131
147
"test_module": "oc_config_validate.testcases",
132
-
"start_time_sec": 1681289913,
148
+
"start_time_sec": 1755724163,
133
149
"duration_sec": 2,
134
150
"result": "PASS",
135
151
"log": ""
@@ -145,55 +161,71 @@
145
161
"test_case": "testGetJsonCheckCompare",
146
162
"test_class": "GetJsonCheckCompare",
147
163
"test_module": "oc_config_validate.testcases",
148
-
"start_time_sec": 1681289915,
164
+
"start_time_sec": 1755724165,
149
165
"duration_sec": 0,
150
166
"result": "PASS",
151
167
"log": ""
152
168
}
153
169
]
154
170
},
155
171
{
156
-
"test_name": "Bad model to compare System config",
172
+
"test_name": "Replace System Config",
157
173
"success": true,
174
+
"duration_sec": 2,
175
+
"results": [
176
+
{
177
+
"test_case": "testSetReplace",
178
+
"test_class": "SetReplace",
179
+
"test_module": "oc_config_validate.testcases",
180
+
"start_time_sec": 1755724165,
181
+
"duration_sec": 2,
182
+
"result": "PASS",
183
+
"log": ""
184
+
}
185
+
]
186
+
},
187
+
{
188
+
"test_name": "FAIL Check System config - model",
189
+
"success": false,
158
190
"duration_sec": 0,
159
191
"results": [
160
192
{
161
193
"test_case": "testGetJsonCheckCompare",
162
194
"test_class": "GetJsonCheckCompare",
163
195
"test_module": "oc_config_validate.testcases",
164
-
"start_time_sec": 1681289915,
196
+
"start_time_sec": 1755724167,
165
197
"duration_sec": 0,
166
-
"result": "PASS",
167
-
"log": ""
198
+
"result": "FAIL",
199
+
"log": "\n Traceback (most recent call last):\n File \"/home/joseignaciotamayo/gnxi/oc_config_validate/oc_config_validate/testbase.py\", line 55, in inner\n method(self, *args, **kw)\n File \"/home/joseignaciotamayo/gnxi/oc_config_validate/oc_config_validate/testcases/get.py\", line 99, in testGetJsonCheckCompare\n self.assertModelXpath(self.model, self.xpath)\n File \"/home/joseignaciotamayo/gnxi/oc_config_validate/oc_config_validate/testbase.py\", line 471, in assertModelXpath\n self.assertTrue(\nAssertionError: False is not true : xpath system/config does not point to a container in model interfaces.openconfig_interfaces: 'openconfig_interfaces' object has no attribute 'system'\n"
168
200
}
169
201
]
170
202
},
171
203
{
172
-
"test_name": "Bad data to compare System config",
204
+
"test_name": "FAIL Compare System config - data",
173
205
"success": false,
174
206
"duration_sec": 0,
175
207
"results": [
176
208
{
177
209
"test_case": "testGetJsonCheckCompare",
178
210
"test_class": "GetJsonCheckCompare",
179
211
"test_module": "oc_config_validate.testcases",
180
-
"start_time_sec": 1681289915,
212
+
"start_time_sec": 1755724167,
181
213
"duration_sec": 0,
182
214
"result": "FAIL",
183
-
"log": "\n Traceback (most recent call last):\n File \"/home/itamayo/gnxi/oc_config_validate/oc_config_validate/testbase.py\", line 56, in inner\n method(self, *args, **kw)\n File \"/home/itamayo/gnxi/oc_config_validate/oc_config_validate/testcases/get.py\", line 108, in testGetJsonCheckCompare\n self.assertTrue(cmp, diff)\nAssertionError: False is not true : key openconfig-system:domain-name: got 'foo.bar.com', wanted 'la.la.la.com'\n"
215
+
"log": "\n Traceback (most recent call last):\n File \"/home/joseignaciotamayo/gnxi/oc_config_validate/oc_config_validate/testbase.py\", line 55, in inner\n method(self, *args, **kw)\n File \"/home/joseignaciotamayo/gnxi/oc_config_validate/oc_config_validate/testcases/get.py\", line 108, in testGetJsonCheckCompare\n self.assertTrue(cmp, diff)\nAssertionError: False is not true : key openconfig-system:domain-name: got 'foo.bar.com', wanted 'la.la.la.com'\n"
184
216
}
185
217
]
186
218
},
187
219
{
188
-
"test_name": "Set timezone with a valid Json blob",
220
+
"test_name": "Update timezone with a valid Json blob",
189
221
"success": true,
190
222
"duration_sec": 2,
191
223
"results": [
192
224
{
193
225
"test_case": "testJsonCheckSetUpdate",
194
226
"test_class": "JsonCheckSetUpdate",
195
227
"test_module": "oc_config_validate.testcases",
196
-
"start_time_sec": 1681289915,
228
+
"start_time_sec": 1755724167,
197
229
"duration_sec": 2,
198
230
"result": "PASS",
199
231
"log": ""
@@ -203,69 +235,117 @@
203
235
{
204
236
"test_name": "Compare Timezone",
205
237
"success": true,
206
-
"duration_sec": 0,
238
+
"duration_sec": 1,
207
239
"results": [
208
240
{
209
241
"test_case": "testGetJsonCheckCompare",
210
242
"test_class": "GetJsonCheckCompare",
211
243
"test_module": "oc_config_validate.testcases",
212
-
"start_time_sec": 1681289917,
213
-
"duration_sec": 0,
244
+
"start_time_sec": 1755724169,
245
+
"duration_sec": 1,
214
246
"result": "PASS",
215
247
"log": ""
216
248
}
217
249
]
218
250
},
219
251
{
220
-
"test_name": "Set timezone with a valid Json blob",
252
+
"test_name": "Update timezone with a valid Json blob",
221
253
"success": true,
222
254
"duration_sec": 2,
223
255
"results": [
224
256
{
225
257
"test_case": "testSetGetJsonCheck",
226
258
"test_class": "SetGetJsonCheck",
227
259
"test_module": "oc_config_validate.testcases",
228
-
"start_time_sec": 1681289917,
260
+
"start_time_sec": 1755724170,
229
261
"duration_sec": 2,
230
262
"result": "PASS",
231
263
"log": ""
232
264
}
233
265
]
234
266
},
235
267
{
236
-
"test_name": "Set timezone with a valid Json blob, and check it is Zurich",
268
+
"test_name": "Update timezone with a valid Json blob, and check it is Zurich",
237
269
"success": true,
238
270
"duration_sec": 2,
239
271
"results": [
240
272
{
241
273
"test_case": "testSetGetJsonCheckCompare",
242
274
"test_class": "SetGetJsonCheckCompare",
243
275
"test_module": "oc_config_validate.testcases",
244
-
"start_time_sec": 1681289919,
276
+
"start_time_sec": 1755724172,
245
277
"duration_sec": 2,
246
278
"result": "PASS",
247
279
"log": ""
248
280
}
249
281
]
250
282
},
251
283
{
252
-
"test_name": "Bad Set Clock Check State",
284
+
"test_name": "FAIL Update Clock Check State",
253
285
"success": false,
254
286
"duration_sec": 2,
255
287
"results": [
256
288
{
257
289
"test_case": "testSetConfigCheckState",
258
290
"test_class": "SetConfigCheckState",
259
291
"test_module": "oc_config_validate.testcases",
260
-
"start_time_sec": 1681289921,
292
+
"start_time_sec": 1755724174,
261
293
"duration_sec": 2,
262
294
"result": "FAIL",
263
-
"log": "\n Traceback (most recent call last):\n File \"/home/itamayo/gnxi/oc_config_validate/oc_config_validate/testcases/config_state.py\", line 72, in testSetConfigCheckState\n self._get_check_retry()\n File \"/home/itamayo/gnxi/oc_config_validate/oc_config_validate/testbase.py\", line 56, in inner\n method(self, *args, **kw)\n File \"/home/itamayo/gnxi/oc_config_validate/oc_config_validate/testcases/config_state.py\", line 64, in _get_check_retry\n self.assertTrue(cmp, diff)\nAssertionError: False is not true : key openconfig-system:timezone-name: got 'Europe/Stockholm', wanted 'Europe/Paris'\n"
295
+
"log": "\n Traceback (most recent call last):\n File \"/home/joseignaciotamayo/gnxi/oc_config_validate/oc_config_validate/testcases/config_state.py\", line 72, in testSetConfigCheckState\n self._get_check_retry()\n File \"/home/joseignaciotamayo/gnxi/oc_config_validate/oc_config_validate/testbase.py\", line 55, in inner\n method(self, *args, **kw)\n File \"/home/joseignaciotamayo/gnxi/oc_config_validate/oc_config_validate/testcases/config_state.py\", line 64, in _get_check_retry\n self.assertTrue(cmp, diff)\nAssertionError: False is not true : key openconfig-system:timezone-name: got 'Europe/Stockholm', wanted 'Europe/Paris'\n"
296
+
}
297
+
]
298
+
},
299
+
{
300
+
"test_name": "FAIL Replace System Config - model",
301
+
"success": false,
302
+
"duration_sec": 0,
303
+
"results": [
304
+
{
305
+
"test_case": "testJsonCheckSetReplace",
306
+
"test_class": "JsonCheckSetReplace",
307
+
"test_module": "oc_config_validate.testcases",
308
+
"start_time_sec": 1755724176,
309
+
"duration_sec": 0,
310
+
"result": "FAIL",
311
+
"log": "\n Traceback (most recent call last):\n File \"/home/joseignaciotamayo/gnxi/oc_config_validate/oc_config_validate/testcases/set.py\", line 120, in testJsonCheckSetReplace\n self.assertJsonModel(json.dumps(self.json_value), model,\n File \"/home/joseignaciotamayo/gnxi/oc_config_validate/oc_config_validate/testbase.py\", line 427, in assertJsonModel\n self.assertTrue(match, \"%s: %s\" % (msg, error))\nAssertionError: False is not true : JSON to Set does not match the model: JSON object contained a key that did not exist (host)\n"
0 commit comments