Move ID generation into link test method

Unlike the other IDs which are stored in the DB, this isn't relevant
for the Celery task as it invokes a link test. Moving it into the
proxy client will also enable us to generate a second ID in the next
commits, where we start doing a link test for the failover lambda.
This commit is contained in:
Ben Thorner
2021-07-19 14:38:27 +01:00
parent 7fb65761f9
commit 08f48379b4
4 changed files with 32 additions and 27 deletions

View File

@@ -566,10 +566,8 @@ def test_trigger_link_tests_invokes_cbc_proxy_client(
f'app.clients.cbc_proxy.CBCProxy{provider_capitalised}.send_link_test',
)
mocker.patch('app.celery.broadcast_message_tasks.uuid.uuid4', return_value=123)
trigger_link_test(provider)
assert mock_send_link_test.called_once_with('123')
assert mock_send_link_test.called_once()
@pytest.mark.parametrize('retry_count, expected_delay', [