Skip to content
Closed
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions appengine/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"e2e-test": "samples test deploy"
},
"dependencies": {
"express": "4.15.3",
"express": "4.15.4",
"got": "7.1.0"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "1.4.16"
"@google-cloud/nodejs-repo-tools": "1.4.17"
},
"cloud-repo-tools": {
"test": {
Expand Down
100 changes: 45 additions & 55 deletions appengine/analytics/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
dependencies:
arrify "^1.0.1"

"@google-cloud/[email protected].16":
version "1.4.16"
resolved "https://registry.yarnpkg.com/@google-cloud/nodejs-repo-tools/-/nodejs-repo-tools-1.4.16.tgz#a87b1f9db8426494ee7ea21a3a0cf172c66fe350"
"@google-cloud/[email protected].17":
version "1.4.17"
resolved "https://registry.yarnpkg.com/@google-cloud/nodejs-repo-tools/-/nodejs-repo-tools-1.4.17.tgz#6458d12467cf93dc931d64640afabca1dfc19af2"
dependencies:
ava "0.21.0"
colors "1.1.2"
Expand All @@ -55,7 +55,7 @@
handlebars "4.0.10"
lodash "4.17.4"
proxyquire "1.8.0"
sinon "3.0.0"
sinon "3.2.0"
string "3.3.3"
supertest "3.0.0"
yargs "8.0.2"
Expand Down Expand Up @@ -622,8 +622,8 @@ bcrypt-pbkdf@^1.0.0:
tweetnacl "^0.14.3"

binary-extensions@^1.0.0:
version "1.9.0"
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.9.0.tgz#66506c16ce6f4d6928a5b3cd6a33ca41e941e37b"
version "1.10.0"
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.10.0.tgz#9aeb9a6c5e88638aad171e167f5900abe24835d0"

block-stream@*:
version "0.0.9"
Expand Down Expand Up @@ -750,8 +750,8 @@ chalk@^1.0.0, chalk@^1.1.0:
supports-color "^2.0.0"

chalk@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.0.1.tgz#dbec49436d2ae15f536114e76d14656cdbc0f44d"
version "2.1.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.1.0.tgz#ac5becf14fa21b99c6c92ca7a7d7cfd5b17e743e"
dependencies:
ansi-styles "^3.1.0"
escape-string-regexp "^1.0.5"
Expand Down Expand Up @@ -944,8 +944,8 @@ core-assert@^0.2.0:
is-error "^2.2.0"

core-js@^2.0.0, core-js@^2.4.0:
version "2.4.1"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.4.1.tgz#4de911e667b0eae9124e34254b53aea6fc618d3e"
version "2.5.0"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.0.tgz#569c050918be6486b3837552028ae0466b717086"

[email protected], core-util-is@~1.0.0:
version "1.0.2"
Expand Down Expand Up @@ -997,12 +997,6 @@ date-time@^2.1.0:
dependencies:
time-zone "^1.0.0"

[email protected]:
version "2.6.7"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.7.tgz#92bad1f6d05bbb6bba22cca88bcd0ec894c2861e"
dependencies:
ms "2.0.0"

[email protected], debug@^2.1.1, debug@^2.2.0:
version "2.6.8"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc"
Expand Down Expand Up @@ -1035,11 +1029,7 @@ delegates@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"

[email protected]:
version "1.1.0"
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.0.tgz#e1bd82c6aab6ced965b97b88b17ed3e528ca18c3"

depd@~1.1.0:
[email protected], depd@~1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.1.tgz#5783b4e1c459f06fa5ca27f991f3d06e7a310359"

Expand Down Expand Up @@ -1169,33 +1159,33 @@ expand-range@^1.8.1:
dependencies:
fill-range "^2.1.0"

[email protected].3:
version "4.15.3"
resolved "https://registry.yarnpkg.com/express/-/express-4.15.3.tgz#bab65d0f03aa80c358408972fc700f916944b662"
[email protected].4:
version "4.15.4"
resolved "https://registry.yarnpkg.com/express/-/express-4.15.4.tgz#032e2253489cf8fce02666beca3d11ed7a2daed1"
dependencies:
accepts "~1.3.3"
array-flatten "1.1.1"
content-disposition "0.5.2"
content-type "~1.0.2"
cookie "0.3.1"
cookie-signature "1.0.6"
debug "2.6.7"
depd "~1.1.0"
debug "2.6.8"
depd "~1.1.1"
encodeurl "~1.0.1"
escape-html "~1.0.3"
etag "~1.8.0"
finalhandler "~1.0.3"
finalhandler "~1.0.4"
fresh "0.5.0"
merge-descriptors "1.0.1"
methods "~1.1.2"
on-finished "~2.3.0"
parseurl "~1.3.1"
path-to-regexp "0.1.7"
proxy-addr "~1.1.4"
qs "6.4.0"
proxy-addr "~1.1.5"
qs "6.5.0"
range-parser "~1.2.0"
send "0.15.3"
serve-static "1.12.3"
send "0.15.4"
serve-static "1.12.4"
setprototypeof "1.0.3"
statuses "~1.3.1"
type-is "~1.6.15"
Expand Down Expand Up @@ -1247,7 +1237,7 @@ fill-range@^2.1.0:
repeat-element "^1.1.2"
repeat-string "^1.5.2"

finalhandler@~1.0.3:
finalhandler@~1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.0.4.tgz#18574f2e7c4b98b8ae3b230c21f201f31bdb3fb7"
dependencies:
Expand Down Expand Up @@ -1561,11 +1551,11 @@ hosted-git-info@^2.1.4:
version "2.5.0"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.5.0.tgz#6d60e34b3abbc8313062c3b798ef8d901a07af3c"

http-errors@~1.6.1:
version "1.6.1"
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.1.tgz#5f8b8ed98aca545656bf572997387f904a722257"
http-errors@~1.6.2:
version "1.6.2"
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.2.tgz#0a002cc85707192a7e7946ceedc11155f60ec736"
dependencies:
depd "1.1.0"
depd "1.1.1"
inherits "2.0.3"
setprototypeof "1.0.3"
statuses ">= 1.3.1 < 2"
Expand Down Expand Up @@ -2530,7 +2520,7 @@ process-nextick-args@~1.0.6:
version "1.0.7"
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3"

proxy-addr@~1.1.4:
proxy-addr@~1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.5.tgz#71c0ee3b102de3f202f3b64f608d173fcba1a918"
dependencies:
Expand All @@ -2553,14 +2543,14 @@ punycode@^1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"

[email protected], qs@~6.4.0:
version "6.4.0"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233"

qs@^6.1.0:
[email protected], qs@^6.1.0:
version "6.5.0"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.0.tgz#8d04954d364def3efc55b5a0793e1e2c8b1e6e49"

qs@~6.4.0:
version "6.4.0"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233"

randomatic@^1.1.3:
version "1.1.7"
resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.7.tgz#c7abe9cc8b87c0baa876b19fde83fd464797e38c"
Expand Down Expand Up @@ -2799,32 +2789,32 @@ semver-diff@^2.0.0:
version "5.4.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e"

[email protected].3:
version "0.15.3"
resolved "https://registry.yarnpkg.com/send/-/send-0.15.3.tgz#5013f9f99023df50d1bd9892c19e3defd1d53309"
[email protected].4:
version "0.15.4"
resolved "https://registry.yarnpkg.com/send/-/send-0.15.4.tgz#985faa3e284b0273c793364a35c6737bd93905b9"
dependencies:
debug "2.6.7"
depd "~1.1.0"
debug "2.6.8"
depd "~1.1.1"
destroy "~1.0.4"
encodeurl "~1.0.1"
escape-html "~1.0.3"
etag "~1.8.0"
fresh "0.5.0"
http-errors "~1.6.1"
http-errors "~1.6.2"
mime "1.3.4"
ms "2.0.0"
on-finished "~2.3.0"
range-parser "~1.2.0"
statuses "~1.3.1"

[email protected].3:
version "1.12.3"
resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.12.3.tgz#9f4ba19e2f3030c547f8af99107838ec38d5b1e2"
[email protected].4:
version "1.12.4"
resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.12.4.tgz#9b6aa98eeb7253c4eedc4c1f6fdbca609901a961"
dependencies:
encodeurl "~1.0.1"
escape-html "~1.0.3"
parseurl "~1.3.1"
send "0.15.3"
send "0.15.4"

set-blocking@^2.0.0, set-blocking@~2.0.0:
version "2.0.0"
Expand Down Expand Up @@ -2852,9 +2842,9 @@ signal-exit@^3.0.0, signal-exit@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"

sinon@3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/sinon/-/sinon-3.0.0.tgz#f6919755c8c705e0b4ae977e8351bbcbaf6d91de"
sinon@3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/sinon/-/sinon-3.2.0.tgz#8848a66ab6e8b80b5532e3824f59f83ea2628c77"
dependencies:
diff "^3.1.0"
formatio "1.2.0"
Expand Down
35 changes: 9 additions & 26 deletions appengine/cloudsql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,21 @@
"start": "node server.js",
"lint": "samples lint",
"pretest": "npm run lint",
"unit-test": "ava --verbose test/*.test.js",
"system-test": "samples test app",
"test": "npm run unit-test && npm run system-test",
"unit-test": "ava test/*.test.js -T 30s",
"system-test": "ava system-test/*.test.js -T 30s",
"test": "ava */*.test.js -T 30s",
"e2e-test": "samples test deploy"
},
"dependencies": {
"express": "4.15.3",
"async": "^2.5.0",
"express": "4.15.4",
"knex": "^0.13.0",
"mysql": "2.13.0",
"pg": "^6.2.3",
"mysql": "2.14.1",
"pg": "^7.1.0",
"prompt": "1.0.0"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "1.4.15",
"ava": "0.19.1"
},
"cloud-repo-tools": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tldr; from our convo, revert changes to "cloud-repo-tools" and the 2 new .js test files, and instead update circle.yml

"test": {
"app": {
"requiredEnvVars": [
"SQL_CLIENT",
"SQL_USER",
"SQL_PASSWORD",
"SQL_DATABASE",
"INSTANCE_CONNECTION_NAME"
],
"msg": "Last 10 visits:",
"substitutions": "YOUR_SQL_CLIENT=$SQL_CLIENT,YOUR_USER=$SQL_USER,YOUR_PASSWORD=$SQL_PASSWORD,YOUR_DATABASE=$SQL_DATABASE,YOUR_INSTANCE_CONNECTION_NAME=$INSTANCE_CONNECTION_NAME",
"args": [
"server.js"
]
}
}
"@google-cloud/nodejs-repo-tools": "1.4.17",
"ava": "0.21.0"
}
}
35 changes: 35 additions & 0 deletions appengine/cloudsql/system-test/_mysql-test-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright 2017, Google, Inc.
// 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.

'use strict';

const path = require(`path`);

const GCLOUD_PROJECT = process.env.GCLOUD_PROJECT;
const GCLOUD_REGION = `us-central1`;
const SQL_INSTANCE_BASE_NAME = `integration-tests-instance`;

module.exports = {
cmd: `server`,
cwd: path.resolve(path.join(__dirname, `../`)),

// This dictionary should override process.env
env: Object.assign({}, process.env, {
INSTANCE_CONNECTION_NAME: `${GCLOUD_PROJECT}:${GCLOUD_REGION}:${SQL_INSTANCE_BASE_NAME}-mysql`,
SQL_CLIENT: `mysql`,
SQL_USER: process.env.MYSQL_USER,
SQL_PASSWORD: process.env.MYSQL_PASSWORD,
SQL_DATABASE: 'appengine_cloudsql',
PORT: 8081
})
};
35 changes: 35 additions & 0 deletions appengine/cloudsql/system-test/_postgres-test-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright 2017, Google, Inc.
// 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.

'use strict';

const path = require(`path`);

const GCLOUD_PROJECT = process.env.GCLOUD_PROJECT;
const GCLOUD_REGION = `us-central1`;
const SQL_INSTANCE_BASE_NAME = `integration-tests-instance`;

module.exports = {
cmd: `server`,
cwd: path.resolve(path.join(__dirname, `../`)),

// This dictionary should override process.env
env: Object.assign({}, process.env, {
INSTANCE_CONNECTION_NAME: `${GCLOUD_PROJECT}:${GCLOUD_REGION}:${SQL_INSTANCE_BASE_NAME}-psql`,
SQL_CLIENT: `pg`,
SQL_USER: process.env.POSTGRES_USER,
SQL_PASSWORD: process.env.POSTGRES_PASSWORD,
SQL_DATABASE: 'appengine_cloudsql',
PORT: 8082
})
};
Loading