From a8ce8e12ef911c29ca21c39721c497cffc6a7205 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Mon, 1 Apr 2024 14:25:24 -0600 Subject: [PATCH] remove unneeded api/option usages from impersonate_test.go --- auth/credentials/impersonate/impersonate_test.go | 4 +--- auth/go.mod | 1 - auth/go.sum | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/auth/credentials/impersonate/impersonate_test.go b/auth/credentials/impersonate/impersonate_test.go index eaf9bc663d33..e374c5413d73 100644 --- a/auth/credentials/impersonate/impersonate_test.go +++ b/auth/credentials/impersonate/impersonate_test.go @@ -25,7 +25,6 @@ import ( "time" "github.com/google/go-cmp/cmp" - "google.golang.org/api/option" ) func TestNewCredentials_serviceAccount(t *testing.T) { @@ -33,7 +32,6 @@ func TestNewCredentials_serviceAccount(t *testing.T) { tests := []struct { name string config CredentialsOptions - opts option.ClientOption wantErr error }{ { @@ -70,8 +68,8 @@ func TestNewCredentials_serviceAccount(t *testing.T) { TargetPrincipal: "foo@project-id.iam.gserviceaccount.com", Scopes: []string{"scope"}, Subject: "admin@example.com", + UniverseDomain: "example.com", }, - opts: option.WithUniverseDomain("example.com"), wantErr: errUniverseNotSupportedDomainWideDelegation, }, } diff --git a/auth/go.mod b/auth/go.mod index ee52dfef601c..7ab424e4bed0 100644 --- a/auth/go.mod +++ b/auth/go.mod @@ -9,7 +9,6 @@ require ( github.com/googleapis/enterprise-certificate-proxy v0.3.2 go.opencensus.io v0.24.0 golang.org/x/net v0.22.0 - google.golang.org/api v0.149.0 google.golang.org/grpc v1.62.1 google.golang.org/protobuf v1.33.0 ) diff --git a/auth/go.sum b/auth/go.sum index e5911a44519c..c43c3f00ccbb 100644 --- a/auth/go.sum +++ b/auth/go.sum @@ -113,8 +113,6 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.149.0 h1:b2CqT6kG+zqJIVKRQ3ELJVLN1PwHZ6DJ3dW8yl82rgY= -google.golang.org/api v0.149.0/go.mod h1:Mwn1B7JTXrzXtnvmzQE2BD6bYZQ8DShKZDZbeN9I7qI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM=