Skip to content

Commit b366acb

Browse files
committed
Enable handle_containerized_fbc_operation_request for fbc-operations
[CLOUDDST-28644]
1 parent 0964469 commit b366acb

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

iib/web/api_v1.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
handle_rm_request,
5050
)
5151
from iib.workers.tasks.build_add_deprecations import handle_add_deprecations_request
52-
from iib.workers.tasks.build_fbc_operations import handle_fbc_operation_request
52+
from iib.workers.tasks.build_containerized_fbc_operations import (
53+
handle_containerized_fbc_operation_request,
54+
)
5355
from iib.workers.tasks.build_recursive_related_bundles import (
5456
handle_recursive_related_bundles_request,
5557
)
@@ -1332,7 +1334,7 @@ def fbc_operations() -> Tuple[flask.Response, int]:
13321334
safe_args = _get_safe_args(args, payload)
13331335
error_callback = failed_request_callback.s(request.id)
13341336
try:
1335-
handle_fbc_operation_request.apply_async(
1337+
handle_containerized_fbc_operation_request.apply_async(
13361338
args=args, link_error=error_callback, argsrepr=repr(safe_args), queue=celery_queue
13371339
)
13381340
except kombu.exceptions.OperationalError:

tests/test_web/test_api_v1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@ def test_fbc_operations_overwrite_not_allowed(mock_smfsc, client, db):
27942794
(None, {}),
27952795
),
27962796
)
2797-
@mock.patch('iib.web.api_v1.handle_fbc_operation_request.apply_async')
2797+
@mock.patch('iib.web.api_v1.handle_containerized_fbc_operation_request.apply_async')
27982798
@mock.patch('iib.web.api_v1.messaging.send_message_for_state_change')
27992799
def test_fbc_operations(
28002800
mock_smfc,
@@ -2877,7 +2877,7 @@ def test_fbc_operations(
28772877
(None, {}),
28782878
),
28792879
)
2880-
@mock.patch('iib.web.api_v1.handle_fbc_operation_request.apply_async')
2880+
@mock.patch('iib.web.api_v1.handle_containerized_fbc_operation_request.apply_async')
28812881
@mock.patch('iib.web.api_v1.messaging.send_message_for_state_change')
28822882
def test_fbc_operations_multiple_fragments(
28832883
mock_smfc,
@@ -2960,7 +2960,7 @@ def test_fbc_operations_multiple_fragments(
29602960
(None, {}),
29612961
),
29622962
)
2963-
@mock.patch('iib.web.api_v1.handle_fbc_operation_request.apply_async')
2963+
@mock.patch('iib.web.api_v1.handle_containerized_fbc_operation_request.apply_async')
29642964
@mock.patch('iib.web.api_v1.messaging.send_message_for_state_change')
29652965
def test_fbc_operations_backward_compatibility(
29662966
mock_smfc,

0 commit comments

Comments
 (0)