azure-data-lake-store-python/tests
akharit b44a68d213
Add MSAL support (#330)
* Use MSAL library support instead of ADAL.

---------

Co-authored-by: Ray Luo <rayluo.mba@gmail.com>
2023-04-24 12:30:51 -07:00
..
recordings Don't pass default acls for files when doing recrusive operations (#323) 2021-04-02 13:17:17 -07:00
README.md Update documentation for tests (#282) 2019-04-25 10:14:38 -07:00
__init__.py Merge First release into master. 2016-11-21 15:34:40 -08:00
conftest.py fix parameter name 2017-09-05 18:46:25 -07:00
fake_settings.py import os missing 2017-09-06 11:50:45 -07:00
settings.py Merge dev to master. Version 0.0.38 release (#259) 2018-11-12 16:54:20 -08:00
test_cli.py Release version 0.0.41 (#273) 2019-02-04 11:16:11 -08:00
test_core.py Release 0.0.45 (#284) 2019-05-10 13:03:20 -07:00
test_lib.py Updates to support refresh of service principal. 2017-06-28 17:57:44 -07:00
test_mock.py Add MSAL support (#330) 2023-04-24 12:30:51 -07:00
test_multithread.py Add MSAL support (#330) 2023-04-24 12:30:51 -07:00
test_transfer.py Fixed Multi chunk transfer hangs as merging chunks fails (#187) 2017-08-09 18:59:45 -07:00
test_utils.py Merge First release into master. 2016-11-21 15:34:40 -08:00
testing.py Add MSAL support (#330) 2023-04-24 12:30:51 -07:00

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.net
  • azure_subscription_id : Subscription ID for ADLS account
  • azure_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.