Skip to content

Commit 24fd6bc

Browse files
authored
Updated NetBox v3.4 test inventory (#993)
1 parent 51df9e4 commit 24fd6bc

9 files changed

+631
-33
lines changed

tests/integration/targets/inventory-v3.4/files/test-inventory-jinja2-filter.json

Lines changed: 397 additions & 1 deletion
Large diffs are not rendered by default.

tests/integration/targets/inventory-v3.4/files/test-inventory-jinja2.json

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@
147147
"custom_fields": {},
148148
"is_virtual": true,
149149
"locations": [],
150-
"regions": [],
150+
"regions": [
151+
"test-region",
152+
"parent-region"
153+
],
154+
"site": "test-site",
151155
"site_groups": [],
152156
"status": {
153157
"label": "Active",
@@ -162,7 +166,11 @@
162166
"custom_fields": {},
163167
"is_virtual": true,
164168
"locations": [],
165-
"regions": [],
169+
"regions": [
170+
"test-region",
171+
"parent-region"
172+
],
173+
"site": "test-site",
166174
"site_groups": [],
167175
"status": {
168176
"label": "Active",
@@ -177,7 +185,11 @@
177185
"custom_fields": {},
178186
"is_virtual": true,
179187
"locations": [],
180-
"regions": [],
188+
"regions": [
189+
"test-region",
190+
"parent-region"
191+
],
192+
"site": "test-site",
181193
"site_groups": [],
182194
"status": {
183195
"label": "Active",
@@ -192,7 +204,11 @@
192204
"custom_fields": {},
193205
"is_virtual": true,
194206
"locations": [],
195-
"regions": [],
207+
"regions": [
208+
"test-region",
209+
"parent-region"
210+
],
211+
"site": "test-site",
196212
"site_groups": [],
197213
"status": {
198214
"label": "Active",
@@ -349,6 +365,12 @@
349365
]
350366
},
351367
"test_site": {
368+
"hosts": [
369+
"test100-vm",
370+
"test101-vm",
371+
"test102-vm",
372+
"test103-vm"
373+
],
352374
"children": [
353375
"parent_rack_group"
354376
]

tests/integration/targets/inventory-v3.4/files/test-inventory-legacy.json

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,14 @@
286286
null
287287
],
288288
"locations": [],
289-
"regions": [],
289+
"regions": [
290+
"test-region",
291+
"parent-region"
292+
],
290293
"services": [],
294+
"sites": [
295+
"test-site"
296+
],
291297
"site_groups": [],
292298
"status": {
293299
"label": "Active",
@@ -305,8 +311,14 @@
305311
null
306312
],
307313
"locations": [],
308-
"regions": [],
314+
"regions": [
315+
"test-region",
316+
"parent-region"
317+
],
309318
"services": [],
319+
"sites": [
320+
"test-site"
321+
],
310322
"site_groups": [],
311323
"status": {
312324
"label": "Active",
@@ -324,8 +336,14 @@
324336
null
325337
],
326338
"locations": [],
327-
"regions": [],
339+
"regions": [
340+
"test-region",
341+
"parent-region"
342+
],
328343
"services": [],
344+
"sites": [
345+
"test-site"
346+
],
329347
"site_groups": [],
330348
"status": {
331349
"label": "Active",
@@ -343,8 +361,14 @@
343361
null
344362
],
345363
"locations": [],
346-
"regions": [],
364+
"regions": [
365+
"test-region",
366+
"parent-region"
367+
],
347368
"services": [],
369+
"sites": [
370+
"test-site"
371+
],
348372
"site_groups": [],
349373
"status": {
350374
"label": "Active",

tests/integration/targets/inventory-v3.4/files/test-inventory-noracks.json

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -911,8 +911,14 @@
911911
"local_context_data": [
912912
null
913913
],
914-
"regions": [],
914+
"regions": [
915+
"test-region",
916+
"parent-region"
917+
],
915918
"services": [],
919+
"sites": [
920+
"test-site"
921+
],
916922
"site_groups": [],
917923
"status": {
918924
"label": "Active",
@@ -1064,8 +1070,14 @@
10641070
"local_context_data": [
10651071
null
10661072
],
1067-
"regions": [],
1073+
"regions": [
1074+
"test-region",
1075+
"parent-region"
1076+
],
10681077
"services": [],
1078+
"sites": [
1079+
"test-site"
1080+
],
10691081
"site_groups": [],
10701082
"status": {
10711083
"label": "Active",
@@ -1086,8 +1098,14 @@
10861098
"local_context_data": [
10871099
null
10881100
],
1089-
"regions": [],
1101+
"regions": [
1102+
"test-region",
1103+
"parent-region"
1104+
],
10901105
"services": [],
1106+
"sites": [
1107+
"test-site"
1108+
],
10911109
"site_groups": [],
10921110
"status": {
10931111
"label": "Active",
@@ -1108,8 +1126,14 @@
11081126
"local_context_data": [
11091127
null
11101128
],
1111-
"regions": [],
1129+
"regions": [
1130+
"test-region",
1131+
"parent-region"
1132+
],
11121133
"services": [],
1134+
"sites": [
1135+
"test-site"
1136+
],
11131137
"site_groups": [],
11141138
"status": {
11151139
"label": "Active",
@@ -1258,6 +1282,12 @@
12581282
]
12591283
},
12601284
"sites_test_site": {
1285+
"hosts": [
1286+
"test100-vm",
1287+
"test101-vm",
1288+
"test102-vm",
1289+
"test103-vm"
1290+
],
12611291
"children": [
12621292
"location_parent_rack_group"
12631293
]

tests/integration/targets/inventory-v3.4/files/test-inventory-options-flatten.json

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,12 @@
874874
],
875875
"is_virtual": true,
876876
"locations": [],
877-
"regions": [],
877+
"regions": [
878+
"test-region",
879+
"parent-region"
880+
],
878881
"services": [],
882+
"site": "test-site",
879883
"site_groups": [],
880884
"status": {
881885
"label": "Active",
@@ -1021,8 +1025,12 @@
10211025
],
10221026
"is_virtual": true,
10231027
"locations": [],
1024-
"regions": [],
1028+
"regions": [
1029+
"test-region",
1030+
"parent-region"
1031+
],
10251032
"services": [],
1033+
"site": "test-site",
10261034
"site_groups": [],
10271035
"status": {
10281036
"label": "Active",
@@ -1037,8 +1045,12 @@
10371045
"interfaces": [],
10381046
"is_virtual": true,
10391047
"locations": [],
1040-
"regions": [],
1048+
"regions": [
1049+
"test-region",
1050+
"parent-region"
1051+
],
10411052
"services": [],
1053+
"site": "test-site",
10421054
"site_groups": [],
10431055
"status": {
10441056
"label": "Active",
@@ -1053,8 +1065,12 @@
10531065
"interfaces": [],
10541066
"is_virtual": true,
10551067
"locations": [],
1056-
"regions": [],
1068+
"regions": [
1069+
"test-region",
1070+
"parent-region"
1071+
],
10571072
"services": [],
1073+
"site": "test-site",
10581074
"site_groups": [],
10591075
"status": {
10601076
"label": "Active",
@@ -1205,6 +1221,12 @@
12051221
]
12061222
},
12071223
"test_site": {
1224+
"hosts": [
1225+
"test100-vm",
1226+
"test101-vm",
1227+
"test102-vm",
1228+
"test103-vm"
1229+
],
12081230
"children": [
12091231
"parent_rack_group"
12101232
]

tests/integration/targets/inventory-v3.4/files/test-inventory-options.json

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@
147147
"custom_fields": {},
148148
"is_virtual": true,
149149
"locations": [],
150-
"regions": [],
150+
"regions": [
151+
"test-region",
152+
"parent-region"
153+
],
154+
"site": "test-site",
151155
"site_groups": [],
152156
"status": {
153157
"label": "Active",
@@ -162,7 +166,11 @@
162166
"custom_fields": {},
163167
"is_virtual": true,
164168
"locations": [],
165-
"regions": [],
169+
"regions": [
170+
"test-region",
171+
"parent-region"
172+
],
173+
"site": "test-site",
166174
"site_groups": [],
167175
"status": {
168176
"label": "Active",
@@ -177,7 +185,11 @@
177185
"custom_fields": {},
178186
"is_virtual": true,
179187
"locations": [],
180-
"regions": [],
188+
"regions": [
189+
"test-region",
190+
"parent-region"
191+
],
192+
"site": "test-site",
181193
"site_groups": [],
182194
"status": {
183195
"label": "Active",
@@ -192,7 +204,11 @@
192204
"custom_fields": {},
193205
"is_virtual": true,
194206
"locations": [],
195-
"regions": [],
207+
"regions": [
208+
"test-region",
209+
"parent-region"
210+
],
211+
"site": "test-site",
196212
"site_groups": [],
197213
"status": {
198214
"label": "Active",
@@ -349,6 +365,12 @@
349365
]
350366
},
351367
"test_site": {
368+
"hosts": [
369+
"test100-vm",
370+
"test101-vm",
371+
"test102-vm",
372+
"test103-vm"
373+
],
352374
"children": [
353375
"parent_rack_group"
354376
]

0 commit comments

Comments
 (0)