Aligned Installation
framework with UCX project
#32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several changes to the
Installation
framework in order to align it with the UCX project. The main changes are the addition of new methods to theInstallation
class, as well as modifications to the tests intest_installer.py
.In the
Installation
class, several new methods have been added:load_local
,username
,remove
,workspace_link
,workspace_markdown_link
, and_host
. Theload_local
method loads an object of a specific type from a local file, whileusername
returns the username associated with the installation. Theremove
method removes the installation folder from the workspace, andworkspace_link
andworkspace_markdown_link
return links to files in the workspace. The_host
method returns the host URL for the workspace.In the
test_installer.py
file, the tests for theInstallState
class have been updated to include a new test for thefrom_installation
method, which creates anInstallState
object from an existingInstallation
object. Additionally, thetest_state_corrupt
test has been added to test the behavior of theInstallState
class when the installation is not found.Overall, this pull request aims to improve the functionality and robustness of the
Installation
framework by adding new methods and updating the tests.Relevant PRs:
installation
package fromdatabricks-labs-blueprint
ucx#860