-
Notifications
You must be signed in to change notification settings - Fork 2k
ci(idp-sql): run idp-sql tests in testing isolation #3985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
b90797d
ci(idp-sql): run idp-sql tests in testing isolation
glasnt 1312379
add secret
glasnt ae8a90c
update tests run, copied from eventarc/audit-storage
glasnt 00e8114
debug: swap order
glasnt 7e5ae5f
Revert "debug: swap order"
glasnt f573a2a
debug: update firebase-admin version
glasnt 21b9605
add env, secrets
glasnt 1a96dac
correct exit code on retry
glasnt b21482e
dynamic service name
glasnt dad045b
wip: pass service account as env, to test
glasnt bc3e82e
logging: CLOUD_LOGGING_ONLY
glasnt 10e72a8
correct YAML is useful
glasnt e95da9d
dynamicsubtitutions
glasnt 11a70c8
Merge branch 'main' into ariwete-run-idp-sql
glasnt df80739
rename token as not to confuse with new default envvar
glasnt 8c2b879
use new envvar
glasnt 1dfbefe
update SA usage
glasnt 7c255fe
add custom audience
glasnt 096ebe2
cleanup
glasnt 189f17c
remove platform, extra SA var
glasnt d4cfd2d
lint
glasnt 29a8f08
more lint
glasnt cc70a1d
format
glasnt 429edee
add sample version value
glasnt 1792e70
correct audience
glasnt 0fc96bc
lint
glasnt b00cc9b
disable cleanup for debugging
glasnt 06a72b2
Merge branch 'main' into ariwete-run-idp-sql
glasnt 3867b44
add test to dev list
glasnt 2cb4f04
Merge branch 'main' into ariwete-run-idp-sql
glasnt 7eb82c7
attempt proxy powered
glasnt 95896c0
lint
glasnt b096ca4
attempt: proxy shell
glasnt 0ee57e2
lint
glasnt 2faec3f
format
glasnt 414ebff
try using x-headers
glasnt 8dddbcf
Merge branch 'main' into ariwete-run-idp-sql
glasnt a2e7320
fix: headers
glasnt e97c91b
Merge branch 'main' into ariwete-run-idp-sql
glasnt 4e64db2
pass db user/name if supplied
glasnt c05beef
revert "try using x-headers"
glasnt 94cb82a
debugging: where 400 error coming from?
glasnt aafa923
reenable cleanup
glasnt 1903807
try capturing the token error
glasnt 717d351
lint
glasnt b69f4eb
use explicitly named secret reference
glasnt a0bcccf
restore: try x-headers (debug)
glasnt 37518cf
Revert "restore: try x-headers (debug)"
glasnt 1335ed7
revert custom audience (not required if not using ID_TOKEN)
glasnt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "env": { | ||
| "SERVICE_NAME": "idp-sql-${RUN_ID}", | ||
| "SAMPLE_VERSION": "${RUN_ID}", | ||
| "CLOUD_SQL_CONNECTION_NAME": "nodejs-docs-samples-tests:us-central1:test-postgres-instance", | ||
| "DB_NAME": "ci-database", | ||
| "DB_USER": "ci-user" | ||
| }, | ||
| "secrets": { | ||
| "IDP_KEY": "nodejs-docs-samples-tests/long-door-651-idp-key", | ||
| "DB_PASSWORD": "nodejs-docs-samples-tests/nodejs-docs-samples-test-postgres-instance-ci-user-password" } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Copyright 2025 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. | ||
|
|
||
| # Proof of concept: setting up proxy | ||
|
|
||
| curl -o cloud-sql-proxy https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/v2.15.1/cloud-sql-proxy.linux.amd64 | ||
| chmod +x cloud-sql-proxy | ||
| cloud-sql-proxy -dir=/cloudsql -instances=$INSTANCE_CONNECTION_NAME & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
test/proxy-setup.shpowers this test; unsure if there's something more more scalable that can be done here.