Skip to content

Blobstorage

This task performs Azure Blob Storage put operations to a specified endpoint.

This is useful if the scenario is another user type than BlobStorageUser, but the scenario still requires an action towards a blob container.

Only supports RequestDirection.TO.

Step implementations

Arguments

  • direction RequestDirection - if the request is upstream or downstream

  • endpoint str - specifies details to be able to perform the request, e.g. account and container information

  • name str - name used in locust statistics

  • destination str (optional) - name of the file when uploaded, if not specified the basename of source will be used

  • source str (optional) - file path of local file that should be saved in Container

Format

endpoint

Using connection strings:

bs[s]://<AccountName>/<Container>?AccountKey=<AccountKey>[# Overwrite=<bool>]
  • AccountName str - name of storage account

  • AccountKey str - secret key to be able to "connect" to the storage account

  • Container str - name of the container to perform the request on

  • Overwrite bool - if files should be overwritten if they already exists in Container (default: False)

Using credentials:

bs[s]://<username>:<password>@<AccountName>/<Container># Tenant=<tenant>[&Overwrite=<bool>]
  • username str - username to connect as

  • password str - password for said user

  • AccountName str - name of storage account

  • Tenant str - name of tenant to authenticate with

  • Container str - name of the container to perform the request on

  • Overwrite bool - if files should be overwritten if they already exists in Container (default: False)

destination

The MIME type of an uploaded file will automagically be guessed based on the [rendered] destination file extension.