Skip to content

Commit

Permalink
skipping new tests as they are not accounted for in this plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
whitej6 committed Nov 12, 2022
1 parent d5e488b commit d9320d7
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 0 deletions.
44 changes: 44 additions & 0 deletions nautobot_firewall_models/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ def test_delete_object(self):
def test_bulk_delete_objects(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class AddressObjectGroupAPIViewTest(APIViewTestCases.APIViewTestCase):
"""Test the AddressObjectGroup viewsets."""
Expand Down Expand Up @@ -112,6 +116,10 @@ def test_delete_object(self):
def test_bulk_delete_objects(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass

def test_create_object(self):
self.validation_excluded_fields = ["address_objects"]
return super().test_create_object()
Expand Down Expand Up @@ -154,6 +162,10 @@ def test_delete_object(self):
def test_bulk_delete_objects(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class ServiceGroupAPIViewTest(APIViewTestCases.APIViewTestCase):
"""Test the ServiceGroup viewsets."""
Expand Down Expand Up @@ -184,6 +196,10 @@ def test_delete_object(self):
def test_bulk_delete_objects(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass

def test_create_object(self):
self.validation_excluded_fields = ["service_objects"]
return super().test_create_object()
Expand Down Expand Up @@ -225,6 +241,10 @@ def test_delete_object(self):
def test_bulk_delete_objects(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class UserObjectGroupAPIViewTest(APIViewTestCases.APIViewTestCase):
"""Test the UserGroup viewsets."""
Expand Down Expand Up @@ -255,6 +275,10 @@ def test_delete_object(self):
def test_bulk_delete_objects(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass

def test_create_object(self):
self.validation_excluded_fields = ["user_objects"]
return super().test_create_object()
Expand Down Expand Up @@ -296,6 +320,10 @@ def test_delete_object(self):
def test_bulk_delete_objects(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class PolicyRuleAPIViewTest(APIViewTestCases.APIViewTestCase):
"""Test the PolicyRule viewsets."""
Expand Down Expand Up @@ -346,6 +374,10 @@ def test_delete_object(self):
def test_bulk_delete_objects(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class PolicyAPIViewTest(APIViewTestCases.APIViewTestCase):
"""Test the Policy viewsets."""
Expand Down Expand Up @@ -388,6 +420,10 @@ def test_delete_object(self):
def test_bulk_delete_objects(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class NATPolicyRuleAPIViewTest(APIViewTestCases.APIViewTestCase):
"""Test the PolicyRule viewsets."""
Expand Down Expand Up @@ -434,6 +470,10 @@ def test_delete_object(self):
def test_bulk_delete_objects(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class NATPolicyAPIViewTest(APIViewTestCases.APIViewTestCase):
"""Test the Policy viewsets."""
Expand Down Expand Up @@ -475,3 +515,7 @@ def test_delete_object(self):
@skip("on_delete set to PROTECT")
def test_bulk_delete_objects(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass
88 changes: 88 additions & 0 deletions nautobot_firewall_models/tests/test_ui_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ def test_bulk_import_objects_with_permission(self):
def test_bulk_import_objects_without_permission(self):
pass

@skip("Not implemented")
def test_bulk_import_objects_with_permission_csv_file(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class FQDNUIViewTest(ViewTestCases.PrimaryObjectViewTestCase):
"""Test the Protocol viewsets."""
Expand All @@ -59,6 +67,14 @@ def test_bulk_import_objects_with_permission(self):
def test_bulk_import_objects_without_permission(self):
pass

@skip("Not implemented")
def test_bulk_import_objects_with_permission_csv_file(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class AddressObjectUIViewTest(ViewTestCases.PrimaryObjectViewTestCase):
"""Test the AddressObject viewsets."""
Expand Down Expand Up @@ -87,6 +103,10 @@ def test_bulk_import_objects_with_permission(self):
def test_bulk_import_objects_without_permission(self):
pass

@skip("Not implemented")
def test_bulk_import_objects_with_permission_csv_file(self):
pass

@skip("on_delete set to PROTECT")
def test_bulk_delete_objects_with_constrained_permission(self):
pass
Expand All @@ -103,6 +123,10 @@ def test_delete_object_with_constrained_permission(self):
def test_delete_object_with_permission(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class AddressObjectGroupUIViewTest(ViewTestCases.PrimaryObjectViewTestCase):
"""Test the AddressObjectGroup viewsets."""
Expand Down Expand Up @@ -130,6 +154,10 @@ def test_bulk_import_objects_with_permission(self):
def test_bulk_import_objects_without_permission(self):
pass

@skip("Not implemented")
def test_bulk_import_objects_with_permission_csv_file(self):
pass

@skip("on_delete set to PROTECT")
def test_bulk_delete_objects_with_constrained_permission(self):
pass
Expand All @@ -146,6 +174,10 @@ def test_delete_object_with_constrained_permission(self):
def test_delete_object_with_permission(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class ServiceObjectUIViewTest(ViewTestCases.PrimaryObjectViewTestCase):
"""Test the ServiceObject viewsets."""
Expand Down Expand Up @@ -173,6 +205,10 @@ def test_bulk_import_objects_with_permission(self):
def test_bulk_import_objects_without_permission(self):
pass

@skip("Not implemented")
def test_bulk_import_objects_with_permission_csv_file(self):
pass

@skip("on_delete set to PROTECT")
def test_bulk_delete_objects_with_constrained_permission(self):
pass
Expand All @@ -189,6 +225,10 @@ def test_delete_object_with_constrained_permission(self):
def test_delete_object_with_permission(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class ServiceGroupUIViewTest(ViewTestCases.PrimaryObjectViewTestCase):
"""Test the ServiceGroup viewsets."""
Expand Down Expand Up @@ -216,6 +256,10 @@ def test_bulk_import_objects_with_permission(self):
def test_bulk_import_objects_without_permission(self):
pass

@skip("Not implemented")
def test_bulk_import_objects_with_permission_csv_file(self):
pass

@skip("on_delete set to PROTECT")
def test_bulk_delete_objects_with_constrained_permission(self):
pass
Expand All @@ -232,6 +276,10 @@ def test_delete_object_with_constrained_permission(self):
def test_delete_object_with_permission(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class UserObjectUIViewTest(ViewTestCases.PrimaryObjectViewTestCase):
"""Test the User viewsets."""
Expand All @@ -258,6 +306,10 @@ def test_bulk_import_objects_with_permission(self):
def test_bulk_import_objects_without_permission(self):
pass

@skip("Not implemented")
def test_bulk_import_objects_with_permission_csv_file(self):
pass

@skip("on_delete set to PROTECT")
def test_bulk_delete_objects_with_constrained_permission(self):
pass
Expand All @@ -274,6 +326,10 @@ def test_delete_object_with_constrained_permission(self):
def test_delete_object_with_permission(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class UserObjectGroupUIViewTest(ViewTestCases.PrimaryObjectViewTestCase):
"""Test the UserGroup viewsets."""
Expand Down Expand Up @@ -301,6 +357,10 @@ def test_bulk_import_objects_with_permission(self):
def test_bulk_import_objects_without_permission(self):
pass

@skip("Not implemented")
def test_bulk_import_objects_with_permission_csv_file(self):
pass

@skip("on_delete set to PROTECT")
def test_bulk_delete_objects_with_constrained_permission(self):
pass
Expand All @@ -317,6 +377,10 @@ def test_delete_object_with_constrained_permission(self):
def test_delete_object_with_permission(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class ZoneUIViewTest(ViewTestCases.PrimaryObjectViewTestCase):
"""Test the Zone viewsets."""
Expand All @@ -343,6 +407,10 @@ def test_bulk_import_objects_with_permission(self):
def test_bulk_import_objects_without_permission(self):
pass

@skip("Not implemented")
def test_bulk_import_objects_with_permission_csv_file(self):
pass

@skip("on_delete set to PROTECT")
def test_bulk_delete_objects_with_constrained_permission(self):
pass
Expand All @@ -359,6 +427,10 @@ def test_delete_object_with_constrained_permission(self):
def test_delete_object_with_permission(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class PolicyRuleUIViewTest(ViewTestCases.PrimaryObjectViewTestCase):
"""Test the PolicyRule viewsets."""
Expand Down Expand Up @@ -399,6 +471,10 @@ def test_bulk_import_objects_with_permission(self):
def test_bulk_import_objects_without_permission(self):
pass

@skip("Not implemented")
def test_bulk_import_objects_with_permission_csv_file(self):
pass

@skip("on_delete set to PROTECT")
def test_bulk_delete_objects_with_constrained_permission(self):
pass
Expand All @@ -415,6 +491,10 @@ def test_delete_object_with_constrained_permission(self):
def test_delete_object_with_permission(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass


class PolicyUIViewTest(ViewTestCases.PrimaryObjectViewTestCase):
"""Test the Policy viewsets."""
Expand Down Expand Up @@ -447,6 +527,10 @@ def test_bulk_import_objects_with_permission(self):
def test_bulk_import_objects_without_permission(self):
pass

@skip("Not implemented")
def test_bulk_import_objects_with_permission_csv_file(self):
pass

@skip("on_delete set to PROTECT")
def test_bulk_delete_objects_with_constrained_permission(self):
pass
Expand All @@ -462,3 +546,7 @@ def test_delete_object_with_constrained_permission(self):
@skip("on_delete set to PROTECT")
def test_delete_object_with_permission(self):
pass

@skip("on_delete set to PROTECT")
def test_delete_object_without_permission(self):
pass

0 comments on commit d9320d7

Please sign in to comment.