Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for --cluster-name or --cluster-id to databricks cluster …
…commands (#313) * Add support for --cluster-name or --cluster-id to databricks cluster commands Add information about what is being removed to the databricks groups remove command Update the license in setup.py Add support for --cluster-name or --cluster-id to databricks libraries commands * Checkpoint work on adding the libraries cluster tests Start adding support for errors if there are multiple clusters with the same name * Remove extraneous prints * Fix a merge conflict where get_clusters_by_name was added to PolicyService instead of ClusterService * remove inadvertant groups changes * Remove get_clusters_by_name function from clusters.cli and leverage ClusterApi.get_clusters_by_name instead. Move CLUSTER_OPTIONS from clusters.cli to utils Change libraries/cli to use ClusterApi.get_clusters_by_name for getting the cluster id instead of using clusters.cli.get_clusters_by_name * Add tests for databrics libraries list --cluster-name * Exclude the .tox directory from code coverage * Add #pragma no-coverage to lines in libaries/cli that will not be hit Fix lint errors around line too long * Move from mocking the libraries API to mocking the sdk interface underneath it to get better code coverage for the libaries api * Remove unused function from clusters/cli.py Add coverage for databricks cluster edit not getting a --json or --json-file parameter * Move hardcoded test cluster data from tests/clusters/test_cli and tests/libraries/test_cli into tests/test_data Add tests for databricks cluster get --cluster-name * Cleanup lint errors * One last lint error * Add tests to databricks cluster commands that just pass the json through for output Add # pragma: no cover to all of the click group functions to clean up code-coverage * Fix overindentation of tabulate * Add no-cover to all of the _group functions to fix code coverage as they aren't tested or used * remove code from sdk/service.py * databricks cluster get --cluster-name should return the same output as databricks cluster get --cluster-id * databricks clusters get should check cluster_id as valid and not only against None Fix the tests to reflect the updated databricks cluster get --cluster-name output Fix clusters/test_api.py to not have pylint warnings * Revert changes to databricks_cli/sdk/service.py as they were whitespace only and this file is autogenerated by Databricks Co-authored-by: Allen Reese <areese999@apple.com> Co-authored-by: Andrew Chen <andrewchen@databricks.com>
- Loading branch information
1 parent
81c058f
commit d602b54
Showing
23 changed files
with
533 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[run] | ||
omit = .tox/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.