clients: cbc_proxy lambda client is unabbreviated

for code clarity

Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk>
This commit is contained in:
Toby Lorne
2020-10-22 12:22:11 +01:00
parent c9eb9c8622
commit ff1ffc7fba
2 changed files with 10 additions and 10 deletions

View File

@@ -16,13 +16,13 @@ def cbc_proxy(client, mocker):
return client
def test_cbc_proxy_ld_client_has_correct_region(cbc_proxy):
assert cbc_proxy._ld_client._client_config.region_name == 'eu-west-2'
def test_cbc_proxy_lambda_client_has_correct_region(cbc_proxy):
assert cbc_proxy._lambda_client._client_config.region_name == 'eu-west-2'
def test_cbc_proxy_ld_client_has_correct_keys(cbc_proxy):
key = cbc_proxy._ld_client._request_signer._credentials.access_key
secret = cbc_proxy._ld_client._request_signer._credentials.secret_key
def test_cbc_proxy_lambda_client_has_correct_keys(cbc_proxy):
key = cbc_proxy._lambda_client._request_signer._credentials.access_key
secret = cbc_proxy._lambda_client._request_signer._credentials.secret_key
assert key == 'cbc-proxy-aws-access-key-id'
assert secret == 'cbc-proxy-aws-secret-access-key'
@@ -35,7 +35,7 @@ def test_cbc_proxy_create_and_send_invokes_function(mocker, cbc_proxy):
ld_client_mock = mocker.patch.object(
cbc_proxy,
'_ld_client',
'_lambda_client',
create=True,
)
@@ -71,7 +71,7 @@ def test_cbc_proxy_create_and_send_handles_invoke_error(mocker, cbc_proxy):
ld_client_mock = mocker.patch.object(
cbc_proxy,
'_ld_client',
'_lambda_client',
create=True,
)
@@ -102,7 +102,7 @@ def test_cbc_proxy_create_and_send_handles_function_error(mocker, cbc_proxy):
ld_client_mock = mocker.patch.object(
cbc_proxy,
'_ld_client',
'_lambda_client',
create=True,
)