Skip to content

Commit 158ca39

Browse files
committed
Fix tests
1 parent 8040ebd commit 158ca39

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

NEXT_CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@
99
### Dependency updates
1010

1111
### API Changes
12+
13+
- Bump databricks-sdk-go from v0.112.0 to v0.116.0.

bundle/direct/dresources/pipeline.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ type PipelineRemote struct {
2020
ClusterId string `json:"cluster_id,omitempty"`
2121
CreatorUserName string `json:"creator_user_name,omitempty"`
2222
EffectiveBudgetPolicyId string `json:"effective_budget_policy_id,omitempty"`
23+
EffectivePublishingMode pipelines.PublishingMode `json:"effective_publishing_mode,omitempty"`
2324
Health pipelines.GetPipelineResponseHealth `json:"health,omitempty"`
2425
LastModified int64 `json:"last_modified,omitempty"`
2526
LatestUpdates []pipelines.UpdateStateInfo `json:"latest_updates,omitempty"`
@@ -111,6 +112,7 @@ func makePipelineRemote(p *pipelines.GetPipelineResponse) *PipelineRemote {
111112
ClusterId: p.ClusterId,
112113
CreatorUserName: p.CreatorUserName,
113114
EffectiveBudgetPolicyId: p.EffectiveBudgetPolicyId,
115+
EffectivePublishingMode: p.EffectivePublishingMode,
114116
Health: p.Health,
115117
LastModified: p.LastModified,
116118
LatestUpdates: p.LatestUpdates,

bundle/direct/dresources/postgres_project.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ func (*ResourcePostgresProject) RemapState(remote *postgres.Project) *PostgresPr
4242
CustomTags: nil,
4343
DefaultEndpointSettings: nil,
4444
DisplayName: "",
45+
EnablePgNativeLogin: false,
4546
HistoryRetentionDuration: nil,
4647
PgVersion: 0,
4748
ForceSendFields: nil,

bundle/direct/dresources/type_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ var knownMissingInRemoteType = map[string][]string{
6969
"custom_tags",
7070
"default_endpoint_settings",
7171
"display_name",
72+
"enable_pg_native_login",
7273
"history_retention_duration",
7374
"pg_version",
7475
"project_id",

bundle/internal/schema/annotations_openapi_overrides.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ github.com/databricks/cli/bundle/config/resources.App:
4747
"effective_usage_policy_id":
4848
"description": |-
4949
PLACEHOLDER
50-
"git_source":
51-
"description": |-
52-
PLACEHOLDER
5350
"lifecycle":
5451
"description": |-
5552
Lifecycle is a struct that contains the lifecycle settings for a resource. It controls the behavior of the resource when it is deployed or destroyed.
@@ -263,13 +260,6 @@ github.com/databricks/cli/bundle/config/resources.DatabaseInstancePermissionLeve
263260
CAN_USE
264261
- |-
265262
CAN_MANAGE
266-
github.com/databricks/cli/bundle/config/resources.ExternalLocation:
267-
"grants":
268-
"description": |-
269-
PLACEHOLDER
270-
"lifecycle":
271-
"description": |-
272-
PLACEHOLDER
273263
github.com/databricks/cli/bundle/config/resources.ExternalLocationGrantPrivilege:
274264
"_":
275265
"description": |-

cmd/auth/token_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ func (m *MockApiClient) GetUnifiedOAuthEndpoints(ctx context.Context, host, acco
7676
}, nil
7777
}
7878

79+
// GetEndpointsFromURL implements u2m.OAuthEndpointSupplier.
80+
func (m *MockApiClient) GetEndpointsFromURL(_ context.Context, _ string) (*u2m.OAuthAuthorizationServer, error) {
81+
return nil, u2m.ErrOAuthNotSupported
82+
}
83+
7984
var _ u2m.OAuthEndpointSupplier = (*MockApiClient)(nil)
8085

8186
func TestToken_loadToken(t *testing.T) {

0 commit comments

Comments
 (0)