You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The upload_object() method on the AzureCloudContainerConnection class allows users to write data to Azure blob storage. Currently we support this data being provided as either a string or dictionary. However, we do not currently validate the type of message argument to ensure that it is either str or dict. This results in the failing silently when the type of message is anything else e.g. None. To resolve this we should implement some data type validation on message so that when it is a type not currently supported by upload_object() we raise an exception.
Acceptance Criteria:
GIVEN the AzureCloudContainerConnection class
WHEN the upload_object() method is called with a value for message that is not str or dict
THEN a ValueError exception is raised that clearly explains the issue to the user
The text was updated successfully, but these errors were encountered:
The
upload_object()
method on theAzureCloudContainerConnection
class allows users to write data to Azure blob storage. Currently we support this data being provided as either a string or dictionary. However, we do not currently validate the type ofmessage
argument to ensure that it is eitherstr
ordict
. This results in the failing silently when the type ofmessage
is anything else e.g.None
. To resolve this we should implement some data type validation onmessage
so that when it is a type not currently supported byupload_object()
we raise an exception.Acceptance Criteria:
GIVEN the
AzureCloudContainerConnection
classWHEN the
upload_object()
method is called with a value formessage
that is notstr
ordict
THEN a
ValueError
exception is raised that clearly explains the issue to the userThe text was updated successfully, but these errors were encountered: