File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
tests/integration/targets/regression-v3.4/tasks Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 435
435
),
436
436
"l2vpn" : set (["name" ]),
437
437
"lag" : set (["name" ]),
438
- "location" : set (["slug" ]),
438
+ "location" : set (["slug" , "site" ]),
439
439
"module_type" : set (["model" ]),
440
440
"manufacturer" : set (["slug" ]),
441
441
"master" : set (["name" ]),
Original file line number Diff line number Diff line change 263
263
assert :
264
264
that :
265
265
- test_results | community.general.json_query('results[?ip_address.address==`1.121.121.121/32`]') | length == 2
266
- - test_results | community.general.json_query('results[?ip_address.address==`121.121.121.121/32`]') | length == 2
266
+ - test_results | community.general.json_query('results[?ip_address.address==`121.121.121.121/32`]') | length == 2
267
+
268
+ - name : " Issue #958 - Make sure we can add same location with different sites"
269
+ netbox.netbox.netbox_location :
270
+ netbox_url : " http://localhost:32768"
271
+ netbox_token : " 0123456789abcdef0123456789abcdef01234567"
272
+ data :
273
+ name : Office Building
274
+ site : " {{ item }}"
275
+ loop :
276
+ - Test Site
277
+ - Test Site2
278
+ register : test_results
279
+
280
+ - name : " ASSERT ISSUE #957 - Location has different IDs"
281
+ ansible.builtin.assert :
282
+ that :
283
+ - test_results.results.0.location.id != test_results.results.1.location.id
You can’t perform that action at this time.
0 commit comments