@@ -587,7 +587,7 @@ def test_add_bundles_graph_update_mode_not_allowed(
587587
588588@pytest .mark .parametrize ('from_index' , ('some-common-index:v4.15' , 'another-common-index:v4.15' ))
589589@mock .patch ('iib.web.api_v1.messaging.send_message_for_state_change' )
590- @mock .patch ('iib.web.api_v1.handle_add_request ' )
590+ @mock .patch ('iib.web.api_v1.handle_containerized_add_request ' )
591591def test_add_bundles_graph_update_mode_allowed (
592592 mock_har , mock_smfsc , app , client , auth_env , db , from_index
593593):
@@ -611,7 +611,7 @@ def test_add_bundles_graph_update_mode_allowed(
611611@mock .patch ('iib.web.api_v1.db.session' )
612612@mock .patch ('iib.web.api_v1.flask.jsonify' )
613613@mock .patch ('iib.web.api_v1.RequestAdd' )
614- @mock .patch ('iib.web.api_v1.handle_add_request .apply_async' )
614+ @mock .patch ('iib.web.api_v1.handle_containerized_add_request .apply_async' )
615615@mock .patch ('iib.web.api_v1.messaging.send_message_for_state_change' )
616616def test_add_bundles_unique_bundles (mock_smfsc , mock_har , mock_radd , mock_fj , mock_dbs , client ):
617617 data = {
@@ -830,7 +830,7 @@ def test_add_bundle_from_index_and_add_arches_missing(mock_smfsc, db, auth_env,
830830 ('scratch' , True , 'username:password' , [], 'some:thing' , 'DeV' , 'semver' ),
831831 ),
832832)
833- @mock .patch ('iib.web.api_v1.handle_add_request ' )
833+ @mock .patch ('iib.web.api_v1.handle_containerized_add_request ' )
834834@mock .patch ('iib.web.api_v1.messaging.send_message_for_state_change' )
835835def test_add_bundle_success (
836836 mock_smfsc ,
@@ -926,7 +926,7 @@ def test_add_bundle_success(
926926
927927
928928@pytest .mark .parametrize ('force_backport' , (False , True ))
929- @mock .patch ('iib.web.api_v1.handle_add_request ' )
929+ @mock .patch ('iib.web.api_v1.handle_containerized_add_request ' )
930930def test_add_bundle_force_backport (mock_har , force_backport , db , auth_env , client ):
931931 data = {
932932 'bundles' : ['some:thing' ],
@@ -942,7 +942,7 @@ def test_add_bundle_force_backport(mock_har, force_backport, db, auth_env, clien
942942 assert mock_har .apply_async .call_args [1 ]['args' ][7 ] == force_backport
943943
944944
945- @mock .patch ('iib.web.api_v1.handle_add_request ' )
945+ @mock .patch ('iib.web.api_v1.handle_containerized_add_request ' )
946946@mock .patch ('iib.web.api_v1.messaging.send_message_for_state_change' )
947947def test_add_bundle_overwrite_token_redacted (mock_smfsc , mock_har , app , auth_env , client , db ):
948948 token = 'username:password'
@@ -1002,7 +1002,7 @@ def test_add_bundle_overwrite_token_redacted(mock_smfsc, mock_har, app, auth_env
10021002 ({'[email protected] ' : 'Patriots' }, True , None ), 10031003 ),
10041004)
1005- @mock .patch ('iib.web.api_v1.handle_add_request ' )
1005+ @mock .patch ('iib.web.api_v1.handle_containerized_add_request ' )
10061006@mock .patch ('iib.web.api_v1.messaging.send_message_for_state_change' )
10071007def test_add_bundle_custom_user_queue (
10081008 mock_smfsc , mock_har , app , auth_env , client , user_to_queue , overwrite_from_index , expected_queue
@@ -1807,7 +1807,7 @@ def test_regenerate_bundle_batch_invalid_input(payload, error_msg, app, auth_env
18071807 assert rv .json == {'error' : error_msg }
18081808
18091809
1810- @mock .patch ('iib.web.api_v1.handle_add_request ' )
1810+ @mock .patch ('iib.web.api_v1.handle_containerized_add_request ' )
18111811@mock .patch ('iib.web.api_v1.handle_containerized_rm_request' )
18121812@mock .patch ('iib.web.api_v1.messaging.send_messages_for_new_batch_of_requests' )
18131813@mock .patch .dict ('iib.web.api_v1.flask.current_app.config' , {'IIB_INDEX_TO_GITLAB_PUSH_MAP' : {}})
0 commit comments