Skip to content

Commit

Permalink
quick_setup: fix missing status code definition
Browse files Browse the repository at this point in the history
Change-Id: I29b8441b40ef327f58a7ed993e357a6d791e67b9
JIRA-Ref: CMK-20730
  • Loading branch information
ottermata committed Feb 12, 2025
1 parent d42a634 commit 7a9939d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cmk/gui/openapi/endpoints/quick_setup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,11 @@ def fetch_quick_setup_stage_action_result(params: Mapping[str, Any]) -> Response
tag_group="Checkmk Internal",
path_params=[QUICKSETUP_ID],
query_params=[QUICKSETUP_MODE],
additional_status_codes=[201, 303],
additional_status_codes=[201, 303, 429],
status_descriptions={
303: "The validation and complete action has been started in the background. "
"Redirecting to the 'Get background job status snapshot' endpoint."
"Redirecting to the 'Get background job status snapshot' endpoint.",
429: "Another Quick setup action already running.",
},
request_schema=QuickSetupFinalActionRequest,
response_schema=QuickSetupCompleteResponse,
Expand All @@ -334,10 +335,11 @@ def quick_setup_run_action(params: Mapping[str, Any]) -> Response:
tag_group="Checkmk Internal",
path_params=[QUICKSETUP_ID],
query_params=[QUICKSETUP_OBJECT_ID_REQUIRED],
additional_status_codes=[201, 303],
additional_status_codes=[201, 303, 429],
status_descriptions={
303: "The validation and complete action has been started in the background. "
"Redirecting to the 'Get background job status snapshot' endpoint."
"Redirecting to the 'Get background job status snapshot' endpoint.",
429: "Another Quick setup action already running.",
},
request_schema=QuickSetupFinalActionRequest,
response_schema=QuickSetupCompleteResponse,
Expand Down
2 changes: 2 additions & 0 deletions cmk/gui/openapi/restful_objects/type_defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ class CodeSample(TypedDict, total=True):
422,
423,
428,
429,
500,
504,
]
Expand Down Expand Up @@ -507,6 +508,7 @@ class CodeSample(TypedDict, total=True):
"422",
"423",
"428",
"429",
"500",
"504",
]
Expand Down

0 comments on commit 7a9939d

Please sign in to comment.