Skip to content

Commit

Permalink
tests: update golden output for service tests
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb committed Jul 16, 2024
1 parent 29f878b commit 0dd320f
Show file tree
Hide file tree
Showing 4 changed files with 476 additions and 34 deletions.
1 change: 1 addition & 0 deletions mockgcp/mockserviceusage/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (s *MockService) NewHTTPMux(ctx context.Context, conn *grpc.ClientConn) (ht
mux, err := httpmux.NewServeMux(ctx, conn, httpmux.Options{},
pb_v1.RegisterServiceUsageHandler,
pb_v1beta1.RegisterServiceUsageHandler,
s.operations.RegisterOperationsPath("/v1beta1/operations/{name}"),
)
if err != nil {
return nil, fmt.Errorf("creating http mux: %w", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ metadata:
name: runtimeconfig.googleapis.com
spec:
projectRef:
external: ${projectId}
external: project-${uniqueId}
resourceID: runtimeconfig.googleapis.com
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: serviceusage.cnrm.cloud.google.com/v1beta1
kind: Service
metadata:
Expand All @@ -29,7 +15,7 @@ metadata:
namespace: ${uniqueId}
spec:
projectRef:
external: ${projectId}
name: project-${uniqueId}
resourceID: runtimeconfig.googleapis.com
status:
conditions:
Expand Down
Loading

0 comments on commit 0dd320f

Please sign in to comment.