From fb2647ff7bfcf29a60f1cb439c8aa10b19cb6da6 Mon Sep 17 00:00:00 2001 From: Gabe Muniz Date: Fri, 17 Feb 2023 14:17:18 -0500 Subject: [PATCH] changing the signature of workflowapprovallist included workflow approval as a read only endpoint to pass collection tests --- awx/api/views/__init__.py | 2 +- awx_collection/test/awx/test_completeness.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/api/views/__init__.py b/awx/api/views/__init__.py index e81a6ebbde..609e88e155 100644 --- a/awx/api/views/__init__.py +++ b/awx/api/views/__init__.py @@ -4288,7 +4288,7 @@ class WorkflowApprovalTemplateJobsList(SubListAPIView): parent_key = 'workflow_approval_template' -class WorkflowApprovalList(ListCreateAPIView): +class WorkflowApprovalList(ListAPIView): model = models.WorkflowApproval serializer_class = serializers.WorkflowApprovalListSerializer diff --git a/awx_collection/test/awx/test_completeness.py b/awx_collection/test/awx/test_completeness.py index 43e225e4b8..451c1a61d3 100644 --- a/awx_collection/test/awx/test_completeness.py +++ b/awx_collection/test/awx/test_completeness.py @@ -16,7 +16,7 @@ import glob # Normally a read-only endpoint should not have a module (i.e. /api/v2/me) but sometimes we reuse a name # For example, we have a role module but /api/v2/roles is a read only endpoint. # This list indicates which read-only endpoints have associated modules with them. -read_only_endpoints_with_modules = ['settings', 'role', 'project_update'] +read_only_endpoints_with_modules = ['settings', 'role', 'project_update', 'workflow_approval'] # If a module should not be created for an endpoint and the endpoint is not read-only add it here # THINK HARD ABOUT DOING THIS