a5440afde8 | ||
---|---|---|
lib | ||
test | ||
.gitignore | ||
Gemfile | ||
README.md | ||
Rakefile | ||
azure.gemspec |
README.md
Azure Ruby SDK
Generating documentation
Run the following command:
rake doc
This will generate the API documentation in the ./doc
directory.
Running tests
In order to run the tests, run rake
.
This will run all the unit tests, and then attempt to run the integration tests, which need a real azure server running.
In order for the integration tests to run, you need the following ENV variables:
AZURE_STORAGE_ACCOUNT
: The name of the storage account you're using.- If testing against the emulator, this must be
devstoreaccount1
- If testing against the emulator, this must be
AZURE_STORAGE_ACCESS_KEY
: The Base64-encoded Access Key for your storage account.- If testing against the emulator, this must be
Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
- If testing against the emulator, this must be
AZURE_BLOB_HOST
: Pointing to the server running the Azure platform.- If testing against the real thing:
http://<account-name>.blob.core.windows.net
- If testing against the emulator:
http://localhost:10000/<account-name>
- If testing against the real thing:
AZURE_QUEUE_HOST
: Pointing to the server running the Azure platform.- If testing against the real thing:
http://<account-name>.queue.core.windows.net
- If testing against the emulator:
http://localhost:10001/<account-name>
- If testing against the real thing:
AZURE_TABLE_HOST
: Pointing to the server running the Azure platform.- If testing against the real thing:
http://<account-name>.table.core.windows.net
- If testing against the emulator:
http://localhost:10002/<account-name>
- If testing against the real thing:
AZURE_SERVICEBUS_NAMESPACE
: a ServiceBus management namespace.AZURE_SERVICEBUS_ACCESS_KEY
: The Base64-encoded Access Key for your ServiceBus namespace.AZURE_SERVICEBUS_ISSUER
: The name of the issuer for the ServiceBus. This should beowner