Skip to content

Commit

Permalink
Merge pull request #1546 from justinsb/mockgcp_pubsub
Browse files Browse the repository at this point in the history
mockgcp: support for pubsub
  • Loading branch information
google-oss-prow[bot] committed May 8, 2024
2 parents 0b8cc19 + 486d7a5 commit 39241eb
Show file tree
Hide file tree
Showing 18 changed files with 16,152 additions and 6 deletions.
3 changes: 3 additions & 0 deletions config/tests/samples/create/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,9 @@ func MaybeSkip(t *testing.T, name string, resources []*unstructured.Unstructured

case schema.GroupKind{Group: "privateca.cnrm.cloud.google.com", Kind: "PrivateCACAPool"}:

case schema.GroupKind{Group: "pubsub.cnrm.cloud.google.com", Kind: "PubSubSchema"}:
case schema.GroupKind{Group: "pubsub.cnrm.cloud.google.com", Kind: "PubSubTopic"}:

case schema.GroupKind{Group: "redis.cnrm.cloud.google.com", Kind: "RedisInstance"}:

case schema.GroupKind{Group: "resourcemanager.cnrm.cloud.google.com", Kind: "Project"}:
Expand Down
1 change: 1 addition & 0 deletions mockgcp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ gen-proto:
./third_party/googleapis/mockgcp/devtools/artifactregistry/v1/*.proto \
./third_party/googleapis/mockgcp/iam/admin/v1/*.proto \
./third_party/googleapis/mockgcp/logging/v2/*.proto \
./third_party/googleapis/mockgcp/pubsub/v1/*.proto \
./third_party/googleapis/mockgcp/cloud/aiplatform/v1beta1/annotation*.proto \
./third_party/googleapis/mockgcp/cloud/aiplatform/v1beta1/data_item.proto \
./third_party/googleapis/mockgcp/cloud/aiplatform/v1beta1/dataset*.proto \
Expand Down
4 changes: 4 additions & 0 deletions mockgcp/fixup-third-party.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ mv google/cloud/ mockgcp/
mv google/container/ mockgcp/
mv google/iam/ mockgcp/
mv google/logging/ mockgcp/
mv google/pubsub/ mockgcp/
mv google/storage/ mockgcp/
mv google/monitoring/ mockgcp/
mv google/api/apikeys/ mockgcp/api/
Expand All @@ -48,6 +49,9 @@ find . -type f -print0 | xargs -0 sed -i -e "s@google\.iam@mockgcp.iam@g"
find . -type f -print0 | xargs -0 sed -i -e "s@google/logging/@mockgcp/logging/@g"
find . -type f -print0 | xargs -0 sed -i -e "s@google\.logging@mockgcp.logging@g"

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

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

Expand Down
Loading

0 comments on commit 39241eb

Please sign in to comment.