Skip to main content

azure-test-cli

Command line interface to test azure resources, such as servicebus, eventhub, blob storate, queue storage, and table storage.

Install

pip install

pip install azure-test-cli

Manually

git clone https://github.com/wildengineer/azure-test-cli.git
cd azure-test-cli
install_cli.sh

Use install_cli.sh -o if you want to override an existing install of the cli.

Usage

Azure Storage

Provides many tests for testing storage resources

Usage: aztest storage [OPTIONS] COMMAND [ARGS]...

  Perform blobstorage tests

Options:
  --help  Show this message and exit.

Commands:
  appendblob  Perform append blob tests
  blockblob   Perform block blob tests

BlockBlob Subcommands

Usage: aztest storage blockblob [OPTIONS] COMMAND [ARGS]...

  Perform block blob tests

Options:
  --help  Show this message and exit.

Commands:
  download  Download content to a block blob
  upload    Upload file to a block blob
Upload
Usage: aztest storage blockblob upload [OPTIONS]

  Upload file to a block blob

Options:
  -a, --storage_account TEXT  Name of blob account  [required]
  -k, --storage_key TEXT      Storage access key  [required]
  -c, --container TEXT        Blob container name  [required]
  -b, --path TEXT             Blob path of uploaded file  [required]
  -f, --file TEXT             Content to upload to path  [required]
  --help                      Show this message and exit.
Download
Usage: aztest storage blockblob download [OPTIONS]

  Download content to a block blob

Options:
  -a, --storage_account TEXT  Name of blob account  [required]
  -k, --storage_key TEXT      Storage access key  [required]
  -c, --container TEXT        Blob container name  [required]
  -b, --path TEXT             Blob path of uploaded file  [required]
  -f, --file TEXT             Content to upload to path  [required]
  --help                      Show this message and exit.

AppendBlob Subcommands

Usage: aztest storage appendblob [OPTIONS] COMMAND [ARGS]...

  Perform append blob tests

Options:
  --help  Show this message and exit.

Commands:
  append    Upload content to an append blob
  delete    Delete an append blob
  download  Download append blob to local file
  stream    Stream append blob to output
Append

Append a file to an append blob. If the append blob doesn't exist, then it's created.

Usage: aztest storage appendblob append [OPTIONS]

  Upload content to an append blob

Options:
  -a, --storage_account TEXT  Name of blob account  [required]
  -k, --storage_key TEXT      Name of SAS policy with write access  [required]
  -c, --container TEXT        Blob container name  [required]
  -b, --blob_path TEXT        Blob path of uploaded file  [required]
  -f, --file_path TEXT        Content to upload to path  [required]
  -r, --repeat INTEGER        Count of times to repeat the append the content
  --help                      Show this message and exit.
Stream

Stream a blob to stdout. After a timeout the operation will exit. Allows for viewing live appends.

Usage: aztest storage appendblob stream [OPTIONS]

  Stream append blob to output

Options:
  -a, --storage_account TEXT  Name of blob account  [required]
  -k, --storage_key TEXT      Name of SAS policy with write access  [required]
  -c, --container TEXT        Blob container name  [required]
  -b, --blob_path TEXT        Blob path of uploaded file  [required]
  --help                      Show this message and exit.
Download

Download a file from an append blob.

Usage: aztest storage appendblob download [OPTIONS]

  Download append blob to local file

Options:
  -a, --storage_account TEXT  Name of blob account  [required]
  -k, --storage_key TEXT      Name of SAS policy with write access  [required]
  -c, --container TEXT        Blob container name  [required]
  -b, --blob_path TEXT        Blob path of uploaded file  [required]
  -f, --file_path TEXT        Content to upload to path  [required]
  --help                      Show this message and exit.
Delete

Delete an append blob.

Usage: aztest storage appendblob delete [OPTIONS]

  Delete an append blob

Options:
  -a, --storage_account TEXT  Name of blob account  [required]
  -k, --storage_key TEXT      Name of access key  [required]
  -c, --container TEXT        Blob container name  [required]
  -b, --blob_path TEXT        Blob path of file  [required]
  --help                      Show this message and exit.

Eventhub

Provides several tests for azure eventhub.

Usage: aztest eventhub [OPTIONS] COMMAND [ARGS]...

  Perform eventhub tests

Options:
  --help  Show this message and exit.

Commands:
  receive  Receive messages from eventhub
  send     Send messages to eventhub

Send

Usage: aztest eventhub send [OPTIONS]

  Send messages to eventhub

Options:
  -s, --eventhub_namespace TEXT  Name of event hub namespace  [required]
  -n, --eventhub_name TEXT       Name of eventhub  [required]
  -p, --eventhub_sas_name TEXT   Name of eventhub SAS policy with send rights
                                 [required]
  -k, --eventhub_sas_key TEXT    Key value of eventhub SAS policy with send
                                 rights  [required]
  -m, --message TEXT             Message to send. Must be in quotes
                                 [required]
  -r, --repeat INTEGER           Count of times to repeat the send of the
                                 message
  --help                         Show this message and exit.

Receive

Usage: aztest eventhub receive [OPTIONS]

  Receive messages from eventhub

Options:
  -s, --eventhub_namespace TEXT  Name of event hub namespace  [required]
  -n, --eventhub_name TEXT       Name of eventhub  [required]
  -p, --eventhub_sas_name TEXT   Name of eventhub SAS policy with listen
                                 rights  [required]
  -k, --eventhub_sas_key TEXT    Key value of eventhub SAS policy with listen
                                 rights  [required]
  -c, --consumer_group TEXT      Name of event hub consumer group  [required]
  --help                         Show this message and exit.

Service Bus

Provides several tests for azure service bus.

Usage: aztest servicebus [OPTIONS] COMMAND [ARGS]...

  Perform servicebus tests

Options:
  --help  Show this message and exit.

Commands:
  queue  Perform servicebus queue tests
  topic  Perform servicebus topic tests

Queue Subcommands

Usage: aztest servicebus queue [OPTIONS] COMMAND [ARGS]...

  Perform servicebus queue tests

Options:
  --help  Show this message and exit.

Commands:
  receive  Receive messages onto servicebus queue
  send     Send messages onto servicebus queue
Send
Usage: aztest servicebus queue send [OPTIONS]

  Send messages onto servicebus queue

Options:
  -s, --servicebus_namespace TEXT
                                  Name of servicebus namespace  [required]
  -n, --servicebus_queue_name TEXT
                                  Name of queue  [required]
  -p, --servicebus_sas_name TEXT  Name of servicebus SAS policy with send
                                  access  [required]
  -k, --servicebus_sas_key TEXT   Key value of servicebus SAS policy with send
                                  access  [required]
  -m, --message TEXT              Message to send. Must be in quotes
                                  [required]
  -r, --repeat INTEGER            Count of times to repeat the send of the
                                  message
  --help                          Show this message and exit.
Receive
Usage: aztest servicebus queue receive [OPTIONS]

  Receive messages onto servicebus queue

Options:
  -s, --servicebus_namespace TEXT
                                  Name of servicebus namespace  [required]
  -n, --servicebus_queue_name TEXT
                                  Name of queue  [required]
  -p, --servicebus_sas_name TEXT  Name of servicebus SAS policy with listen
                                  access  [required]
  -k, --servicebus_sas_key TEXT   Key value of servicebus SAS policy with
                                  listen access  [required]
  --help                          Show this message and exit.

Metadata

Release files for azure-test-cli 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for azure-test-cli 0.4.4
File Size Uploaded
azure-test-cli-0.4.4.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for azure-test-cli 0.4.4
File Interpreter ABI Platform
azure_test_cli-0.4.4-py3-none-any.whl Python 3 none any Details

Total release size: 15.9 kB

Release files / azure-test-cli-0.4.4.tar.gz

Download URL azure-test-cli-0.4.4.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
13460ed142e8dd7e9e7f0ce1c54f6a8a831881d535230447100a3f9dcbc02d8e
BLAKE2b-256 checksum
How to use checksums
6c047e483e635c528312190c06ec78fa1227bb535f6cb4fde81df19cfdfc7aa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release files / azure_test_cli-0.4.4-py3-none-any.whl

Download URL azure_test_cli-0.4.4-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c40b398b95ae4e54d0ddf72c1d8273265126e574f898c353fa2ca5c7710093ff
BLAKE2b-256 checksum
How to use checksums
d7d7502cdf1f7ff83bc04c21771b0bfe863e98d7e3a4cef7111be585c28e7ca1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.4.4 This release

2 release files

0.4.3

2 release files

0.4.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page