Skip to content

Commit b096ca4

Browse files
committed
attempt: proxy shell
1 parent 95896c0 commit b096ca4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

run/idp-sql/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
"scripts": {
1616
"start": "node index.js",
1717
"unit-test": "c8 mocha -p -j 2 test/app.test.js --timeout=120000 --exit",
18-
"system-test": "npm -- run start-proxy && c8 mocha -p -j 2 test/system.test.js --timeout=1800000 --exit",
18+
"system-test": "test/proxy-setup.sh && c8 mocha -p -j 2 test/system.test.js --timeout=1800000 --exit",
1919
"all-test": "npm run unit-test && npm run system-test",
2020
"test": "npm -- run all-test",
21-
"start-proxy": "! pgrep cloud_sql_proxy > /dev/null && cloud_sql_proxy -dir=/cloudsql -instances=$INSTANCE_CONNECTION_NAME &"
2221
},
2322
"dependencies": {
2423
"express": "^4.16.2",

run/idp-sql/test/proxy-setup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
curl -o cloud-sql-proxy https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/v2.15.1/cloud-sql-proxy.linux.amd64
2+
chmod +x cloud-sql-proxy
3+
cloud_sql_proxy -dir=/cloudsql -instances=$INSTANCE_CONNECTION_NAME &

0 commit comments

Comments
 (0)