Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

future test case bucket #686

Open
NickyDaB opened this issue May 15, 2019 · 2 comments
Open

future test case bucket #686

NickyDaB opened this issue May 15, 2019 · 2 comments

Comments

@NickyDaB
Copy link
Contributor

something with switch inventory where if inventory says it collects 100 records, then we check the database to see if there are actually 100 records.

@NickyDaB
Copy link
Contributor Author

NickyDaB commented May 15, 2019

example:

---
# switch module inventory successful
...
# total switch module inventory collected: 57

and in db:

 248a0703006d4090_4001_04 | 248a0703006d4090 | 2019-05-15 18:19:33.221474 | 2019-05-15 18:46:25.466381 | N/A     | FAN - 4     | c650f07ib-leaf03-M  | Switch      | MT
EF-FANF-A   |            0 |            4 |               0 | default(60) / Switch: c650f07ib-leaf03-M / FAN 4     | MT1630X03747        | Info     | OK       |      |
 
(57 rows)

VS a bad case of...

---
# switch module inventory successful
...
# total switch module inventory collected: 57

and in db:

 248a0703006d4090_4001_04 | 248a0703006d4090 | 2019-05-15 18:19:33.221474 | 2019-05-15 18:46:25.466381 | N/A     | FAN - 4     | c650f07ib-leaf03-M  | Switch      | MT
EF-FANF-A   |            0 |            4 |               0 | default(60) / Switch: c650f07ib-leaf03-M / FAN 4     | MT1630X03747        | Info     | OK       |      |
 
(11 rows)

@NickyDaB
Copy link
Contributor Author

NickyDaB commented May 22, 2019

should also do this for IB records.

---
# ib inventory successful
...
# total ib inventory collected: 113
# new ib records inserted into database: 0
# old ib records updated in database: 113
# old ib records removed from the database: 0
---
 YV50AG5920VG  | 2019-05-16 15:50:13.395437 | 2019-05-21 16:45:11.775727 | comment | 248a:0703:00fc:ccd0 | 248a:0703:0047:a966 | QSFP+      | 2 m    | 248a070300fcccd0
_7:248a07030047a966_1   | 00WT050      | 7       | 1       | A1       | Info     | Copper cable- unequalized | IB_4x
(101 rows)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants