|
16 | 16 |
|
17 | 17 |
|
18 | 18 | @pytest.mark.parametrize( |
19 | | - "fabric_nodes, icurl_outputs, tversion, expected_result, expected_msg, expected_data", |
| 19 | + "fabric_nodes, icurl_outputs, expected_result, expected_msg, expected_data", |
20 | 20 | [ |
21 | 21 | # No nodes returned |
22 | 22 | ( |
23 | 23 | [], |
24 | 24 | {}, |
25 | | - "6.0(3c)", |
26 | 25 | script.NA, |
27 | 26 | 'No N9K-C93180YC-FX3 switches found. Skipping.', |
28 | 27 | [], |
|
33 | 32 | { |
34 | 33 | proc_mem_query: read_data(dir, "procMemUsage_node201_gt32gb.json"), |
35 | 34 | }, |
36 | | - "6.0(3c)", |
37 | 35 | script.NA, |
38 | 36 | 'No N9K-C93180YC-FX3 switches found. Skipping.', |
39 | 37 | [], |
|
44 | 42 | { |
45 | 43 | proc_mem_query: read_data(dir, "procMemUsage_gt32gb.json"), |
46 | 44 | }, |
47 | | - "6.0(3c)", |
48 | 45 | script.PASS, |
49 | 46 | '', |
50 | 47 | [], |
|
55 | 52 | { |
56 | 53 | proc_mem_query: read_data(dir, "procMemUsage_all_gt32gb.json"), |
57 | 54 | }, |
58 | | - "6.0(3c)", |
59 | 55 | script.PASS, |
60 | 56 | '', |
61 | 57 | [], |
|
66 | 62 | { |
67 | 63 | proc_mem_query: read_data(dir, "procMemUsage_missing_affected_node.json"), |
68 | 64 | }, |
69 | | - "6.0(3c)", |
70 | 65 | script.ERROR, |
71 | 66 | 'Missing procMemUsage data for one or more affected N9K-C93180YC-FX3 nodes.', |
72 | 67 | [["101", "leaf101", "N9K-C93180YC-FX3"]], |
|
77 | 72 | { |
78 | 73 | proc_mem_query: read_data(dir, "procMemUsage_mixed.json"), |
79 | 74 | }, |
80 | | - "6.0(3c)", |
81 | 75 | script.PASS, |
82 | 76 | '', |
83 | 77 | [], |
|
88 | 82 | { |
89 | 83 | proc_mem_query: read_data(dir, "procMemUsage_lt32gb.json"), |
90 | 84 | }, |
91 | | - "6.0(3c)", |
92 | 85 | script.MANUAL, |
93 | 86 | ( |
94 | 87 | 'One or more N9K-C93180YC-FX3 switches have less than 32GB of memory. ' |
|
102 | 95 | { |
103 | 96 | proc_mem_query: read_data(dir, "procMemUsage_fail_and_missing.json"), |
104 | 97 | }, |
105 | | - "6.0(3c)", |
106 | 98 | script.MANUAL, |
107 | 99 | ( |
108 | 100 | 'Some N9K-C93180YC-FX3 nodes have insufficient memory and others are missing ' |
|
114 | 106 | ), |
115 | 107 | ], |
116 | 108 | ) |
117 | | -def test_logic(run_check, mock_icurl, fabric_nodes, tversion, expected_result, expected_msg, expected_data): |
| 109 | +def test_logic(run_check, mock_icurl, fabric_nodes, expected_result, expected_msg, expected_data): |
118 | 110 | result = run_check( |
119 | | - tversion=script.AciVersion(tversion), |
120 | 111 | fabric_nodes=fabric_nodes, |
121 | 112 | ) |
122 | 113 | assert result.result == expected_result |
|
0 commit comments