Skip to content

Commit

Permalink
mock containeranalysisnote
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmahou committed May 21, 2024
1 parent 58f7154 commit d00f08d
Show file tree
Hide file tree
Showing 173 changed files with 130,349 additions and 69,847 deletions.
2 changes: 2 additions & 0 deletions config/tests/samples/create/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,8 @@ func MaybeSkip(t *testing.T, name string, resources []*unstructured.Unstructured
case schema.GroupKind{Group: "container.cnrm.cloud.google.com", Kind: "ContainerCluster"}:
case schema.GroupKind{Group: "container.cnrm.cloud.google.com", Kind: "ContainerNodePool"}:

case schema.GroupKind{Group: "containeranalysis.cnrm.cloud.google.com", Kind: "ContainerAnalysisNote"}:

case schema.GroupKind{Group: "iam.cnrm.cloud.google.com", Kind: "IAMPartialPolicy"}:
case schema.GroupKind{Group: "iam.cnrm.cloud.google.com", Kind: "IAMPolicy"}:
case schema.GroupKind{Group: "iam.cnrm.cloud.google.com", Kind: "IAMPolicyMember"}:
Expand Down
107 changes: 107 additions & 0 deletions log.txt

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions mockgcp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ gen-proto:
./apis/mockgcp/cloud/bigquery/v2/*.proto \
./apis/mockgcp/cloud/servicenetworking/v1/*.proto \
./apis/mockgcp/cloud/resourcemanager/v1/*.proto \
./apis/mockgcp/storage/v1/*.proto \
./third_party/googleapis/mockgcp/api/apikeys/v2/*.proto \
./third_party/googleapis/mockgcp/devtools/artifactregistry/v1/*.proto \
./third_party/googleapis/mockgcp/iam/admin/v1/*.proto \
Expand Down Expand Up @@ -66,7 +65,8 @@ gen-proto:
./third_party/googleapis/mockgcp/cloud/gkehub/v1beta/*.proto \
./third_party/googleapis/mockgcp/cloud/gkehub/v1beta/configmanagement/*.proto \
./third_party/googleapis/mockgcp/cloud/gkehub/v1beta/metering/*.proto \
./third_party/googleapis/mockgcp/cloud/gkehub/v1beta/multiclusteringress/*.proto
./third_party/googleapis/mockgcp/cloud/gkehub/v1beta/multiclusteringress/*.proto \
./third_party/googleapis/mockgrafeas/v1/*.proto

.PHONY: generate-protos-from-openapi
generate-protos-from-openapi:
Expand All @@ -81,3 +81,4 @@ generate-protos-from-openapi:
wget -O storage-v1.json https://raw.githubusercontent.com/googleapis/google-api-go-client/main/storage/v1/storage-api.json
mkdir -p apis/mockgcp/storage/v1/
cd tools/gapic; go run . --proto-version=2 ../../storage-v1.json > ../../apis/mockgcp/storage/v1/service.proto

11 changes: 10 additions & 1 deletion mockgcp/fixup-third-party.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ mv google/api/apikeys/ mockgcp/api/
mv google/api/serviceusage/ mockgcp/api/
mv google/devtools/artifactregistry mockgcp/devtools

rm -rf mockgrafeas/
mv grafeas mockgrafeas

cd mockgcp

# Rewrite import paths.
Expand Down Expand Up @@ -65,4 +68,10 @@ find . -type f -print0 | xargs -0 sed -i -e "s@google/api/serviceusage/@mockgcp/
find . -type f -print0 | xargs -0 sed -i -e "s@google\.api\.serviceusage@mockgcp.api.serviceusage@g"

find . -type f -print0 | xargs -0 sed -i -e "s@google/devtools/artifactregistry/@mockgcp/devtools/artifactregistry/@g"
find . -type f -print0 | xargs -0 sed -i -e "s@google\.devtools\.artifactregistry@mockgcp.devtools.artifactregistry@g"
find . -type f -print0 | xargs -0 sed -i -e "s@google\.devtools\.artifactregistry@mockgcp.devtools.artifactregistry@g"

cd ..
cd mockgrafeas

find . -type f -print0 | xargs -0 sed -i -e "s@grafeas/@mockgrafeas/@g"
find . -type f -print0 | xargs -0 sed -i -e "s@grafeas\.@mockgrafeas.@g"
2 changes: 1 addition & 1 deletion mockgcp/generated/mockgcp/api/apikeys/v2/apikeys.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mockgcp/generated/mockgcp/api/apikeys/v2/resources.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d00f08d

Please sign in to comment.