Skip to content

Commit

Permalink
Resolve testcase errors due to modified counters DB
Browse files Browse the repository at this point in the history
  • Loading branch information
arista-hpandya authored and kenneth-arista committed Sep 16, 2024
1 parent a8860ef commit bc72cc4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 90 deletions.
66 changes: 0 additions & 66 deletions tests/mock_tables/asic0/counters_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -2493,72 +2493,6 @@
"COUNTERS_BUFFER_POOL_NAME_MAP": {
"ingress_lossless_pool": "oid:0x18000000000c10"
},
"COUNTERS_QUEUE_PORT_MAP": {
"oid:0x1000000001000": "oid:0x1000000000002",
"oid:0x1000000001001": "oid:0x1000000000002",
"oid:0x1000000001002": "oid:0x1000000000002",
"oid:0x1000000001003": "oid:0x1000000000002",
"oid:0x1000000001004": "oid:0x1000000000002",
"oid:0x1000000001005": "oid:0x1000000000002",
"oid:0x1000000001006": "oid:0x1000000000002",
"oid:0x1000000001007": "oid:0x1000000000002",
"oid:0x1000000001008": "oid:0x1000000000002",
"oid:0x1000000001009": "oid:0x1000000000002",
"oid:0x1000000001010": "oid:0x1000000000002",
"oid:0x1000000001011": "oid:0x1000000000002",
"oid:0x1000000001012": "oid:0x1000000000002",
"oid:0x1000000001013": "oid:0x1000000000002",
"oid:0x1000000001014": "oid:0x1000000000002",
"oid:0x1000000001015": "oid:0x1000000000002",
"oid:0x1000000002000": "oid:0x1000000000004",
"oid:0x1000000002001": "oid:0x1000000000004",
"oid:0x1000000002002": "oid:0x1000000000004",
"oid:0x1000000002003": "oid:0x1000000000004",
"oid:0x1000000002004": "oid:0x1000000000004",
"oid:0x1000000002005": "oid:0x1000000000004",
"oid:0x1000000002006": "oid:0x1000000000004",
"oid:0x1000000002007": "oid:0x1000000000004",
"oid:0x1000000002008": "oid:0x1000000000004",
"oid:0x1000000002009": "oid:0x1000000000004",
"oid:0x1000000002010": "oid:0x1000000000004",
"oid:0x1000000002011": "oid:0x1000000000004",
"oid:0x1000000002012": "oid:0x1000000000004",
"oid:0x1000000002013": "oid:0x1000000000004",
"oid:0x1000000002014": "oid:0x1000000000004",
"oid:0x1000000002015": "oid:0x1000000000004",
"oid:0x1000000003000": "oid:0x1000000000006",
"oid:0x1000000003001": "oid:0x1000000000006",
"oid:0x1000000003002": "oid:0x1000000000006",
"oid:0x1000000003003": "oid:0x1000000000006",
"oid:0x1000000003004": "oid:0x1000000000006",
"oid:0x1000000003005": "oid:0x1000000000006",
"oid:0x1000000003006": "oid:0x1000000000006",
"oid:0x1000000003007": "oid:0x1000000000006",
"oid:0x1000000003008": "oid:0x1000000000006",
"oid:0x1000000003009": "oid:0x1000000000006",
"oid:0x1000000003010": "oid:0x1000000000006",
"oid:0x1000000003011": "oid:0x1000000000006",
"oid:0x1000000003012": "oid:0x1000000000006",
"oid:0x1000000003013": "oid:0x1000000000006",
"oid:0x1000000003014": "oid:0x1000000000006",
"oid:0x1000000003015": "oid:0x1000000000006",
"oid:0x1000000004000": "oid:0x1000000000008",
"oid:0x1000000004001": "oid:0x1000000000008",
"oid:0x1000000004002": "oid:0x1000000000008",
"oid:0x1000000004003": "oid:0x1000000000008",
"oid:0x1000000004004": "oid:0x1000000000008",
"oid:0x1000000004005": "oid:0x1000000000008",
"oid:0x1000000004006": "oid:0x1000000000008",
"oid:0x1000000004007": "oid:0x1000000000008",
"oid:0x1000000004008": "oid:0x1000000000008",
"oid:0x1000000004009": "oid:0x1000000000008",
"oid:0x1000000004010": "oid:0x1000000000008",
"oid:0x1000000004011": "oid:0x1000000000008",
"oid:0x1000000004012": "oid:0x1000000000008",
"oid:0x1000000004013": "oid:0x1000000000008",
"oid:0x1000000004014": "oid:0x1000000000008",
"oid:0x1000000004015": "oid:0x1000000000008"
},
"COUNTERS_PG_NAME_MAP": {
"Enternet0:0": "oid:100000000b0f0",
"Enternet0:1": "oid:100000000b0f1",
Expand Down
16 changes: 8 additions & 8 deletions tests/multi_asic_pgdropstat_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@
PG14 PG15
-------------- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ------ ------ ------ ------\
------ ------
Ethernet0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\
0 0
Ethernet4 0 0 0 0 0 0 0 0 0 0 0 0 0 0\
0 0
Ethernet0 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A\
N/A N/A
Ethernet4 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A\
N/A N/A
Ethernet-BP0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\
0 0
Ethernet-BP4 0 0 0 0 0 0 0 0 0 0 0 0 0 0\
0 0
Ethernet-BP256 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A\
N/A N/A
Ethernet-BP260 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A\
N/A N/A
Ethernet-BP256 0 0 0 0 0 0 0 0 0 0 0 0 0 0\
0 0
Ethernet-BP260 0 0 0 0 0 0 0 0 0 0 0 0 0 0\
0 0
"""


Expand Down
32 changes: 16 additions & 16 deletions tests/multi_asic_queue_counter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@
Ethernet-BP4 UC5 121 83 3 21
Ethernet-BP4 UC6 122 84 2 20
Ethernet-BP4 UC7 123 85 1 19
Ethernet-BP4 MC8 124 86 0 18
Ethernet-BP4 MC9 125 87 1 17
Ethernet-BP4 MC10 126 88 2 16
Ethernet-BP4 MC11 127 89 3 15
Ethernet-BP4 MC12 128 90 4 14
Ethernet-BP4 MC13 129 91 5 13
Ethernet-BP4 MC14 130 92 6 12
Ethernet-BP4 MC15 131 93 7 11
Ethernet-BP4 ALL8 124 86 0 18
Ethernet-BP4 ALL9 125 87 1 17
Ethernet-BP4 ALL10 126 88 2 16
Ethernet-BP4 ALL11 127 89 3 15
Ethernet-BP4 ALL12 128 90 4 14
Ethernet-BP4 ALL13 129 91 5 13
Ethernet-BP4 ALL14 130 92 6 12
Ethernet-BP4 ALL15 131 93 7 11
"""

Expand All @@ -112,14 +112,14 @@
Ethernet-BP4 UC5 121 83 3 21
Ethernet-BP4 UC6 122 84 2 20
Ethernet-BP4 UC7 123 85 1 19
Ethernet-BP4 MC8 124 86 0 18
Ethernet-BP4 MC9 125 87 1 17
Ethernet-BP4 MC10 126 88 2 16
Ethernet-BP4 MC11 127 89 3 15
Ethernet-BP4 MC12 128 90 4 14
Ethernet-BP4 MC13 129 91 5 13
Ethernet-BP4 MC14 130 92 6 12
Ethernet-BP4 MC15 131 93 7 11
Ethernet-BP4 ALL8 124 86 0 18
Ethernet-BP4 ALL9 125 87 1 17
Ethernet-BP4 ALL10 126 88 2 16
Ethernet-BP4 ALL11 127 89 3 15
Ethernet-BP4 ALL12 128 90 4 14
Ethernet-BP4 ALL13 129 91 5 13
Ethernet-BP4 ALL14 130 92 6 12
Ethernet-BP4 ALL15 131 93 7 11
"""

Expand Down

0 comments on commit bc72cc4

Please sign in to comment.