Skip to content

Commit 2b7e329

Browse files
Updated pytest file names in python file
1 parent 149eeea commit 2b7e329

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

tests/checks/n9k_c9408_model_lem_count_check/test_n9k_c9408_model_lem_count_check.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
log = logging.getLogger(__name__)
1010
dir = os.path.dirname(os.path.abspath(__file__))
1111

12-
test_function = "c9408_lem_count_check"
12+
test_function = "n9k_c9408_model_lem_count_check"
1313

1414

1515
eqptLC_api = 'eqptLC.json?query-target-filter=eq(eqptLC.model,"N9K-X9400-16W")'
@@ -22,7 +22,7 @@
2222
(
2323
{eqptLC_api: read_data(dir, "eqptLC_empty.json")},
2424
"6.1(2e)",
25-
read_data(dir, "fabric_nodes_c9408_101.json"),
25+
read_data(dir, "fabricNode_n9k_c9408.json"),
2626
script.NA,
2727
[],
2828
script.VER_NOT_AFFECTED,
@@ -31,16 +31,16 @@
3131
(
3232
{eqptLC_api: read_data(dir, "eqptLC_empty.json")},
3333
"6.2(1h)",
34-
read_data(dir, "fabric_nodes_c9408_101.json"),
34+
read_data(dir, "fabricNode_n9k_c9408.json"),
3535
script.NA,
3636
[],
3737
script.VER_NOT_AFFECTED,
3838
),
39-
# Applicable version but no C9408 node
39+
# Version not affected (higher than 6.2(1g))
4040
(
41-
{eqptLC_api: read_data(dir, "eqptLC_6_node101.json")},
41+
{eqptLC_api: read_data(dir, "eqptLC_6_node.json")},
4242
"6.1(2f)",
43-
read_data(dir, "fabric_nodes_no_c9408.json"),
43+
read_data(dir, "fabricNode_no_n9k_c9408.json"),
4444
script.NA,
4545
[],
4646
"No N9K-C9408 nodes found. Skipping.",
@@ -49,70 +49,70 @@
4949
(
5050
{eqptLC_api: read_data(dir, "eqptLC_empty.json")},
5151
"6.1(2f)",
52-
read_data(dir, "fabric_nodes_c9408_101.json"),
52+
read_data(dir, "fabricNode_n9k_c9408.json"),
5353
script.PASS,
5454
[],
5555
"",
5656
),
5757
# Applicable version, exactly 5 LEMs -> PASS
5858
(
59-
{eqptLC_api: read_data(dir, "eqptLC_5_node101.json")},
59+
{eqptLC_api: read_data(dir, "eqptLC_5_node.json")},
6060
"6.2(1g)",
61-
read_data(dir, "fabric_nodes_c9408_101.json"),
61+
read_data(dir, "fabricNode_n9k_c9408.json"),
6262
script.PASS,
6363
[],
6464
"",
6565
),
6666
# Applicable mid-train version 6.1(5e), less than 6 LEMs on C9408 -> PASS
6767
(
68-
{eqptLC_api: read_data(dir, "eqptLC_5_node101.json")},
68+
{eqptLC_api: read_data(dir, "eqptLC_5_node.json")},
6969
"6.1(5e)",
70-
read_data(dir, "fabric_nodes_c9408_101.json"),
70+
read_data(dir, "fabricNode_n9k_c9408.json"),
7171
script.PASS,
7272
[],
7373
"",
7474
),
7575
# Applicable mid-train version 6.1(5e), 6 LEMs on C9408 -> FAIL_O
7676
(
77-
{eqptLC_api: read_data(dir, "eqptLC_6_node101.json")},
77+
{eqptLC_api: read_data(dir, "eqptLC_6_node.json")},
7878
"6.1(5e)",
79-
read_data(dir, "fabric_nodes_c9408_101.json"),
79+
read_data(dir, "fabricNode_n9k_c9408.json"),
8080
script.FAIL_O,
8181
[["101", "N9K-C9408", "N9K-X9400-16W", 6]],
8282
"",
8383
),
8484
# Applicable mid-train version 6.1(5e), more than 6 LEMs on C9408 -> FAIL_O
8585
(
86-
{eqptLC_api: read_data(dir, "eqptLC_7_node101.json")},
86+
{eqptLC_api: read_data(dir, "eqptLC_7_node.json")},
8787
"6.1(5e)",
88-
read_data(dir, "fabric_nodes_c9408_101.json"),
88+
read_data(dir, "fabricNode_n9k_c9408.json"),
8989
script.FAIL_O,
9090
[["101", "N9K-C9408", "N9K-X9400-16W", 7]],
9191
"",
9292
),
9393
# Applicable version, 6 LEMs on C9408 -> FAIL_O
9494
(
95-
{eqptLC_api: read_data(dir, "eqptLC_6_node101.json")},
95+
{eqptLC_api: read_data(dir, "eqptLC_6_node.json")},
9696
"6.1(2f)",
97-
read_data(dir, "fabric_nodes_c9408_101.json"),
97+
read_data(dir, "fabricNode_n9k_c9408.json"),
9898
script.FAIL_O,
9999
[["101", "N9K-C9408", "N9K-X9400-16W", 6]],
100100
"",
101101
),
102102
# Applicable version, more than 6 LEMs on C9408 -> FAIL_O
103103
(
104-
{eqptLC_api: read_data(dir, "eqptLC_7_node101.json")},
104+
{eqptLC_api: read_data(dir, "eqptLC_7_node.json")},
105105
"6.1(2f)",
106-
read_data(dir, "fabric_nodes_c9408_101.json"),
106+
read_data(dir, "fabricNode_n9k_c9408.json"),
107107
script.FAIL_O,
108108
[["101", "N9K-C9408", "N9K-X9400-16W", 7]],
109109
"",
110110
),
111111
# Count only C9408 nodes and only matching LEM model
112112
(
113-
{eqptLC_api: read_data(dir, "eqptLC_mixed_101_102_201.json")},
113+
{eqptLC_api: read_data(dir, "eqptLC_mixed.json")},
114114
"6.1(3a)",
115-
read_data(dir, "fabric_nodes_mixed.json"),
115+
read_data(dir, "fabricNode_mixed.json"),
116116
script.FAIL_O,
117117
[
118118
["101", "N9K-C9408", "N9K-X9400-16W", 6],

0 commit comments

Comments
 (0)