Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[azsecrets] add fakes support #24170

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion sdk/security/keyvault/azsecrets/build.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:generate tsp-client update
//go:generate tsp-client update --local-spec-repo /home/grace/code/azure-rest-api-specs/specification/keyvault/Security.KeyVault.Secrets
//go:generate go run ./internal/transforms.go
//go:generate rm ./constants.go
//go:generate goimports -w .
Expand Down
47 changes: 34 additions & 13 deletions sdk/security/keyvault/azsecrets/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions sdk/security/keyvault/azsecrets/fake/custom_server.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

package fake

import (
"github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal"
)

func init() {
serverTransportInterceptor = &internal.FakeChallenge{}
}
66 changes: 66 additions & 0 deletions sdk/security/keyvault/azsecrets/fake/internal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading