Skip to content

Commit

Permalink
feat: Add spanner database mockgcp
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvigil committed May 20, 2024
1 parent 2450d04 commit 8baf0e5
Show file tree
Hide file tree
Showing 19 changed files with 10,940 additions and 23 deletions.
1 change: 1 addition & 0 deletions config/tests/samples/create/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ func MaybeSkip(t *testing.T, name string, resources []*unstructured.Unstructured
case schema.GroupKind{Group: "sql.cnrm.cloud.google.com", Kind: "SQLInstance"}:
case schema.GroupKind{Group: "sql.cnrm.cloud.google.com", Kind: "SQLUser"}:

case schema.GroupKind{Group: "spanner.cnrm.cloud.google.com", Kind: "SpannerDatabase"}:
case schema.GroupKind{Group: "spanner.cnrm.cloud.google.com", Kind: "SpannerInstance"}:

case schema.GroupKind{Group: "storage.cnrm.cloud.google.com", Kind: "StorageBucket"}:
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ require (
cloud.google.com/go/compute/metadata v0.3.0 // indirect
cloud.google.com/go/iam v1.1.7 // indirect
cloud.google.com/go/longrunning v0.5.6 // indirect
cloud.google.com/go/spanner v1.60.0 // indirect
dario.cat/mergo v1.0.0 // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/MakeNowJust/heredoc v1.0.0 // indirect
Expand Down
5 changes: 4 additions & 1 deletion go.sum

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

1 change: 1 addition & 0 deletions mockgcp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ gen-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/spanner/admin/database/v1/*.proto \
./third_party/googleapis/mockgcp/spanner/admin/instance/v1/*.proto \
./third_party/googleapis/mockgcp/cloud/aiplatform/v1beta1/annotation*.proto \
./third_party/googleapis/mockgcp/cloud/aiplatform/v1beta1/data_item.proto \
Expand Down
6 changes: 3 additions & 3 deletions mockgcp/fixup-third-party.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ find . -type f -print0 | xargs -0 sed -i -e "s@google\[email protected]@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\[email protected]@g"

find . -type f -print0 | xargs -0 sed -i -e "s@google/storage/@mockgcp/storage/@g"
find . -type f -print0 | xargs -0 sed -i -e "s@google\[email protected]@g"

find . -type f -print0 | xargs -0 sed -i -e "s@google/spanner/@mockgcp/spanner/@g"
find . -type f -print0 | xargs -0 sed -i -e "s@google\[email protected]@g"

find . -type f -print0 | xargs -0 sed -i -e "s@google/storage/@mockgcp/storage/@g"
find . -type f -print0 | xargs -0 sed -i -e "s@google\[email protected]@g"

find . -type f -print0 | xargs -0 sed -i -e "s@google/api/apikeys/@mockgcp/api/apikeys/@g"
find . -type f -print0 | xargs -0 sed -i -e "s@google\.api\[email protected]@g"

Expand Down
Loading

0 comments on commit 8baf0e5

Please sign in to comment.