Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions acceptance/selftest/record_cloud/pipeline-crud/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
"test-pipeline-1"

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.0/pipelines/[UUID]"
Expand All @@ -40,10 +36,6 @@
>>> [CLI] pipelines update [UUID] --json @pipeline2.json

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "PUT",
"path": "/api/2.0/pipelines/[UUID]",
Expand All @@ -65,10 +57,6 @@
"test-pipeline-2"

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.0/pipelines/[UUID]"
Expand All @@ -78,10 +66,6 @@
>>> [CLI] pipelines delete [UUID]

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "DELETE",
"path": "/api/2.0/pipelines/[UUID]"
Expand All @@ -94,10 +78,6 @@ Error: The specified pipeline [UUID] was not found.
Exit code: 1

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.0/pipelines/[UUID]"
Expand Down
48 changes: 0 additions & 48 deletions acceptance/selftest/record_cloud/volume-io/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
}

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.1/unity-catalog/schemas/main.schema-[UNIQUE_NAME]"
Expand All @@ -42,10 +38,6 @@
}

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "POST",
"path": "/api/2.1/unity-catalog/volumes",
Expand All @@ -64,10 +56,6 @@
}

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.1/unity-catalog/volumes/main.schema-[UNIQUE_NAME].volume-[UNIQUE_NAME]"
Expand All @@ -77,10 +65,6 @@
./hello.txt -> dbfs:/Volumes/main/schema-[UNIQUE_NAME]/volume-[UNIQUE_NAME]/hello.txt

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "HEAD",
"path": "/api/2.0/fs/directories/Volumes/main/schema-[UNIQUE_NAME]/volume-[UNIQUE_NAME]"
Expand All @@ -102,10 +86,6 @@
hello.txt

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.0/fs/directories/Volumes/main/schema-[UNIQUE_NAME]/volume-[UNIQUE_NAME]"
Expand All @@ -114,10 +94,6 @@ hello.txt
>>> [CLI] fs cat dbfs:/Volumes/main/schema-[UNIQUE_NAME]/volume-[UNIQUE_NAME]/hello.txt
hello, world
>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.0/fs/files/Volumes/main/schema-[UNIQUE_NAME]/volume-[UNIQUE_NAME]/hello.txt"
Expand All @@ -126,10 +102,6 @@ hello, world
>>> [CLI] fs rm dbfs:/Volumes/main/schema-[UNIQUE_NAME]/volume-[UNIQUE_NAME]/hello.txt

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "HEAD",
"path": "/api/2.0/fs/directories/Volumes/main/schema-[UNIQUE_NAME]/volume-[UNIQUE_NAME]/hello.txt"
Expand All @@ -146,10 +118,6 @@ hello, world
>>> [CLI] fs ls dbfs:/Volumes/main/schema-[UNIQUE_NAME]/volume-[UNIQUE_NAME]

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.0/fs/directories/Volumes/main/schema-[UNIQUE_NAME]/volume-[UNIQUE_NAME]"
Expand All @@ -158,10 +126,6 @@ hello, world
>>> [CLI] volumes delete main.schema-[UNIQUE_NAME].volume-[UNIQUE_NAME]

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "DELETE",
"path": "/api/2.1/unity-catalog/volumes/main.schema-[UNIQUE_NAME].volume-[UNIQUE_NAME]"
Expand All @@ -173,10 +137,6 @@ Error: Volume 'main.schema-[UNIQUE_NAME].volume-[UNIQUE_NAME]' does not exist.
Exit code: 1

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.1/unity-catalog/volumes/main.schema-[UNIQUE_NAME].volume-[UNIQUE_NAME]"
Expand All @@ -185,10 +145,6 @@ Exit code: 1
>>> [CLI] schemas delete main.schema-[UNIQUE_NAME]

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "DELETE",
"path": "/api/2.1/unity-catalog/schemas/main.schema-[UNIQUE_NAME]"
Expand All @@ -200,10 +156,6 @@ Error: Schema 'main.schema-[UNIQUE_NAME]' does not exist.
Exit code: 1

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.1/unity-catalog/schemas/main.schema-[UNIQUE_NAME]"
Expand Down
40 changes: 0 additions & 40 deletions acceptance/selftest/record_cloud/workspace-file-io/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
"method": "GET",
"path": "/api/2.0/preview/scim/v2/Me"
}
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "POST",
"path": "/api/2.0/workspace/mkdirs",
Expand All @@ -27,10 +23,6 @@
>>> [CLI] workspace import /Users/[USERNAME]/[UNIQUE_NAME]/hello.txt --format AUTO --file ./hello.txt

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "POST",
"path": "/api/2.0/workspace/import",
Expand All @@ -49,10 +41,6 @@
}

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.0/workspace/list",
Expand All @@ -69,10 +57,6 @@
}

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.0/workspace/get-status",
Expand All @@ -88,10 +72,6 @@
hello, world

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.0/workspace/export",
Expand All @@ -105,10 +85,6 @@ hello, world
>>> [CLI] workspace delete /Users/[USERNAME]/[UNIQUE_NAME]/hello.txt

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "POST",
"path": "/api/2.0/workspace/delete",
Expand All @@ -124,10 +100,6 @@ Error: Path (/Users/[USERNAME]/[UNIQUE_NAME]/hello.txt) doesn't exist.
Exit code: 1

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.0/workspace/get-status",
Expand All @@ -144,21 +116,13 @@ ID Type Language Path
>>> [CLI] workspace delete /Users/[USERNAME]/[UNIQUE_NAME]

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.0/workspace/list",
"q": {
"path": "/Users/[USERNAME]/[UNIQUE_NAME]"
}
}
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "POST",
"path": "/api/2.0/workspace/delete",
Expand All @@ -174,10 +138,6 @@ Error: Path (/Users/[USERNAME]/[UNIQUE_NAME]) doesn't exist.
Exit code: 1

>>> print_requests
{
"method": "GET",
"path": "/.well-known/databricks-config"
}
{
"method": "GET",
"path": "/api/2.0/workspace/list",
Expand Down
15 changes: 5 additions & 10 deletions integration/assumptions/dashboard_assumptions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,10 @@ func TestDashboardAssumptions_WorkspaceImport(t *testing.T) {
})
require.NoError(t, err)

// Confirm that only the expected fields have been updated.
assert.ElementsMatch(t, []string{
"etag",
"update_time",
}, updatedFieldPaths)

// The warehouse_id field is cleared after workspace import.
assert.ElementsMatch(t, []string{
"warehouse_id",
}, deletedFieldPaths)
// etag and update_time always change after workspace import. serialized_dashboard and
// warehouse_id vary by Lakeview server version: observed on AWS staging but not GCP prod.
assert.Subset(t, updatedFieldPaths, []string{"etag", "update_time"})
assert.Subset(t, []string{"etag", "update_time", "serialized_dashboard"}, updatedFieldPaths)
assert.Subset(t, []string{"warehouse_id"}, deletedFieldPaths)
}
}