From 23766b5820046842df619d3fb826ef9b6f461c42 Mon Sep 17 00:00:00 2001 From: hblankenship Date: Fri, 19 Apr 2024 11:53:01 -0500 Subject: [PATCH] switch back to finding - different test uses it --- dojo/urls.py | 2 +- unittests/test_apiv2_limit_reqresp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dojo/urls.py b/dojo/urls.py index 2b34b4820c1..3b5c335ada7 100755 --- a/dojo/urls.py +++ b/dojo/urls.py @@ -81,7 +81,7 @@ v2_api.register(r'engagements', EngagementViewSet) v2_api.register(r'development_environments', DevelopmentEnvironmentViewSet) v2_api.register(r'finding_templates', FindingTemplatesViewSet) -v2_api.register(r'findings', FindingViewSet, basename='findings') +v2_api.register(r'findings', FindingViewSet, basename='finding') v2_api.register(r'jira_configurations', JiraInstanceViewSet) # backwards compatibility v2_api.register(r'jira_instances', JiraInstanceViewSet) v2_api.register(r'jira_finding_mappings', JiraIssuesViewSet) diff --git a/unittests/test_apiv2_limit_reqresp.py b/unittests/test_apiv2_limit_reqresp.py index 9c03097e4f4..50f8863ea69 100644 --- a/unittests/test_apiv2_limit_reqresp.py +++ b/unittests/test_apiv2_limit_reqresp.py @@ -18,7 +18,7 @@ def setUp(self: object): def assertReqrespValue(self: object, value: int, expect_notequal: bool = False) -> None: settings.MAX_REQRESP_FROM_API = value - r = self.client.get(reverse('findings-list'), format='json') + r = self.client.get(reverse('finding-list'), format='json') results = r.json()['results'] # get finding with id 7 finding = self.getFinding(7, results)