Skip to content

Commit

Permalink
update affected logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmahou committed Oct 4, 2024
1 parent 1adc00f commit 26d323b
Show file tree
Hide file tree
Showing 24 changed files with 99 additions and 82 deletions.
2 changes: 1 addition & 1 deletion mockgcp/mockcompute/regionalforwardingrulev1.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (s *RegionalForwardingRulesV1) Insert(ctx context.Context, req *pb.InsertFo
if obj.NetworkTier == nil {
obj.NetworkTier = PtrTo("PREMIUM")
}
if *obj.LoadBalancingScheme == "" {
if obj.LoadBalancingScheme != nil && *obj.LoadBalancingScheme == "" {
obj.LoadBalancingScheme = nil
}

Expand Down
2 changes: 1 addition & 1 deletion mockgcp/mockcompute/targetgrpcproxyv1.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (n *targetGrpcProxyName) String() string {
func (s *MockService) parseTargetGrpcProxyName(name string) (*targetGrpcProxyName, error) {
tokens := strings.Split(name, "/")

if len(tokens) == 5 && tokens[0] == "projects" && tokens[3] == "targetGrpcProxies" {
if len(tokens) == 5 && tokens[0] == "projects" && tokens[2] == "global" && tokens[3] == "targetGrpcProxies" {
project, err := s.Projects.GetProjectByID(tokens[1])
if err != nil {
return nil, err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found"
}
}

Expand Down Expand Up @@ -456,11 +456,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}' was not found"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found"
}
}

Expand Down Expand Up @@ -456,11 +456,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}' was not found"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found"
}
}

Expand Down Expand Up @@ -443,11 +443,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}' was not found"
}
}

Expand Down Expand Up @@ -533,11 +533,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-2-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-2-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-2-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-2-${uniqueId}' was not found"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "backendService \"projects/${projectId}/regions/us-central1/backendServices/computebackendservice-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/regions/us-central1/backendServices/computebackendservice-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "backendService \"projects/${projectId}/regions/us-central1/backendServices/computebackendservice-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/regions/us-central1/backendServices/computebackendservice-${uniqueId}' was not found"
}
}

Expand Down Expand Up @@ -410,11 +410,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "backendService \"projects/${projectId}/regions/us-central1/backendServices/computebackendservice-2-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/regions/us-central1/backendServices/computebackendservice-2-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "backendService \"projects/${projectId}/regions/us-central1/backendServices/computebackendservice-2-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/regions/us-central1/backendServices/computebackendservice-2-${uniqueId}' was not found"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1159,11 +1159,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "backendService \"projects/${projectId}/regions/us-central1/backendServices/computebackendservice-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/regions/us-central1/backendServices/computebackendservice-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "backendService \"projects/${projectId}/regions/us-central1/backendServices/computebackendservice-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/regions/us-central1/backendServices/computebackendservice-${uniqueId}' was not found"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,11 +521,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "backendService \"projects/example-project-01/regions/us-west1/backendServices/computebackendservice-${uniqueId}\" not found",
"message": "The resource 'projects/example-project-01/regions/us-west1/backendServices/computebackendservice-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "backendService \"projects/example-project-01/regions/us-west1/backendServices/computebackendservice-${uniqueId}\" not found"
"message": "The resource 'projects/example-project-01/regions/us-west1/backendServices/computebackendservice-${uniqueId}' was not found"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ status:
fingerprint: abcdef0123A=
observedGeneration: 2
selfLink: https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetGrpcProxies/computetargetgrpcproxy-${uniqueId}
selfLinkWithId: https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetGrpcProxies/${targetGrpcProxiesID}
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ X-Xss-Protection: 0
"kind": "compute#targetGrpcProxy",
"name": "computetargetgrpcproxy-${uniqueId}",
"selfLink": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetGrpcProxies/computetargetgrpcproxy-${uniqueId}",
"selfLinkWithId": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/targetGrpcProxies/${targetGrpcProxiesId}",
"urlMap": "https://www.googleapis.com/compute/v1/projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}",
"validateForProxyless": true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found"
}
}

Expand Down Expand Up @@ -239,11 +239,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}' was not found"
}
}

Expand Down Expand Up @@ -329,11 +329,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-2-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-2-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-2-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-2-${uniqueId}' was not found"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "backendService \"projects/${projectId}/regions/us-central1/backendServices/computebackendservice-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/regions/us-central1/backendServices/computebackendservice-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "backendService \"projects/${projectId}/regions/us-central1/backendServices/computebackendservice-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/regions/us-central1/backendServices/computebackendservice-${uniqueId}' was not found"
}
}

Expand Down Expand Up @@ -246,11 +246,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "urlMap \"projects/${projectId}/regions/us-central1/urlMaps/computeurlmap-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/regions/us-central1/urlMaps/computeurlmap-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "urlMap \"projects/${projectId}/regions/us-central1/urlMaps/computeurlmap-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/regions/us-central1/urlMaps/computeurlmap-${uniqueId}' was not found"
}
}

Expand Down Expand Up @@ -338,11 +338,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "urlMap \"projects/${projectId}/regions/us-central1/urlMaps/computeurlmap-2-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/regions/us-central1/urlMaps/computeurlmap-2-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "urlMap \"projects/${projectId}/regions/us-central1/urlMaps/computeurlmap-2-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/regions/us-central1/urlMaps/computeurlmap-2-${uniqueId}' was not found"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found"
}
}

Expand Down Expand Up @@ -264,11 +264,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}' was not found"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "backendService \"projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/backendServices/computebackendservice-${uniqueId}' was not found"
}
}

Expand Down Expand Up @@ -239,11 +239,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-${uniqueId}' was not found"
}
}

Expand Down Expand Up @@ -329,11 +329,11 @@ X-Xss-Protection: 0
"errors": [
{
"domain": "global",
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-2-${uniqueId}\" not found",
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-2-${uniqueId}' was not found",
"reason": "notFound"
}
],
"message": "urlMap \"projects/${projectId}/global/urlMaps/computeurlmap-2-${uniqueId}\" not found"
"message": "The resource 'projects/${projectId}/global/urlMaps/computeurlmap-2-${uniqueId}' was not found"
}
}

Expand Down
Loading

0 comments on commit 26d323b

Please sign in to comment.