Skip to content

Commit

Permalink
Add first pass at refactoring fabric test
Browse files Browse the repository at this point in the history
  • Loading branch information
zoedt committed Oct 7, 2024
1 parent 50589cb commit acc0399
Show file tree
Hide file tree
Showing 9 changed files with 831 additions and 40,733 deletions.
8 changes: 3 additions & 5 deletions cisco_aci/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
# 1592af41e69b692cb9ea41c2082c6324 - Api.get_eth_stats
'_api_mo_topology_pod_1_node_101_sys_phys__eth101_1_25__json_rsp_subtree_include_stats_no_scoped_page_size_50',
# 09307f3bd50af43e2a42115352a9667f - Api.get_eth_stats
'_api_mo_topology_pod_1_node_201_sys_phys__eth1_1__json_rsp_subtree_include_stats_no_scoped_page_size_50',
'_api_mo_topology_pod_1_node_201_sys_phys__eth5_1__json_rsp_subtree_include_stats_no_scoped_page_size_50',
# 9663cbb28348a8cbaf0cd22fd1f37664 - Api.get_eth_stats
'_api_mo_topology_pod_1_node_201_sys_phys__eth1_14__json_rsp_subtree_include_stats_no_scoped_page_size_50',
# 3cbee8654509c3cd43e50967079d636d - Api.get_eth_stats
Expand Down Expand Up @@ -403,7 +403,7 @@
# 97c9b38cfda14c9218b0d97ac45e2635 - Api.get_eth_stats
'_api_mo_topology_pod_1_node_102_sys_phys__eth1_4__json_rsp_subtree_include_stats_no_scoped_page_size_50',
# 784ecd089e2b648809a8e00fd5a11e82 - Api.get_eth_stats
'_api_mo_topology_pod_1_node_201_sys_phys__eth1_2__json_rsp_subtree_include_stats_no_scoped_page_size_50',
'_api_mo_topology_pod_1_node_201_sys_phys__eth5_2__json_rsp_subtree_include_stats_no_scoped_page_size_50',
# c74287938370abba1fbb7deb6f1afcdc - Api.get_eth_stats
'_api_mo_topology_pod_1_node_102_sys_phys__eth1_33__json_rsp_subtree_include_stats_no_scoped_page_size_50',
# ea3bdd6b0a08e2e5227bfc5e9bed1077 - Api.get_eth_stats
Expand Down Expand Up @@ -453,7 +453,7 @@
# 97dbf9f15408eecaa3fd4d45ba7dbaab - Api.get_eth_stats
'_api_mo_topology_pod_1_node_201_sys_phys__eth1_31__json_rsp_subtree_include_stats_no_scoped_page_size_50',
# f71145d337d6c9a9b241c1c976ced0d1 - Api.get_eth_stats
'_api_mo_topology_pod_1_node_201_sys_phys__eth1_3__json_rsp_subtree_include_stats_no_scoped_page_size_50',
'_api_mo_topology_pod_1_node_201_sys_phys__eth7_1__json_rsp_subtree_include_stats_no_scoped_page_size_50',
# c73e82f5cdc241fc509a0bbf6d4a7d51 - Api.get_eth_stats
'_api_mo_topology_pod_1_node_102_sys_phys__eth1_53__json_rsp_subtree_include_stats_no_scoped_page_size_50',
# b7ca7e3bf57d9bd268742155051c4b81 - Api.get_eth_stats
Expand Down Expand Up @@ -571,8 +571,6 @@
# b9ec4494d631d05122fd7fb4baf0877d - Api.get_epg_meta
'_api_node_class_topology_pod_1_node_102_l1PhysIf_json_rsp_subtree_children_rsp_subtree_class_ethpmPhysIf',
# 79af98fe9c1069b329af3b4828712ddd - Api.get_eth_list -> 9d167692ace22bc1013437072c55a641
'_api_node_class_topology_pod_1_node_202_l1PhysIf_json_rsp_subtree_children_rsp_subtree_class_ethpmPhysIf',
# 7b06db4060591652e39b305410a03a2a - Api.get_eth_list -> 77987eb09f39a2abbc59e55aaa9d40ab
'_api_node_class_topology_pod_1_node_201_l1PhysIf_json_rsp_subtree_children_rsp_subtree_class_ethpmPhysIf',
# ded65ac48170a7a3d8914950607e4e18 - Api.get_eth_list -> 2569ee885cad13ed336e5b4c8bd6dab4
'_api_node_class_topology_pod_1_node_101_l1PhysIf_json_rsp_subtree_children_rsp_subtree_class_ethpmPhysIf',
Expand Down
3,620 changes: 54 additions & 3,566 deletions cisco_aci/tests/fixtures/fabric/2569ee885cad13ed336e5b4c8bd6dab4.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -59,64 +59,6 @@
}
}
},
{
"fabricNode": {
"attributes": {
"adSt": "on",
"address": "10.0.200.2",
"annotation": "",
"childAction": "",
"delayedHeartbeat": "no",
"dn": "topology/pod-1/node-202",
"extMngdBy": "",
"fabricSt": "active",
"id": "202",
"lastStateModTs": "2018-05-29T16:53:17.892-07:00",
"lcOwn": "local",
"modTs": "2018-05-29T16:53:58.202-07:00",
"model": "N9K-C9336PQ",
"monPolDn": "uni/fabric/monfab-default",
"name": "spine202",
"nameAlias": "",
"nodeType": "unspecified",
"role": "spine",
"serial": "SAL2014N5T7",
"status": "",
"uid": "0",
"vendor": "Cisco Systems, Inc",
"version": ""
}
}
},
{
"fabricNode": {
"attributes": {
"adSt": "on",
"address": "10.0.200.3",
"annotation": "",
"childAction": "",
"delayedHeartbeat": "no",
"dn": "topology/pod-1/node-3",
"extMngdBy": "",
"fabricSt": "unknown",
"id": "3",
"lastStateModTs": "1969-12-31T17:00:00.000-07:00",
"lcOwn": "local",
"modTs": "2018-05-10T19:01:36.971-07:00",
"model": "APIC-SERVER-M1",
"monPolDn": "uni/fabric/monfab-default",
"name": "apic3",
"nameAlias": "",
"nodeType": "unspecified",
"role": "controller",
"serial": "FCH1927V11T",
"status": "",
"uid": "0",
"vendor": "Cisco Systems, Inc",
"version": "A"
}
}
},
{
"fabricNode": {
"attributes": {
Expand Down Expand Up @@ -174,35 +116,6 @@
"version": ""
}
}
},
{
"fabricNode": {
"attributes": {
"adSt": "on",
"address": "10.0.200.6",
"annotation": "",
"childAction": "",
"delayedHeartbeat": "no",
"dn": "topology/pod-1/node-2",
"extMngdBy": "",
"fabricSt": "unknown",
"id": "2",
"lastStateModTs": "1969-12-31T17:00:00.000-07:00",
"lcOwn": "local",
"modTs": "2016-07-20T12:19:20.101-07:00",
"model": "APIC-SERVER-M1",
"monPolDn": "uni/fabric/monfab-default",
"name": "apic2",
"nameAlias": "",
"nodeType": "unspecified",
"role": "controller",
"serial": "FCH1928V06Q",
"status": "",
"uid": "0",
"vendor": "Cisco Systems, Inc",
"version": "A"
}
}
}
]
}

Large diffs are not rendered by default.

Loading

0 comments on commit acc0399

Please sign in to comment.