Skip to main content

CLI to test azure resources, such as servicebus, eventhub, and storage

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azure-test-cli-0.4.4.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

azure_test_cli-0.4.4-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file azure-test-cli-0.4.4.tar.gz.

File metadata

  • Download URL: azure-test-cli-0.4.4.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for azure-test-cli-0.4.4.tar.gz
Algorithm Hash digest
SHA256 13460ed142e8dd7e9e7f0ce1c54f6a8a831881d535230447100a3f9dcbc02d8e
MD5 943f678068c1e763bb69d1850d3d1522
BLAKE2b-256 6c047e483e635c528312190c06ec78fa1227bb535f6cb4fde81df19cfdfc7aa0

See more details on using hashes here.

File details

Details for the file azure_test_cli-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: azure_test_cli-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for azure_test_cli-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c40b398b95ae4e54d0ddf72c1d8273265126e574f898c353fa2ca5c7710093ff
MD5 b35cfd7487ab5cc8ceb3b7ea2c81dea6
BLAKE2b-256 d7d7502cdf1f7ff83bc04c21771b0bfe863e98d7e3a4cef7111be585c28e7ca1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page