Skip to content

Commit

Permalink
Merge pull request #230 from briantkennedy/fix
Browse files Browse the repository at this point in the history
Fix observe_test.go
  • Loading branch information
google-oss-prow[bot] authored Sep 20, 2024
2 parents 9dd2f7d + a2cba20 commit 5e23f91
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions e2e/observe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func TestObserve(t *testing.T) {
Operation: "Get",
Version: meta.VersionGA,
Service: "Zones",
Resource: &meta.Key{Name: "moonbase1-b"},
}

// Ignore differences in ProjectID as they could change when run manually
Expand Down
15 changes: 15 additions & 0 deletions pkg/cloud/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -49235,6 +49235,7 @@ func (g *GCEAlphaRegionTargetTcpProxies) Get(ctx context.Context, key *meta.Key,
Operation: "Get",
Version: meta.Version("alpha"),
Service: "RegionTargetTcpProxies",
Resource: key,
}

klog.V(5).Infof("GCEAlphaRegionTargetTcpProxies.Get(%v, %v): projectID = %v, ck = %+v", ctx, key, projectID, ck)
Expand All @@ -49259,13 +49260,15 @@ func (g *GCEAlphaRegionTargetTcpProxies) Get(ctx context.Context, key *meta.Key,
func (g *GCEAlphaRegionTargetTcpProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.TargetTcpProxy, error) {
opts := mergeOptions(options)
klog.V(5).Infof("GCEAlphaRegionTargetTcpProxies.List(%v, %v, %v, %v) called", ctx, region, fl, opts)
key := &meta.Key{Region: region}
projectID := getProjectID(ctx, g.s.ProjectRouter, opts, "alpha", "RegionTargetTcpProxies")

ck := &CallContextKey{
ProjectID: projectID,
Operation: "List",
Version: meta.Version("alpha"),
Service: "RegionTargetTcpProxies",
Resource: key,
}

callObserverStart(ctx, ck)
Expand Down Expand Up @@ -49324,6 +49327,7 @@ func (g *GCEAlphaRegionTargetTcpProxies) Insert(ctx context.Context, key *meta.K
Operation: "Insert",
Version: meta.Version("alpha"),
Service: "RegionTargetTcpProxies",
Resource: key,
}
klog.V(5).Infof("GCEAlphaRegionTargetTcpProxies.Insert(%v, %v, ...): projectID = %v, ck = %+v", ctx, key, projectID, ck)
callObserverStart(ctx, ck)
Expand Down Expand Up @@ -49366,6 +49370,7 @@ func (g *GCEAlphaRegionTargetTcpProxies) Delete(ctx context.Context, key *meta.K
Operation: "Delete",
Version: meta.Version("alpha"),
Service: "RegionTargetTcpProxies",
Resource: key,
}
klog.V(5).Infof("GCEAlphaRegionTargetTcpProxies.Delete(%v, %v): projectID = %v, ck = %+v", ctx, key, projectID, ck)
callObserverStart(ctx, ck)
Expand Down Expand Up @@ -49608,6 +49613,7 @@ func (g *GCEBetaRegionTargetTcpProxies) Get(ctx context.Context, key *meta.Key,
Operation: "Get",
Version: meta.Version("beta"),
Service: "RegionTargetTcpProxies",
Resource: key,
}

klog.V(5).Infof("GCEBetaRegionTargetTcpProxies.Get(%v, %v): projectID = %v, ck = %+v", ctx, key, projectID, ck)
Expand All @@ -49632,13 +49638,15 @@ func (g *GCEBetaRegionTargetTcpProxies) Get(ctx context.Context, key *meta.Key,
func (g *GCEBetaRegionTargetTcpProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.TargetTcpProxy, error) {
opts := mergeOptions(options)
klog.V(5).Infof("GCEBetaRegionTargetTcpProxies.List(%v, %v, %v, %v) called", ctx, region, fl, opts)
key := &meta.Key{Region: region}
projectID := getProjectID(ctx, g.s.ProjectRouter, opts, "beta", "RegionTargetTcpProxies")

ck := &CallContextKey{
ProjectID: projectID,
Operation: "List",
Version: meta.Version("beta"),
Service: "RegionTargetTcpProxies",
Resource: key,
}

callObserverStart(ctx, ck)
Expand Down Expand Up @@ -49697,6 +49705,7 @@ func (g *GCEBetaRegionTargetTcpProxies) Insert(ctx context.Context, key *meta.Ke
Operation: "Insert",
Version: meta.Version("beta"),
Service: "RegionTargetTcpProxies",
Resource: key,
}
klog.V(5).Infof("GCEBetaRegionTargetTcpProxies.Insert(%v, %v, ...): projectID = %v, ck = %+v", ctx, key, projectID, ck)
callObserverStart(ctx, ck)
Expand Down Expand Up @@ -49739,6 +49748,7 @@ func (g *GCEBetaRegionTargetTcpProxies) Delete(ctx context.Context, key *meta.Ke
Operation: "Delete",
Version: meta.Version("beta"),
Service: "RegionTargetTcpProxies",
Resource: key,
}
klog.V(5).Infof("GCEBetaRegionTargetTcpProxies.Delete(%v, %v): projectID = %v, ck = %+v", ctx, key, projectID, ck)
callObserverStart(ctx, ck)
Expand Down Expand Up @@ -49981,6 +49991,7 @@ func (g *GCERegionTargetTcpProxies) Get(ctx context.Context, key *meta.Key, opti
Operation: "Get",
Version: meta.Version("ga"),
Service: "RegionTargetTcpProxies",
Resource: key,
}

klog.V(5).Infof("GCERegionTargetTcpProxies.Get(%v, %v): projectID = %v, ck = %+v", ctx, key, projectID, ck)
Expand All @@ -50005,13 +50016,15 @@ func (g *GCERegionTargetTcpProxies) Get(ctx context.Context, key *meta.Key, opti
func (g *GCERegionTargetTcpProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetTcpProxy, error) {
opts := mergeOptions(options)
klog.V(5).Infof("GCERegionTargetTcpProxies.List(%v, %v, %v, %v) called", ctx, region, fl, opts)
key := &meta.Key{Region: region}
projectID := getProjectID(ctx, g.s.ProjectRouter, opts, "ga", "RegionTargetTcpProxies")

ck := &CallContextKey{
ProjectID: projectID,
Operation: "List",
Version: meta.Version("ga"),
Service: "RegionTargetTcpProxies",
Resource: key,
}

callObserverStart(ctx, ck)
Expand Down Expand Up @@ -50070,6 +50083,7 @@ func (g *GCERegionTargetTcpProxies) Insert(ctx context.Context, key *meta.Key, o
Operation: "Insert",
Version: meta.Version("ga"),
Service: "RegionTargetTcpProxies",
Resource: key,
}
klog.V(5).Infof("GCERegionTargetTcpProxies.Insert(%v, %v, ...): projectID = %v, ck = %+v", ctx, key, projectID, ck)
callObserverStart(ctx, ck)
Expand Down Expand Up @@ -50112,6 +50126,7 @@ func (g *GCERegionTargetTcpProxies) Delete(ctx context.Context, key *meta.Key, o
Operation: "Delete",
Version: meta.Version("ga"),
Service: "RegionTargetTcpProxies",
Resource: key,
}
klog.V(5).Infof("GCERegionTargetTcpProxies.Delete(%v, %v): projectID = %v, ck = %+v", ctx, key, projectID, ck)
callObserverStart(ctx, ck)
Expand Down

0 comments on commit 5e23f91

Please sign in to comment.