diff options
| author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2024-06-01 01:58:18 +0000 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-06-03 10:35:00 +0000 |
| commit | ec102f24cae4dd25c09ca260e69b341535d8efce (patch) | |
| tree | ad3dc946696f6c0008e5ffdc09f063bacae2ea4c /vendor/cloud.google.com/go/testing.md | |
| parent | c25b84828149a4957a795b08eb70caf5e89f8d9b (diff) | |
mod: bump cloud.google.com/go/logging from 1.9.0 to 1.10.0
Bumps [cloud.google.com/go/logging](https://github.com/googleapis/google-cloud-go) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/dlp/v1.9.0...dlp/v1.10.0)
---
updated-dependencies:
- dependency-name: cloud.google.com/go/logging
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/cloud.google.com/go/testing.md')
| -rw-r--r-- | vendor/cloud.google.com/go/testing.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/cloud.google.com/go/testing.md b/vendor/cloud.google.com/go/testing.md index bcca0604d..78bb35b3b 100644 --- a/vendor/cloud.google.com/go/testing.md +++ b/vendor/cloud.google.com/go/testing.md @@ -79,7 +79,7 @@ func (f *fakeTranslationServer) TranslateText(ctx context.Context, req *translat ``` All of the generated protobuf code found in [google.golang.org/genproto](https://pkg.go.dev/google.golang.org/genproto) -contains a similar `package.UnimplmentedFooServer` type that is useful for +contains a similar `package.UnimplementedFooServer` type that is useful for creating fakes. By embedding the unimplemented server in the `fakeTranslationServer`, the fake will “inherit” all of the RPCs the server exposes. Then, by providing our own `fakeTranslationServer.TranslateText` @@ -99,6 +99,7 @@ import ( "google.golang.org/api/option" translatepb "google.golang.org/genproto/googleapis/cloud/translate/v3" "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" ) func TestTranslateTextWithConcreteClient(t *testing.T) { @@ -123,7 +124,7 @@ func TestTranslateTextWithConcreteClient(t *testing.T) { client, err := translate.NewTranslationClient(ctx, option.WithEndpoint(fakeServerAddr), option.WithoutAuthentication(), - option.WithGRPCDialOption(grpc.WithInsecure()), + option.WithGRPCDialOption(grpc.WithTransportCredentials(insecure.NewCredentials())), ) if err != nil { t.Fatal(err) |
