v0.2.1
- Moved remaining UCX integration tests and fixtures (#45). In this release, we have made significant changes to the UCX integration tests and fixtures, as indicated by multiple commit messages. Firstly, we have moved remaining UCX integration tests and fixtures, introducing a new PyTest fixture called
Installationin the README.md file, providing instructions on how to adddatabricks-labs-pytesteras a test-time dependency when usinghatchas the build system. Additionally, we have added themake_feature_tablefixture, which creates a Databricks feature table and cleans it up after the test, taking optional parameters for customization. We have also modified themypyconfiguration in thepyproject.tomlfile to allow untyped imports during the type-checking process. In thecompute.pyfile, we have updated themake_jobfixture to return a function that creates adatabricks.sdk.service.jobs.Jobinstance, and modified thecreatefunction to return thedatabricks.sdk.service.jobs.Jobinstance directly. We have also added a new fixture calledmake_feature_tablein the plugin file, which simulates the lifecycle of a feature table in the machine learning service, with functions to generate a unique name and create/remove the feature table. In thetest_catalog.pyfile, we have made changes to clean up the file and ensure proper logging of test events and errors. Overall, these changes aim to refactor, expand functionality, and improve user-friendliness for the adopters of the project, ensuring proper logging and debugging capabilities. - [internal] port over existing UCX integration tests (#44). Three new integration tests have been added to the UCX project to verify the functionality of the
RemoveAfterproperty for tables and schemas. Thetest_remove_after_property_tableandtest_remove_after_property_schematests create new tables and schemas, respectively, and check if theRemoveAfterproperty is included in their properties. However, these tests are still marked asTODOdue to existing issues with thetables.getandschemas.getfunctions. In addition, existing UCX integration tests have been ported over, which include new functions for testing the removal of resources based on theRemoveAftertag. These tests are located in thetests/integration/fixtures/test_compute.pyfile and test the removal of various types of resources, including jobs, clusters, warehouses, and instance pools. The tests ensure that the time until purge is less than theTEST_RESOURCE_PURGE_TIMEOUTvalue plus one hour and import thedatetimemodule and theTEST_RESOURCE_PURGE_TIMEOUTconstant from thewatchdogfixture, as well as thelogginganddatabricks.sdk.service.iammodules.
Contributors: @nfx