mirror of https://github.com/databricks/cli.git
5273d0c51a
## Changes Previously we only supported uploading Python wheels smaller than 10mb due to using Workspace.Import API and `content ` field https://docs.databricks.com/api/workspace/workspace/import By switching to use `WorkspaceFilesClient` we overcome the limit because it uses POST body for the API instead. ## Tests `TestAccUploadArtifactFileToCorrectRemotePath` integration test passes ``` === RUN TestAccUploadArtifactFileToCorrectRemotePath artifacts_test.go:28: gcp 2023/10/17 15:24:04 INFO Using Google Credentials sdk=true helpers.go:356: Creating /Users/.../integration-test-wsfs-ekggbkcfdkid artifacts.Upload(test.whl): Uploading... 2023/10/17 15:24:06 INFO Using Google Credentials mutator=artifacts.Upload(test) sdk=true artifacts.Upload(test.whl): Upload succeeded helpers.go:362: Removing /Users/.../integration-test-wsfs-ekggbkcfdkid --- PASS: TestAccUploadArtifactFileToCorrectRemotePath (5.66s) PASS coverage: 14.9% of statements in ./... ok github.com/databricks/cli/internal 6.109s coverage: 14.9% of statements in ./... ``` |
||
---|---|---|
.. | ||
acc | ||
build | ||
bundle | ||
python | ||
testdata | ||
testjsons | ||
testutil | ||
alerts_test.go | ||
api_test.go | ||
clusters_test.go | ||
filer_test.go | ||
fs_cat_test.go | ||
fs_cp_test.go | ||
fs_ls_test.go | ||
fs_mkdir_test.go | ||
fs_rm_test.go | ||
git_clone_test.go | ||
helpers.go | ||
init_test.go | ||
jobs_test.go | ||
locker_test.go | ||
repos_test.go | ||
secrets_test.go | ||
sync_test.go | ||
tags_test.go | ||
version_test.go | ||
workspace_test.go |