diff --git a/nautobot_firewall_models/tests/test_api.py b/nautobot_firewall_models/tests/test_api.py index 9b8df5cb..21c4c65d 100644 --- a/nautobot_firewall_models/tests/test_api.py +++ b/nautobot_firewall_models/tests/test_api.py @@ -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.""" @@ -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() @@ -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.""" @@ -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() @@ -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.""" @@ -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() @@ -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.""" @@ -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.""" @@ -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.""" @@ -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.""" @@ -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 diff --git a/nautobot_firewall_models/tests/test_ui_views.py b/nautobot_firewall_models/tests/test_ui_views.py index f1459e84..9708c8dd 100644 --- a/nautobot_firewall_models/tests/test_ui_views.py +++ b/nautobot_firewall_models/tests/test_ui_views.py @@ -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.""" @@ -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.""" @@ -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 @@ -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.""" @@ -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 @@ -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.""" @@ -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 @@ -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.""" @@ -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 @@ -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.""" @@ -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 @@ -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.""" @@ -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 @@ -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.""" @@ -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 @@ -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.""" @@ -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 @@ -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.""" @@ -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 @@ -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