Skip to content

Commit b1d635c

Browse files
kk7dsCyrilRoelandteNovance
authored andcommitted
Fix failing copy_image flow init
The new networkx requirement apparently causes us to fail the test_init_copy_flow_as_non_owner test because a None value can not be added to the flow graph. This just mocks out the glance_store call that is failing to get the staging store to avoid us choking there so we can proceed. We are just testing get_flow so we never use it anyway. Closes-Bug: #1959361 Change-Id: I6fcb14ad240105ed0b1b9086c6c6c95034b4dd42 (cherry picked from commit ded8ecf)
1 parent fdf7b80 commit b1d635c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

glance/tests/unit/async_/flows/test_api_image_import.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,8 @@ def setUp(self):
549549
overwrite=False)
550550

551551
@mock.patch("glance.async_.flows.api_image_import.image_import")
552-
def test_init_copy_flow_as_non_owner(self, mock_import):
552+
@mock.patch('glance_store.get_store_from_store_identifier')
553+
def test_init_copy_flow_as_non_owner(self, mock_gs, mock_import):
553554
img_repo = mock.MagicMock()
554555
admin_repo = mock.MagicMock()
555556

0 commit comments

Comments
 (0)