b44a68d213
* Use MSAL library support instead of ADAL. --------- Co-authored-by: Ray Luo <rayluo.mba@gmail.com> |
||
---|---|---|
.. | ||
recordings | ||
README.md | ||
__init__.py | ||
conftest.py | ||
fake_settings.py | ||
settings.py | ||
test_cli.py | ||
test_core.py | ||
test_lib.py | ||
test_mock.py | ||
test_multithread.py | ||
test_transfer.py | ||
test_utils.py | ||
testing.py |
README.md
To run the test suite against the published package:
py.test -x -vvv --doctest-modules --pyargs azure.datalake.store tests
To run the test suite against a local build:
python setup.py develop
py.test -x -vvv --doctest-modules --pyargs azure.datalake.store tests
This test suite uses VCR.py to record the
responses from Azure. Borrowing from VCR's
usage, this
test suite has four recording modes: once
, new_episodes
, none
, all
. The
recording mode can be changed using the RECORD_MODE
environment variable when
invoking the test suite (defaults to none
).
To record responses for a new test without updating previous recordings:
RECORD_MODE=once py.test -x -vvv --doctest-modules --pyargs azure-datalake-store tests
To record responses for all tests even if previous recordings exist:
RECORD_MODE=all py.test -x -vvv --doctest-modules --pyargs azure-datalake-store tests
When recording new responses, you will need valid Azure credentials. The following environment variables should be defined:
azure_data_lake_store_name
: The data store account name, without any suffix like azuredatalakestore.netazure_subscription_id
: Subscription ID for ADLS accountazure_resource_group_name
: Resource group for adls account.azure_service_principal
: Service principal of app with owner access to account.azure_service_principal_secret
: Service principal secret with owner access to account.AZURE_ACL_TEST_APPID
: Service principal of app with access to account.
Optionally, you may need to define azure_username
, azure_password
, azure_tenant_id
or azure_data_lake_store_url_suffix
.