Skip to content

Commit ea27988

Browse files
committed
acceptance: regenerate outputs for updated testserver
The testserver now returns additional schema fields (metastore_id, schema_id, enable_predictive_optimization) which updates golden files in affected tests. Co-authored-by: Isaac
1 parent 673aa1e commit ea27988

File tree

5 files changed

+24
-6
lines changed

5 files changed

+24
-6
lines changed

acceptance/bundle/migrate/grants/out.original_state.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,15 @@
180180
"attributes": {
181181
"catalog_name": "main",
182182
"comment": null,
183-
"enable_predictive_optimization": null,
183+
"enable_predictive_optimization": "INHERIT",
184184
"force_destroy": true,
185185
"id": "main.schema_grants",
186-
"metastore_id": null,
186+
"metastore_id": "[UUID]",
187187
"name": "schema_grants",
188188
"owner": "[USERNAME]",
189189
"properties": null,
190190
"provider_config": [],
191-
"schema_id": "",
191+
"schema_id": "[UUID]",
192192
"storage_root": null
193193
},
194194
"sensitive_attributes": [],

acceptance/bundle/resources/schemas/recreate/output.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,17 @@ Error: Resource catalog.SchemaInfo not found: main.myschema
7373
"comment":"COMMENT1",
7474
"created_at":[UNIX_TIME_MILLIS][0],
7575
"created_by":"[USERNAME]",
76+
"effective_predictive_optimization_flag": {
77+
"inherited_from_name":"deco-uc-prod-isolated-aws-us-east-1",
78+
"inherited_from_type":"METASTORE",
79+
"value":"ENABLE"
80+
},
81+
"enable_predictive_optimization":"INHERIT",
7682
"full_name":"newmain.myschema",
83+
"metastore_id":"[UUID]",
7784
"name":"myschema",
7885
"owner":"[USERNAME]",
86+
"schema_id":"[UUID]",
7987
"updated_at":[UNIX_TIME_MILLIS][0],
8088
"updated_by":"[USERNAME]"
8189
}

acceptance/bundle/user_agent/output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ OK destroy.terraform /api/2.0/workspace-files/import-file/Workspace/Users/[USE
6464
OK destroy.terraform /api/2.0/workspace/delete engine/terraform
6565
MISS destroy.terraform /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]'
6666
MISS destroy.terraform /api/2.1/unity-catalog/schemas/mycatalog.myschema 'databricks-tf-provider/1.111.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat'
67+
MISS destroy.terraform /api/2.1/unity-catalog/current-metastore-assignment 'databricks-tf-provider/1.111.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat'
6768
MISS destroy.terraform /api/2.1/unity-catalog/schemas/mycatalog.myschema 'databricks-tf-provider/1.111.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat'
6869
MISS plan.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat'
6970
MISS plan.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat'

acceptance/bundle/user_agent/simple/out.requests.deploy.terraform.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,15 @@
239239
"attributes": {
240240
"catalog_name": "mycatalog",
241241
"comment": null,
242-
"enable_predictive_optimization": null,
242+
"enable_predictive_optimization": "INHERIT",
243243
"force_destroy": true,
244244
"id": "mycatalog.myschema",
245-
"metastore_id": null,
245+
"metastore_id": "[UUID]",
246246
"name": "myschema",
247247
"owner": "[USERNAME]",
248248
"properties": null,
249249
"provider_config": [],
250-
"schema_id": "",
250+
"schema_id": "[UUID]",
251251
"storage_root": null
252252
},
253253
"sensitive_attributes": [],

acceptance/bundle/user_agent/simple/out.requests.destroy.terraform.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,15 @@
145145
"force": "true"
146146
}
147147
}
148+
{
149+
"headers": {
150+
"User-Agent": [
151+
"databricks-tf-provider/1.111.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat"
152+
]
153+
},
154+
"method": "GET",
155+
"path": "/api/2.1/unity-catalog/current-metastore-assignment"
156+
}
148157
{
149158
"headers": {
150159
"User-Agent": [

0 commit comments

Comments
 (0)