Skip to content

Commit 575706d

Browse files
committed
facts.inventory: update inventory tests
1 parent fa9b561 commit 575706d

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

facts/test_inventory.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ def test_populateswitches():
359359
"ipv6": "2001:470:f325:103::200:16",
360360
# pylint: disable=line-too-long
361361
"ipv6ptr": "6.1.0.0.0.0.2.0.0.0.0.0.0.0.0.0.3.0.1.0.5.2.3.f.0.7.4.0.1.0.0.2.ip6.arpa",
362+
"switchtype": "Catwalk",
363+
"hierarchy": "W.1",
364+
"model": "ex4200-48p",
362365
"aliases": [],
363366
},
364367
{
@@ -368,6 +371,9 @@ def test_populateswitches():
368371
"ipv6": "2001:470:f325:503::200:17",
369372
# pylint: disable=line-too-long
370373
"ipv6ptr": "7.1.0.0.0.0.2.0.0.0.0.0.0.0.0.0.3.0.5.0.5.2.3.f.0.7.4.0.1.0.0.2.ip6.arpa",
374+
"switchtype": "cfRoom",
375+
"hierarchy": "I.9",
376+
"model": "ex4200-48p",
371377
"aliases": ["rm209", "rm210"],
372378
},
373379
],
@@ -414,6 +420,9 @@ def test_populateaps():
414420
"wifi5": "36",
415421
"configver": "0",
416422
"aliases": ["n7a-0093"],
423+
"map_id": "0",
424+
"map_x": "50",
425+
"map_y": "50",
417426
},
418427
{
419428
"name": "101-b",
@@ -425,6 +434,9 @@ def test_populateaps():
425434
"wifi5": "165",
426435
"configver": "0",
427436
"aliases": ["n8c-0002"],
437+
"map_id": "0",
438+
"map_x": "50",
439+
"map_y": "50",
428440
},
429441
],
430442
]
@@ -462,6 +474,9 @@ def test_populateservers():
462474
{
463475
"name": "cfInfra",
464476
"ipv6prefix": "2001:470:f325:503::",
477+
"ipv6bitmask": "64",
478+
"ipv4prefix": "10.128.3.0",
479+
"ipv4bitmask": "24",
465480
"building": "Conference",
466481
}
467482
]

facts/testdata/testswitchtypes

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
//Name Num MgtVL IPv6 Type // Hierarchy Switch Noiselevel
2-
Expo-Catwalk 16 103 2001:470:f325:103::200:16 Catwalk // W.1 Loud
3-
Rm209-210 17 503 2001:470:f325:503::200:17 cfRoom // I.9 Normal
1+
//Name Num MgtVL IPv6 Type Hierarchy Noiselevel Model Mgmt MAC
2+
Expo-Catwalk 16 103 2001:470:f325:103::200:16 Catwalk W.1 Loud ex4200-48p 00:26:88:7d:d3:00
3+
Rm209-210 17 503 2001:470:f325:503::200:17 cfRoom I.9 Normal ex4200-48p 00:26:88:6e:9f:80

0 commit comments

Comments
 (0)