File tree Expand file tree Collapse file tree 8 files changed +80
-4
lines changed
Expand file tree Collapse file tree 8 files changed +80
-4
lines changed Original file line number Diff line number Diff line change 1313 },
1414 "scripts" : {
1515 "start" : " node server/server.js" ,
16- "system-test" : " c8 mocha -p -j 2 test/server.test.js --timeout=60000 --exit" ,
16+ "system-test" : " test/proxy-setup.sh && c8 mocha -p -j 2 test/server.test.js --timeout=60000 --exit" ,
1717 "system-test-unix" : " c8 mocha -p -j 2 test/server-unix.test.js --timeout=60000 --exit" ,
1818 "test" : " npm run system-test && npm run system-test-unix"
1919 },
Original file line number Diff line number Diff line change 1+ # Copyright 2025 Google LLC
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ # Proof of concept: setting up proxy
16+
17+ curl -o cloud-sql-proxy https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/v2.15.1/cloud-sql-proxy.linux.amd64
18+ chmod +x cloud-sql-proxy
19+ cloud-sql-proxy -dir=/cloudsql -instances=$INSTANCE_CONNECTION_NAME &
Original file line number Diff line number Diff line change 1515 "scripts" : {
1616 "start" : " node server/server.js" ,
1717 "start-proxy" : " ! pgrep cloud_sql_proxy > /dev/null && cloud_sql_proxy -dir=/cloudsql -instances=$INSTANCE_CONNECTION_NAME &" ,
18- "test" : " c8 mocha -p -j 2 test/*.test.js --timeout=60000 --exit"
18+ "test" : " test/proxy-setup.sh && c8 mocha -p -j 2 test/*.test.js --timeout=60000 --exit"
1919 },
2020 "dependencies" : {
2121 "@google-cloud/cloud-sql-connector" : " ^1.0.0" ,
Original file line number Diff line number Diff line change 1+ # Copyright 2025 Google LLC
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ # Proof of concept: setting up proxy
16+
17+ curl -o cloud-sql-proxy https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/v2.15.1/cloud-sql-proxy.linux.amd64
18+ chmod +x cloud-sql-proxy
19+ cloud-sql-proxy -dir=/cloudsql -instances=$INSTANCE_CONNECTION_NAME &
Original file line number Diff line number Diff line change 1313 },
1414 "scripts" : {
1515 "start" : " node server/server.js" ,
16- "system-test" : " c8 mocha -p -j 2 test/*.test.js --timeout=60000 --exit" ,
16+ "system-test" : " test/proxy-setup.sh && c8 mocha -p -j 2 test/*.test.js --timeout=60000 --exit" ,
1717 "test" : " npm run system-test"
1818 },
1919 "dependencies" : {
Original file line number Diff line number Diff line change 1+ # Copyright 2025 Google LLC
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ # Proof of concept: setting up proxy
16+
17+ curl -o cloud-sql-proxy https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/v2.15.1/cloud-sql-proxy.linux.amd64
18+ chmod +x cloud-sql-proxy
19+ cloud-sql-proxy -dir=/cloudsql -instances=$INSTANCE_CONNECTION_NAME &
Original file line number Diff line number Diff line change 1313 },
1414 "scripts" : {
1515 "start" : " node server/server.js" ,
16- "system-test" : " c8 mocha -p -j 2 test/*.test.js --timeout=60000 --exit" ,
16+ "system-test" : " test/proxy-setup.sh && c8 mocha -p -j 2 test/*.test.js --timeout=60000 --exit" ,
1717 "test" : " npm run system-test"
1818 },
1919 "dependencies" : {
Original file line number Diff line number Diff line change 1+ # Copyright 2025 Google LLC
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ # Proof of concept: setting up proxy
16+
17+ curl -o cloud-sql-proxy https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/v2.15.1/cloud-sql-proxy.linux.amd64
18+ chmod +x cloud-sql-proxy
19+ cloud-sql-proxy -dir=/cloudsql -instances=$INSTANCE_CONNECTION_NAME &
You can’t perform that action at this time.
0 commit comments