|
37 | 37 | logger = logging.getLogger(__name__) |
38 | 38 |
|
39 | 39 |
|
| 40 | +@pytest.mark.part1 |
40 | 41 | class TestSanity: |
41 | 42 | def test_poller_integration_event(self, setup_splunk): |
42 | 43 | logger.info("Integration test for poller event") |
@@ -116,6 +117,7 @@ def setup_profile(request): |
116 | 117 |
|
117 | 118 |
|
118 | 119 | @pytest.mark.usefixtures("setup_profile") |
| 120 | +@pytest.mark.part1 |
119 | 121 | class TestProfiles: |
120 | 122 | def test_static_profiles_metrics(self, setup_splunk): |
121 | 123 | search_string = """| mpreview index=netmetrics| spath profiles | search profiles=generic_switch |
@@ -177,6 +179,7 @@ def setup_profiles(request): |
177 | 179 |
|
178 | 180 |
|
179 | 181 | @pytest.mark.usefixtures("setup_profiles") |
| 182 | +@pytest.mark.part1 |
180 | 183 | class TestProfilesWorkflow: |
181 | 184 | def test_add_new_profile_and_reload(self, setup_splunk): |
182 | 185 | search_string = """| mpreview index=netmetrics| spath profiles | search profiles=new_profile """ |
@@ -283,6 +286,7 @@ def setup_smart_profiles(request): |
283 | 286 |
|
284 | 287 |
|
285 | 288 | @pytest.mark.usefixtures("setup_smart_profiles") |
| 289 | +@pytest.mark.part1 |
286 | 290 | class TestSmartProfiles: |
287 | 291 | def test_smart_profiles_field(self, setup_splunk): |
288 | 292 | search_string = """| mpreview index=netmetrics| spath profiles | search profiles=smart_profile_field | search icmpOutDestUnreachs """ |
@@ -360,6 +364,7 @@ def setup_modify_profile(request): |
360 | 364 |
|
361 | 365 |
|
362 | 366 | @pytest.mark.usefixtures("setup_modify_profile") |
| 367 | +@pytest.mark.part2 |
363 | 368 | class TestModifyProfilesFrequency: |
364 | 369 | def test_sanity_frequency_field(self, setup_splunk): |
365 | 370 | search_string = """| mpreview index=netmetrics earliest=-30s | search profiles=test_modify frequency=5 """ |
@@ -416,6 +421,7 @@ def test_modify_frequency_field(self, request, setup_splunk): |
416 | 421 |
|
417 | 422 |
|
418 | 423 | @pytest.mark.usefixtures("setup_modify_profile") |
| 424 | +@pytest.mark.part2 |
419 | 425 | class TestModifyProfilesVarBinds: |
420 | 426 | def test_sanity_varBinds_field(self, setup_splunk): |
421 | 427 | search_string = """| mpreview index=netmetrics earliest=-30s | search profiles=test_modify UDP-MIB""" |
@@ -527,6 +533,7 @@ def setup_small_walk(request): |
527 | 533 |
|
528 | 534 |
|
529 | 535 | @pytest.mark.usefixtures("setup_small_walk") |
| 536 | +@pytest.mark.part2 |
530 | 537 | class TestSmallWalk: |
531 | 538 | def test_check_if_walk_scope_was_smaller(self, setup_splunk): |
532 | 539 | time.sleep(20) |
@@ -583,6 +590,7 @@ def setup_small_walk_with_full_walk_enabled(request): |
583 | 590 |
|
584 | 591 |
|
585 | 592 | @pytest.mark.usefixtures("setup_small_walk_with_full_walk_enabled") |
| 593 | +@pytest.mark.part2 |
586 | 594 | class TestSmallWalkWithFullWalkEnabled: |
587 | 595 | def test_check_if_full_walk_is_done_with_profile_set(self, setup_splunk): |
588 | 596 | time.sleep(20) |
@@ -633,6 +641,7 @@ def setup_partial_walk(request): |
633 | 641 |
|
634 | 642 |
|
635 | 643 | @pytest.mark.usefixtures("setup_partial_walk") |
| 644 | +@pytest.mark.part2 |
636 | 645 | class TestPartialWalk: |
637 | 646 | def test_check_if_partial_walk_is_done(self, setup_splunk): |
638 | 647 | time.sleep(20) |
@@ -705,6 +714,7 @@ def setup_v3_connection(request): |
705 | 714 |
|
706 | 715 |
|
707 | 716 | @pytest.mark.usefixtures("setup_v3_connection") |
| 717 | +@pytest.mark.part2 |
708 | 718 | class TestSNMPv3Connection: |
709 | 719 | def test_snmpv3_walk(self, setup_splunk): |
710 | 720 | time.sleep(200) |
@@ -794,6 +804,7 @@ def setup_groups(request): |
794 | 804 |
|
795 | 805 |
|
796 | 806 | @pytest.mark.usefixtures("setup_groups") |
| 807 | +@pytest.mark.part3 |
797 | 808 | class TestGroupsInventory: |
798 | 809 | def test_ip_address_inventory(self, setup_splunk): |
799 | 810 | time.sleep(20) |
@@ -923,6 +934,7 @@ def setup_single_ang_group(request): |
923 | 934 |
|
924 | 935 |
|
925 | 936 | @pytest.mark.usefixtures("setup_single_ang_group") |
| 937 | +@pytest.mark.part3 |
926 | 938 | class TestIgnoreSingleIfInGroup: |
927 | 939 | def test_host_from_group(self, request, setup_splunk): |
928 | 940 | trap_external_ip = request.config.getoption("trap_external_ip") |
@@ -1018,6 +1030,7 @@ def setup_single_gt_and_lt_profiles(request): |
1018 | 1030 |
|
1019 | 1031 |
|
1020 | 1032 | @pytest.mark.usefixtures("setup_single_gt_and_lt_profiles") |
| 1033 | +@pytest.mark.part3 |
1021 | 1034 | class TestSingleGtAndLtCorrectCondition: |
1022 | 1035 | def test_gt_profile(self, request, setup_splunk): |
1023 | 1036 | time.sleep(20) |
@@ -1109,6 +1122,7 @@ def setup_single_in_and_equals_profiles(request): |
1109 | 1122 |
|
1110 | 1123 |
|
1111 | 1124 | @pytest.mark.usefixtures("setup_single_in_and_equals_profiles") |
| 1125 | +@pytest.mark.part4 |
1112 | 1126 | class TestSingleInAndEqualsCorrectCondition: |
1113 | 1127 | def test_in_profile(self, request, setup_splunk): |
1114 | 1128 | time.sleep(20) |
@@ -1203,6 +1217,7 @@ def setup_single_regex_and_options_profiles(request): |
1203 | 1217 |
|
1204 | 1218 |
|
1205 | 1219 | @pytest.mark.usefixtures("setup_single_regex_and_options_profiles") |
| 1220 | +@pytest.mark.part4 |
1206 | 1221 | class TestSingleRegexCorrectCondition: |
1207 | 1222 | def test_regex_profile(self, request, setup_splunk): |
1208 | 1223 | time.sleep(20) |
@@ -1302,6 +1317,7 @@ def setup_single_gt_and_lt_profiles_with_negation(request): |
1302 | 1317 |
|
1303 | 1318 |
|
1304 | 1319 | @pytest.mark.usefixtures("setup_single_gt_and_lt_profiles_with_negation") |
| 1320 | +@pytest.mark.part4 |
1305 | 1321 | class TestSingleGtAndLtWithNegationCorrectCondition: |
1306 | 1322 | def test_not_gt_profile(self, request, setup_splunk): |
1307 | 1323 | time.sleep(20) |
@@ -1403,6 +1419,7 @@ def setup_single_in_and_equals_profiles_with_negation(request): |
1403 | 1419 |
|
1404 | 1420 |
|
1405 | 1421 | @pytest.mark.usefixtures("setup_single_in_and_equals_profiles_with_negation") |
| 1422 | +@pytest.mark.part4 |
1406 | 1423 | class TestSingleInAndEqualsWithNegationCorrectCondition: |
1407 | 1424 | def test_not_in_profile(self, request, setup_splunk): |
1408 | 1425 | time.sleep(20) |
@@ -1504,6 +1521,7 @@ def setup_single_regex_and_options_profiles_with_negation(request): |
1504 | 1521 |
|
1505 | 1522 |
|
1506 | 1523 | @pytest.mark.usefixtures("setup_single_regex_and_options_profiles_with_negation") |
| 1524 | +@pytest.mark.part5 |
1507 | 1525 | class TestSingleRegexWithNegationCorrectCondition: |
1508 | 1526 | def test_not_regex_profile(self, request, setup_splunk): |
1509 | 1527 | time.sleep(20) |
@@ -1609,6 +1627,7 @@ def setup_multiple_conditions_profiles(request): |
1609 | 1627 |
|
1610 | 1628 |
|
1611 | 1629 | @pytest.mark.usefixtures("setup_multiple_conditions_profiles") |
| 1630 | +@pytest.mark.part5 |
1612 | 1631 | class TestMultipleCorrectConditions: |
1613 | 1632 | def test_gt_and_equals_profile(self, request, setup_splunk): |
1614 | 1633 | time.sleep(20) |
@@ -1720,6 +1739,7 @@ def setup_wrong_conditions_profiles(request): |
1720 | 1739 |
|
1721 | 1740 |
|
1722 | 1741 | @pytest.mark.usefixtures("setup_wrong_conditions_profiles") |
| 1742 | +@pytest.mark.part5 |
1723 | 1743 | class TestWrongConditions: |
1724 | 1744 | def test_wrong_profiles(self, request, setup_splunk): |
1725 | 1745 | time.sleep(20) |
@@ -1819,6 +1839,7 @@ def setup_misconfigured_profiles(request): |
1819 | 1839 |
|
1820 | 1840 |
|
1821 | 1841 | @pytest.mark.usefixtures("setup_misconfigured_profiles") |
| 1842 | +@pytest.mark.part6 |
1822 | 1843 | class TestMisconfiguredProfiles: |
1823 | 1844 | def test_wrong_profiles(self, request, setup_splunk): |
1824 | 1845 | time.sleep(20) |
@@ -1902,6 +1923,7 @@ def setup_misconfigured_groups(request): |
1902 | 1923 |
|
1903 | 1924 |
|
1904 | 1925 | @pytest.mark.usefixtures("setup_misconfigured_groups") |
| 1926 | +@pytest.mark.part6 |
1905 | 1927 | class TestMisconfiguredGroups: |
1906 | 1928 | def test_wrong_groups(self, request, setup_splunk): |
1907 | 1929 | time.sleep(20) |
|
0 commit comments