clients: cbc_proxy handles lambda invoke response

Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk>
This commit is contained in:
Toby Lorne
2020-10-20 15:18:11 +01:00
parent 73507b3abc
commit 75de4abd47
2 changed files with 12 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ def test_cbc_proxy_ld_client_has_correct_keys(cbc_proxy):
assert secret == 'cbc-proxy-aws-secret-access-key'
def test_cbc_proxy_create_and_send_invokes_function(mocker, cbc_proxy):
identifier = 'my-identifier'
headline = 'my-headline'
@@ -40,6 +41,10 @@ def test_cbc_proxy_create_and_send_invokes_function(mocker, cbc_proxy):
create=True,
)
ld_client_mock.invoke.return_value = {
'StatusCode': 200,
}
cbc_proxy.create_and_send_broadcast(
identifier=identifier,
headline=headline,