Skip to content

Commit

Permalink
remove unneeded api/option usages from impersonate_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
quartzmo committed Apr 1, 2024
1 parent 6045b1c commit a8ce8e1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions auth/credentials/impersonate/impersonate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@ import (
"time"

"github.com/google/go-cmp/cmp"
"google.golang.org/api/option"
)

func TestNewCredentials_serviceAccount(t *testing.T) {
ctx := context.Background()
tests := []struct {
name string
config CredentialsOptions
opts option.ClientOption
wantErr error
}{
{
Expand Down Expand Up @@ -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,
},
}
Expand Down
1 change: 0 additions & 1 deletion auth/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
2 changes: 0 additions & 2 deletions auth/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit a8ce8e1

Please sign in to comment.