From 84a5c3e6617bc9ff9fbdd56f657d34f2bdeabe85 Mon Sep 17 00:00:00 2001 From: Ace Nassri Date: Mon, 7 Aug 2017 17:14:07 -0700 Subject: [PATCH] Fix docs-samples tests, round 1 --- appengine/analytics/package.json | 4 +- appengine/cloudsql/package.json | 16 +++-- appengine/datastore/package.json | 4 +- appengine/endpoints/package.json | 2 +- appengine/errorreporting/package.json | 6 +- appengine/hello-world/package.json | 4 +- appengine/mailjet/package.json | 4 +- appengine/mongodb/package.json | 27 ++++++- appengine/mongodb/server.js | 3 - appengine/pubsub/README.md | 4 +- appengine/pubsub/app.js | 5 ++ appengine/pubsub/app.yaml | 4 +- appengine/pubsub/package.json | 28 ++++++-- appengine/pubsub/test/app.test.js | 72 +++++++++++++++++++ appengine/static-files/package.json | 18 ++++- appengine/storage/app.js | 5 ++ appengine/storage/app.yaml | 2 +- appengine/storage/package.json | 22 ++++-- appengine/storage/system-test/app.test.js | 62 ++++++++++++++++ .../storage/system-test/resources/test.txt | 1 + auth/package.json | 2 +- bigquery/package.json | 4 +- circle.yml | 10 ++- computeengine/package.json | 6 +- containerengine/hello-world/package.json | 2 +- datastore/package.json | 4 +- debugger/package.json | 4 +- dlp/package.json | 2 +- dns/package.json | 4 +- endpoints/getting-started-grpc/package.json | 2 +- endpoints/getting-started/package.json | 6 +- error-reporting/package.json | 6 +- functions/background/package.json | 4 +- functions/datastore/package.json | 4 +- functions/gcs/package.json | 4 +- functions/helloworld/package.json | 4 +- functions/http/package.json | 4 +- functions/imagemagick/package.json | 4 +- functions/log/package.json | 6 +- functions/pubsub/package.json | 4 +- functions/sendgrid/package.json | 6 +- functions/slack/package.json | 4 +- functions/spanner/package.json | 8 +-- functions/uuid/package.json | 4 +- kms/package.json | 2 +- language/package.json | 4 +- language/slackbot/package.json | 8 +-- logging/package.json | 8 +-- monitoring/create_custom_metric.js | 57 +++++++-------- monitoring/package.json | 12 ++-- .../system-test/create_custom_metric.test.js | 10 ++- monitoring/system-test/metrics.test.js | 17 +++-- monitoring/system-test/quickstart.test.js | 3 +- package.json | 8 +-- prediction/package.json | 2 +- pubsub/package.json | 4 +- resource/package.json | 4 +- spanner/package.json | 4 +- speech/package.json | 4 +- storage/package.json | 2 +- trace/package.json | 8 +-- translate/package.json | 4 +- 62 files changed, 389 insertions(+), 173 deletions(-) create mode 100644 appengine/pubsub/test/app.test.js create mode 100644 appengine/storage/system-test/app.test.js create mode 100644 appengine/storage/system-test/resources/test.txt diff --git a/appengine/analytics/package.json b/appengine/analytics/package.json index 5805001744..b315fc49a5 100644 --- a/appengine/analytics/package.json +++ b/appengine/analytics/package.json @@ -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": { diff --git a/appengine/cloudsql/package.json b/appengine/cloudsql/package.json index e8311bcda5..f24fe0c955 100644 --- a/appengine/cloudsql/package.json +++ b/appengine/cloudsql/package.json @@ -19,19 +19,21 @@ "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", + "all-test": "npm run unit-test && npm run system-test", + "test": "samples test run --cmd npm -- run all-test", "e2e-test": "samples test deploy" }, "dependencies": { - "express": "4.15.3", - "knex": "^0.13.0", - "mysql": "2.13.0", - "pg": "^6.2.3", + "async": "2.5.0", + "express": "4.15.4", + "knex": "0.13.0", + "mysql": "2.14.1", + "pg": "7.2.0", "prompt": "1.0.0" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.15", - "ava": "0.19.1" + "@google-cloud/nodejs-repo-tools": "1.4.17", + "ava": "0.22.0" }, "cloud-repo-tools": { "test": { diff --git a/appengine/datastore/package.json b/appengine/datastore/package.json index f5468b17a7..dc0718997f 100644 --- a/appengine/datastore/package.json +++ b/appengine/datastore/package.json @@ -23,10 +23,10 @@ }, "dependencies": { "@google-cloud/datastore": "1.1.0", - "express": "4.15.3" + "express": "4.15.4" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16" + "@google-cloud/nodejs-repo-tools": "1.4.17" }, "cloud-repo-tools": { "test": { diff --git a/appengine/endpoints/package.json b/appengine/endpoints/package.json index 62faf52977..f3338774d7 100644 --- a/appengine/endpoints/package.json +++ b/appengine/endpoints/package.json @@ -25,7 +25,7 @@ }, "dependencies": { "body-parser": "1.17.2", - "express": "4.15.3", + "express": "4.15.4", "safe-buffer": "5.1.1" }, "devDependencies": { diff --git a/appengine/errorreporting/package.json b/appengine/errorreporting/package.json index c125ede9b3..84d06864b6 100644 --- a/appengine/errorreporting/package.json +++ b/appengine/errorreporting/package.json @@ -24,13 +24,13 @@ }, "dependencies": { "@google-cloud/error-reporting": "0.2.1", - "express": "4.15.3" + "express": "4.15.4" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "test": { diff --git a/appengine/hello-world/package.json b/appengine/hello-world/package.json index 35f0ca2407..a90e2bbeba 100644 --- a/appengine/hello-world/package.json +++ b/appengine/hello-world/package.json @@ -22,10 +22,10 @@ "e2e-test": "samples test deploy" }, "dependencies": { - "express": "4.15.3" + "express": "4.15.4" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16" + "@google-cloud/nodejs-repo-tools": "1.4.17" }, "cloud-repo-tools": { "test": { diff --git a/appengine/mailjet/package.json b/appengine/mailjet/package.json index f2d5e4dd67..e833b17ac6 100644 --- a/appengine/mailjet/package.json +++ b/appengine/mailjet/package.json @@ -23,12 +23,12 @@ }, "dependencies": { "body-parser": "1.17.2", - "express": "4.15.3", + "express": "4.15.4", "jade": "1.11.0", "node-mailjet": "3.2.1" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16" + "@google-cloud/nodejs-repo-tools": "1.4.17" }, "cloud-repo-tools": { "test": { diff --git a/appengine/mongodb/package.json b/appengine/mongodb/package.json index 8a9c3a0500..9cf8675c3e 100644 --- a/appengine/mongodb/package.json +++ b/appengine/mongodb/package.json @@ -8,8 +8,31 @@ "engines": { "node": ">=4.3.2" }, + "scripts": { + "start": "node server.js", + "test": "samples test app" + }, + "cloud-repo-tools": { + "test": { + "app": { + "requiredEnvVars": [ + "mongoHost", + "mongoPort", + "mongoUser", + "mongoPassword" + ], + "msg": "IPs:\n::1;", + "args": [ + "server.js" + ] + } + } + }, "dependencies": { - "nconf": "0.8.4", - "mongodb": "2.2.22" + "mongodb": "2.2.31", + "nconf": "0.8.4" + }, + "devDependencies": { + "@google-cloud/nodejs-repo-tools": "^1.4.17" } } diff --git a/appengine/mongodb/server.js b/appengine/mongodb/server.js index ea7c9e43dd..0405b124a6 100644 --- a/appengine/mongodb/server.js +++ b/appengine/mongodb/server.js @@ -34,13 +34,10 @@ const port = nconf.get('mongoPort'); // [START client] let uri = `mongodb://${user}:${pass}@${host}:${port}`; - if (nconf.get('mongoDatabase')) { uri = `${uri}/${nconf.get('mongoDatabase')}`; } -console.log(uri); - mongodb.MongoClient.connect(uri, (err, db) => { if (err) { throw err; diff --git a/appengine/pubsub/README.md b/appengine/pubsub/README.md index 0799378704..fdb0e035ce 100644 --- a/appengine/pubsub/README.md +++ b/appengine/pubsub/README.md @@ -9,8 +9,8 @@ Before you can run or deploy the sample, you will need to do the following: 1. Enable the Cloud Pub/Sub API in the [Google Developers Console](https://console.developers.google.com/project/_/apiui/apiview/pubsub/overview). 1. Create a topic and subscription. - gcloud alpha pubsub topics create - gcloud alpha pubsub subcriptions create \ + gcloud beta pubsub topics create + gcloud beta pubsub subcriptions create \ --topic \ --push-endpoint \ https://.appspot.com/pubsub/push?token= \ diff --git a/appengine/pubsub/app.js b/appengine/pubsub/app.js index 2f26453f9b..3b6a6d9308 100644 --- a/appengine/pubsub/app.js +++ b/appengine/pubsub/app.js @@ -18,7 +18,9 @@ const express = require('express'); const bodyParser = require('body-parser'); +const path = require('path'); const Buffer = require('safe-buffer').Buffer; +const process = require('process'); // Required for mocking environment variables // By default, the client will authenticate using the service account file // specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use @@ -32,6 +34,7 @@ const pubsub = PubSub(); const app = express(); app.set('view engine', 'pug'); +app.set('views', path.join(__dirname, 'views')); const formBodyParser = bodyParser.urlencoded({ extended: false }); const jsonBodyParser = bodyParser.json(); @@ -91,3 +94,5 @@ app.listen(PORT, () => { console.log('Press Ctrl+C to quit.'); }); // [END app] + +module.exports = app; diff --git a/appengine/pubsub/app.yaml b/appengine/pubsub/app.yaml index 5348edbe91..271aaeccd6 100644 --- a/appengine/pubsub/app.yaml +++ b/appengine/pubsub/app.yaml @@ -17,9 +17,9 @@ env: flex # [START env] env_variables: - PUBSUB_TOPIC: + PUBSUB_TOPIC: YOUR_TOPIC_NAME # This token is used to verify that requests originate from your # application. It can be any sufficiently random string. - PUBSUB_VERIFICATION_TOKEN: + PUBSUB_VERIFICATION_TOKEN: YOUR_VERIFICATION_TOKEN # [END env] # [END app_yaml] diff --git a/appengine/pubsub/package.json b/appengine/pubsub/package.json index 8a64086ea6..82d8887fce 100644 --- a/appengine/pubsub/package.json +++ b/appengine/pubsub/package.json @@ -9,13 +9,29 @@ "node": ">=4.3.2" }, "scripts": { - "start": "node app.js" + "start": "node app.js", + "test": "samples test app && ava -T 30s */*.test.js" }, "dependencies": { - "@google-cloud/pubsub": "0.8.0", - "body-parser": "1.16.0", - "express": "4.14.1", - "pug": "2.0.0-beta6", - "safe-buffer": "5.0.1" + "@google-cloud/pubsub": "0.13.2", + "body-parser": "1.17.2", + "express": "4.15.4", + "pug": "2.0.0-rc.3", + "safe-buffer": "5.1.1" + }, + "devDependencies": { + "uuid": "3.1.0" + }, + "cloud-repo-tools": { + "test": { + "app": { + "requiredEnvVars": [ + "PUBSUB_TOPIC", + "PUBSUB_VERIFICATION_TOKEN" + ], + "msg": "Messages received by this instance", + "substitutions": "YOUR_TOPIC_NAME=$PUBSUB_TOPIC,YOUR_VERIFICATION_TOKEN=$PUBSUB_VERIFICATION_TOKEN" + } + } } } diff --git a/appengine/pubsub/test/app.test.js b/appengine/pubsub/test/app.test.js new file mode 100644 index 0000000000..a3f7adbc92 --- /dev/null +++ b/appengine/pubsub/test/app.test.js @@ -0,0 +1,72 @@ +// 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. + +// NOTE: +// This app can only be fully tested when deployed, because +// Pub/Sub requires a live endpoint URL to hit. Nevertheless, +// these tests mock it and partially test it locally. + +'use strict'; + +const test = require(`ava`); +const path = require(`path`); +const utils = require(`@google-cloud/nodejs-repo-tools`); + +const message = `This is a test message sent at: `; +const payload = message + Date.now(); + +const cwd = path.join(__dirname, `../`); +const requestObj = utils.getRequest({ cwd: cwd }); + +test.serial.cb(`should send a message to Pub/Sub`, (t) => { + requestObj + .post(`/`) + .type('form') + .send({ payload: payload }) + .expect(200) + .expect((response) => { + t.is(response.text, `Message sent`); + }) + .end(t.end); +}); + +test.serial.cb(`should receive incoming Pub/Sub messages`, (t) => { + requestObj + .post(`/pubsub/push`) + .query({ token: process.env.PUBSUB_VERIFICATION_TOKEN }) + .send({ + message: { + data: payload + } + }) + .expect(200) + .end(t.end); +}); + +test.serial.cb(`should check for verification token on incoming Pub/Sub messages`, (t) => { + requestObj + .post(`/pubsub/push`) + .field(`payload`, payload) + .expect(400) + .end(t.end); +}); + +test.serial.cb(`should list sent Pub/Sub messages`, (t) => { + requestObj + .get(`/`) + .expect(200) + .expect((response) => { + t.regex(response.text, /Messages received by this instance/); + }) + .end(t.end); +}); diff --git a/appengine/static-files/package.json b/appengine/static-files/package.json index fa45ccfe47..f9c2f695e7 100644 --- a/appengine/static-files/package.json +++ b/appengine/static-files/package.json @@ -9,10 +9,22 @@ "node": ">=4.3.2" }, "scripts": { - "start": "node app.js" + "start": "node app.js", + "test": "samples test app --url localhost:8080/static/main.css" + }, + "cloud-repo-tools": { + "test": { + "app": { + "msg": "background-color", + "port": 8080 + } + } }, "dependencies": { - "express": "4.14.1", - "pug": "2.0.0-beta6" + "express": "4.15.4", + "pug": "2.0.0-rc.3" + }, + "devDependencies": { + "@google-cloud/nodejs-repo-tools": "1.4.17" } } diff --git a/appengine/storage/app.js b/appengine/storage/app.js index db2e140ed8..4d9ef4654d 100644 --- a/appengine/storage/app.js +++ b/appengine/storage/app.js @@ -19,6 +19,8 @@ const format = require('util').format; const express = require('express'); const Multer = require('multer'); +const bodyParser = require('body-parser'); +const process = require('process'); // Required to mock environment variables // By default, the client will authenticate using the service account file // specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use @@ -32,6 +34,7 @@ const storage = Storage(); const app = express(); app.set('view engine', 'pug'); +app.use(bodyParser.json()); // [START config] // Multer is required to process file uploads and make them available via @@ -86,3 +89,5 @@ app.listen(PORT, () => { console.log('Press Ctrl+C to quit.'); }); // [END app] + +module.exports = app; diff --git a/appengine/storage/app.yaml b/appengine/storage/app.yaml index bed8c3128a..44f7048bf7 100644 --- a/appengine/storage/app.yaml +++ b/appengine/storage/app.yaml @@ -17,6 +17,6 @@ env: flex # [START env] env_variables: - GCLOUD_STORAGE_BUCKET: + GCLOUD_STORAGE_BUCKET: YOUR_BUCKET_NAME # [END env] # [END app_yaml] diff --git a/appengine/storage/package.json b/appengine/storage/package.json index dad615396d..1435d1e150 100644 --- a/appengine/storage/package.json +++ b/appengine/storage/package.json @@ -2,16 +2,28 @@ "name": "appengine-storage", "description": "Node.js Google Cloud Storage sample for Google App Engine", "scripts": { - "start": "node app.js" + "start": "node app.js", + "test": "ava system-test/*.test.js -T 30s" }, "engines": { "node": ">=4.3.2" }, "dependencies": { - "@google-cloud/storage": "0.7.0", - "body-parser": "1.16.0", - "express": "4.14.1", + "@google-cloud/storage": "1.2.1", + "body-parser": "1.17.2", + "express": "4.15.4", "multer": "1.3.0", - "pug": "2.0.0-beta6" + "pug": "2.0.0-rc.3" + }, + "cloud-repo-tools": { + "test": { + "app": { + "requiredEnvVars": [ + "GCLOUD_STORAGE_BUCKET" + ], + "msg": "", + "substitutions": "YOUR_BUCKET_NAME=$GCLOUD_STORAGE_BUCKET" + } + } } } diff --git a/appengine/storage/system-test/app.test.js b/appengine/storage/system-test/app.test.js new file mode 100644 index 0000000000..7eae5cdf8c --- /dev/null +++ b/appengine/storage/system-test/app.test.js @@ -0,0 +1,62 @@ +// 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 Storage = require(`@google-cloud/storage`); +const storage = Storage(); +const test = require(`ava`); +const utils = require(`@google-cloud/nodejs-repo-tools`); + +const bucketName = process.env.GCLOUD_STORAGE_BUCKET; +const bucket = storage.bucket(bucketName); + +const cwd = path.join(__dirname, `../`); +const requestObj = utils.getRequest({ cwd: cwd }); + +test.before(async () => { + utils.checkCredentials(); + await bucket.create(bucket).then((data) => { + return bucket.acl.add({ + entity: 'allUsers', + role: Storage.acl.WRITER_ROLE + }); + }); +}); +test.after.always(async () => { + try { + await bucket.delete(); + } catch (err) {} // ignore error +}); + +test.cb.serial(`should load`, (t) => { + requestObj + .get(`/`) + .expect(200) + .expect((response) => { + t.regex(response.text, //); + }) + .end(t.end); +}); + +test.cb.serial(`should upload a file`, (t) => { + requestObj + .post(`/upload`) + .attach(`file`, path.join(__dirname, `resources/test.txt`)) + .expect(200) + .expect((response) => { + t.is(response.text, `https://storage.googleapis.com/${bucketName}/test.txt`); + }) + .end(t.end); +}); diff --git a/appengine/storage/system-test/resources/test.txt b/appengine/storage/system-test/resources/test.txt new file mode 100644 index 0000000000..3dcff04919 --- /dev/null +++ b/appengine/storage/system-test/resources/test.txt @@ -0,0 +1 @@ +nodejs-docs-samples/appengine/storage test file \ No newline at end of file diff --git a/auth/package.json b/auth/package.json index 2a285cfe14..13af137e95 100644 --- a/auth/package.json +++ b/auth/package.json @@ -21,7 +21,7 @@ "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0" }, "cloud-repo-tools": { diff --git a/bigquery/package.json b/bigquery/package.json index 29cc5adc3e..82b7700272 100644 --- a/bigquery/package.json +++ b/bigquery/package.json @@ -22,10 +22,10 @@ "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0", + "sinon": "3.2.0", "uuid": "3.1.0" }, "cloud-repo-tools": { diff --git a/circle.yml b/circle.yml index 93cee52a45..75fb2e484a 100644 --- a/circle.yml +++ b/circle.yml @@ -19,6 +19,8 @@ machine: node: version: 6.11.2 + pre: + - echo "alias cloud_sql_setup=\"export INSTANCE_CONNECTION_NAME=nodejs-docs-samples:us-central1:integration-tests-instance-\$SQL_CLIENT && ~/cloud_sql_proxy -instances=\$INSTANCE_CONNECTION_NAME=tcp:\$SQL_PORT\"" >> ~/.bashrc # Use for broader build-related configuration general: @@ -34,6 +36,7 @@ dependencies: - yarn global add ava nyc codecov semistandard @google-cloud/nodejs-repo-tools - yarn install - yarn run lint + - wget https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64 -O ~/cloud_sql_proxy && chmod +x ~/cloud_sql_proxy - samples test install -l=functions/background - samples test install -l=functions/datastore - samples test install -l=functions/errorreporting @@ -75,13 +78,18 @@ deployment: owner: GoogleCloudPlatform commands: - node scripts/build "appengine/analytics" - - node scripts/build "appengine/cloudsql" -- --test-args "run unit-test" + - SQL_CLIENT=mysql SQL_PORT=3306 cloud_sql_setup + node scripts/build "appengine/cloudsql" -- --test-args "run system-test" + - SQL_CLIENT=pg SQL_PORT=5432 cloud_sql_setup + node scripts/build "appengine/cloudsql" -- --test-args "run system-test" - node scripts/build "appengine/datastore" - node scripts/build "appengine/endpoints" - node scripts/build "appengine/errorreporting" - node scripts/build "appengine/hello-world" - node scripts/build "appengine/mailjet" - node scripts/build "auth" + - node scripts/build "appengine/pubsub" + - GCLOUD_STORAGE_BUCKET=docs-samples-gae-test node scripts/build "appengine/storage" - node scripts/build "bigquery" - node scripts/build "computeengine" - node scripts/build "containerengine/hello-world" diff --git a/computeengine/package.json b/computeengine/package.json index 4df5cc3f5a..8703aae31e 100644 --- a/computeengine/package.json +++ b/computeengine/package.json @@ -20,14 +20,14 @@ "test": "samples test run --cmd npm -- run all-test" }, "dependencies": { - "@google-cloud/compute": "0.7.2", + "@google-cloud/compute": "0.8.0", "googleapis": "20.1.0", "nodemailer": "4.0.1", "nodemailer-smtp-transport": "2.7.4", - "sendgrid": "5.2.0" + "sendgrid": "5.2.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0" }, diff --git a/containerengine/hello-world/package.json b/containerengine/hello-world/package.json index f2a0b40e1e..458147dbb5 100644 --- a/containerengine/hello-world/package.json +++ b/containerengine/hello-world/package.json @@ -21,7 +21,7 @@ }, "dependencies": {}, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16" + "@google-cloud/nodejs-repo-tools": "1.4.17" }, "cloud-repo-tools": { "test": { diff --git a/datastore/package.json b/datastore/package.json index 5155eb921e..42673c3698 100644 --- a/datastore/package.json +++ b/datastore/package.json @@ -21,10 +21,10 @@ "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/debugger/package.json b/debugger/package.json index 0f3a6de207..67fa2e1ddb 100644 --- a/debugger/package.json +++ b/debugger/package.json @@ -23,10 +23,10 @@ }, "dependencies": { "@google-cloud/debug-agent": "2.1.3", - "express": "4.15.3" + "express": "4.15.4" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16" + "@google-cloud/nodejs-repo-tools": "1.4.17" }, "cloud-repo-tools": { "test": { diff --git a/dlp/package.json b/dlp/package.json index cc589ea666..05a02a77f8 100644 --- a/dlp/package.json +++ b/dlp/package.json @@ -57,7 +57,7 @@ "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0" } } diff --git a/dns/package.json b/dns/package.json index b651d5b545..2ccca35ab8 100644 --- a/dns/package.json +++ b/dns/package.json @@ -21,10 +21,10 @@ "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/endpoints/getting-started-grpc/package.json b/endpoints/getting-started-grpc/package.json index 3d28fb6343..02b0fd30c3 100644 --- a/endpoints/getting-started-grpc/package.json +++ b/endpoints/getting-started-grpc/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "body-parser": "1.17.2", - "express": "4.15.3", + "express": "4.15.4", "google-auth-library": "^0.10.0", "grpc": "1.4.1", "jsonwebtoken": "^7.4.1", diff --git a/endpoints/getting-started/package.json b/endpoints/getting-started/package.json index 8b3c497290..57fcbfbd68 100644 --- a/endpoints/getting-started/package.json +++ b/endpoints/getting-started/package.json @@ -20,14 +20,14 @@ }, "dependencies": { "body-parser": "1.17.2", - "express": "4.15.3", + "express": "4.15.4", "safe-buffer": "5.1.1" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0", + "sinon": "3.2.0", "supertest": "3.0.0" } } diff --git a/error-reporting/package.json b/error-reporting/package.json index a7d738e732..0c5fb6d054 100644 --- a/error-reporting/package.json +++ b/error-reporting/package.json @@ -22,14 +22,14 @@ }, "dependencies": { "@google-cloud/error-reporting": "0.2.1", - "express": "4.15.3", + "express": "4.15.4", "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/functions/background/package.json b/functions/background/package.json index 6a03452397..bba4020599 100644 --- a/functions/background/package.json +++ b/functions/background/package.json @@ -21,10 +21,10 @@ "request-promise": "4.2.1" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/functions/datastore/package.json b/functions/datastore/package.json index 55af546b3d..4914ac3ee0 100644 --- a/functions/datastore/package.json +++ b/functions/datastore/package.json @@ -20,10 +20,10 @@ "@google-cloud/datastore": "1.1.0" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/functions/gcs/package.json b/functions/gcs/package.json index c091fb4b67..9b137d6d6e 100644 --- a/functions/gcs/package.json +++ b/functions/gcs/package.json @@ -21,10 +21,10 @@ "request": "2.81.0" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/functions/helloworld/package.json b/functions/helloworld/package.json index 8e66c6a5ef..4a896d4ba2 100644 --- a/functions/helloworld/package.json +++ b/functions/helloworld/package.json @@ -22,10 +22,10 @@ "safe-buffer": "5.1.1" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/functions/http/package.json b/functions/http/package.json index 96d8f2c7dd..634d2da900 100644 --- a/functions/http/package.json +++ b/functions/http/package.json @@ -17,10 +17,10 @@ "test": "ava -T 20s --verbose test/*.test.js" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "dependencies": { "safe-buffer": "5.1.1" diff --git a/functions/imagemagick/package.json b/functions/imagemagick/package.json index 1818ade616..9486fdc204 100644 --- a/functions/imagemagick/package.json +++ b/functions/imagemagick/package.json @@ -21,10 +21,10 @@ "@google-cloud/vision": "0.12.0" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/functions/log/package.json b/functions/log/package.json index f60e586410..9686720437 100644 --- a/functions/log/package.json +++ b/functions/log/package.json @@ -17,14 +17,14 @@ "test": "ava -T 20s --verbose test/*.test.js" }, "dependencies": { - "@google-cloud/logging": "1.0.4", + "@google-cloud/logging": "1.0.5", "@google-cloud/monitoring": "0.2.3" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/functions/pubsub/package.json b/functions/pubsub/package.json index 73511c7bb0..65adf0d032 100644 --- a/functions/pubsub/package.json +++ b/functions/pubsub/package.json @@ -21,10 +21,10 @@ "safe-buffer": "5.1.1" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/functions/sendgrid/package.json b/functions/sendgrid/package.json index 98802347c5..9c8494921e 100644 --- a/functions/sendgrid/package.json +++ b/functions/sendgrid/package.json @@ -20,14 +20,14 @@ "@google-cloud/bigquery": "0.9.6", "@google-cloud/storage": "1.2.1", "safe-buffer": "5.1.1", - "sendgrid": "5.2.0", + "sendgrid": "5.2.2", "uuid": "3.1.0" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/functions/slack/package.json b/functions/slack/package.json index 8104d4920c..cf92ff8555 100644 --- a/functions/slack/package.json +++ b/functions/slack/package.json @@ -20,10 +20,10 @@ "googleapis": "20.1.0" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/functions/spanner/package.json b/functions/spanner/package.json index 3c75d666a4..22aaf78bf2 100644 --- a/functions/spanner/package.json +++ b/functions/spanner/package.json @@ -17,13 +17,13 @@ "test": "ava -T 20s --verbose test/*.test.js" }, "dependencies": { - "@google-cloud/spanner": "0.4.4" + "@google-cloud/spanner": "0.7.1" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.15", - "ava": "0.19.1", + "@google-cloud/nodejs-repo-tools": "1.4.17", + "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "2.3.4" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/functions/uuid/package.json b/functions/uuid/package.json index d7adfdf4d1..aa69fd79ba 100644 --- a/functions/uuid/package.json +++ b/functions/uuid/package.json @@ -20,9 +20,9 @@ "uuid": "3.1.0" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/kms/package.json b/kms/package.json index 5c2e230c1a..2e4e6dc924 100644 --- a/kms/package.json +++ b/kms/package.json @@ -22,7 +22,7 @@ "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0" }, diff --git a/language/package.json b/language/package.json index f74fc45302..f2a7e2061c 100644 --- a/language/package.json +++ b/language/package.json @@ -27,10 +27,10 @@ "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/language/slackbot/package.json b/language/slackbot/package.json index bc61989b80..75c71a8b39 100644 --- a/language/slackbot/package.json +++ b/language/slackbot/package.json @@ -24,13 +24,13 @@ }, "dependencies": { "@google-cloud/language": "0.11.0", - "botkit": "0.5.6", - "sqlite3": "3.1.8" + "botkit": "0.5.7", + "sqlite3": "3.1.9" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" } } diff --git a/logging/package.json b/logging/package.json index cd163d515c..be8c2e055d 100644 --- a/logging/package.json +++ b/logging/package.json @@ -20,21 +20,21 @@ "test": "samples test run --cmd npm -- run all-test" }, "dependencies": { - "@google-cloud/logging": "1.0.4", + "@google-cloud/logging": "1.0.5", "@google-cloud/logging-bunyan": "0.5.0", "@google-cloud/logging-winston": "0.5.0", "@google-cloud/storage": "1.2.1", "bunyan": "1.8.12", - "express": "4.15.3", + "express": "4.15.4", "fluent-logger": "2.4.1", "winston": "2.3.1", "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0", + "sinon": "3.2.0", "supertest": "3.0.0", "uuid": "3.1.0" }, diff --git a/monitoring/create_custom_metric.js b/monitoring/create_custom_metric.js index 33e431dd25..cf0e223a8d 100644 --- a/monitoring/create_custom_metric.js +++ b/monitoring/create_custom_metric.js @@ -116,36 +116,38 @@ CustomMetrics.prototype.writeTimeSeriesForCustomMetric = var monitoring = google.monitoring('v3'); var now = getNow(); + var timeSeries = [{ + metric: { + type: this.metricType, + labels: { + environment: 'production' + } + }, + resource: { + type: 'gce_instance', + labels: { + instance_id: 'test_instance', + zone: 'us-central1-f' + } + }, + points: { + interval: { + startTime: now, + endTime: now + }, + value: { + int64Value: this.getRandomInt(1, 20) + } + } + }]; + monitoring.projects.timeSeries.create({ auth: client, name: this.projectResource, resource: { - timeSeries: [{ - metric: { - type: this.metricType, - labels: { - environment: 'production' - } - }, - resource: { - type: 'gce_instance', - labels: { - instance_id: 'test_instance', - zone: 'us-central1-f' - } - }, - points: { - interval: { - startTime: now, - endTime: now - }, - value: { - int64Value: this.getRandomInt(1, 20) - } - } - }] + timeSeries: timeSeries } - }, function (err, timeSeries) { + }, function (err) { if (err) { return callback(err); } @@ -170,11 +172,10 @@ CustomMetrics.prototype.listTimeSeries = function (client, callback) { var endTime = getNow(); console.log('Reading metric type', this.metricType); - monitoring.projects.timeSeries.list({ auth: client, name: this.projectResource, - filter: 'metric.type="' + this.metricType + '"', + filter: `metric.type = "${this.metricType}"`, pageSize: 3, 'interval.startTime': startTime, 'interval.endTime': endTime @@ -255,7 +256,7 @@ exports.main = function (projectId, name, cb) { function (cb) { setTimeout(function () { customMetrics.listTimeSeries(authClient, cb); - }, 10000); + }, 45000); }, function (cb) { customMetrics.deleteMetric(authClient, cb); diff --git a/monitoring/package.json b/monitoring/package.json index 6dfaeeb226..d25a85639b 100644 --- a/monitoring/package.json +++ b/monitoring/package.json @@ -17,16 +17,16 @@ "test": "samples test run --cmd ava -- -T 3m --verbose system-test/*.test.js" }, "dependencies": { - "@google-cloud/monitoring": "0.2.2", - "async": "2.4.1", - "googleapis": "19.0.0", + "@google-cloud/monitoring": "0.2.3", + "async": "2.5.0", + "googleapis": "20.1.0", "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.15", - "ava": "0.19.1", + "@google-cloud/nodejs-repo-tools": "1.4.17", + "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "2.3.4" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/monitoring/system-test/create_custom_metric.test.js b/monitoring/system-test/create_custom_metric.test.js index a2e2360416..ba09a252ed 100644 --- a/monitoring/system-test/create_custom_metric.test.js +++ b/monitoring/system-test/create_custom_metric.test.js @@ -21,15 +21,14 @@ const tools = require(`@google-cloud/nodejs-repo-tools`); /** Refactored out to keep lines shorter */ function getPointValue (timeSeries) { - return timeSeries.timeSeries[0].points[0].value.int64Value; + return timeSeries[0].points.value.int64Value; } test.before(tools.checkCredentials); test.before(tools.stubConsole); test.after.always(tools.restoreConsole); -// TODO(anassri): Fix results[2] being undefined -test.skip.cb('should create and read back a custom metric', (t) => { +test.cb('should create and read back a custom metric', (t) => { customMetricsExample.main( process.env.GCLOUD_PROJECT, Math.random().toString(36).substring(7), @@ -39,10 +38,9 @@ test.skip.cb('should create and read back a custom metric', (t) => { // Result of creating metric t.is(typeof results[0].name, 'string'); // Result of writing time series - t.deepEqual(results[1], {}); + t.deepEqual(results[3], {}); // Result of reading time series - t.is(typeof getPointValue(results[2]), 'string'); - t.false(isNaN(parseInt(getPointValue(results[2]), 10))); + t.false(isNaN(getPointValue(results[1]))); // Result of deleting metric t.deepEqual(results[3], {}); t.true(console.log.calledWith('Created custom metric')); diff --git a/monitoring/system-test/metrics.test.js b/monitoring/system-test/metrics.test.js index 9e079df6d7..62db00c360 100644 --- a/monitoring/system-test/metrics.test.js +++ b/monitoring/system-test/metrics.test.js @@ -29,8 +29,6 @@ const projectId = process.env.GCLOUD_PROJECT; const resourceId = `cloudsql_database`; test.before(tools.checkCredentials); -test.beforeEach(tools.stubConsole); -test.afterEach.always(tools.restoreConsole); test.serial(`should create a metric descriptors`, async (t) => { const output = await tools.runAsync(`${cmd} create`, cwd); @@ -40,20 +38,25 @@ test.serial(`should create a metric descriptors`, async (t) => { test.serial(`should list metric descriptors, including the new custom one`, async (t) => { t.plan(0); - await tools.tryTest(async (assert) => { + const attempt = tools.tryTest(async (assert) => { const output = await tools.runAsync(`${cmd} list`, cwd); assert(output.includes(customMetricId)); assert(output.includes(computeMetricId)); - }).start(); + }); + attempt.tries(30); + attempt.timeout(120000); + await attempt.start(); }); test.serial(`should get a metric descriptor`, async (t) => { t.plan(0); - await tools.tryTest(async (assert) => { + const attempt = tools.tryTest(async (assert) => { const output = await tools.runAsync(`${cmd} get ${customMetricId}`, cwd); - console.log(output); assert(output.includes(`Type: ${customMetricId}`)); - }).start(); + }); + attempt.tries(30); + attempt.timeout(120000); + await attempt.start(); }); test.serial(`should write time series data`, async (t) => { diff --git a/monitoring/system-test/quickstart.test.js b/monitoring/system-test/quickstart.test.js index 5411046d52..8ac5431539 100644 --- a/monitoring/system-test/quickstart.test.js +++ b/monitoring/system-test/quickstart.test.js @@ -25,8 +25,7 @@ const client = proxyquire(`@google-cloud/monitoring`, {}).v3().metricServiceClie test.beforeEach(tools.stubConsole); test.afterEach.always(tools.restoreConsole); -// TODO(anassri): Fix this test occasionally omitting time series data -test.skip.cb(`should list time series`, (t) => { +test.cb(`should list time series`, (t) => { const clientMock = { projectPath: (projectId) => client.projectPath(projectId), createTimeSeries: (_request) => { diff --git a/package.json b/package.json index 182fa1a2ef..315d1a484d 100644 --- a/package.json +++ b/package.json @@ -53,10 +53,10 @@ "update-dependencies": "./scripts/update-dependencies.sh" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.15", - "@google-cloud/storage": "1.1.1", - "ava": "0.19.1", - "nyc": "11.0.2", + "@google-cloud/nodejs-repo-tools": "1.4.17", + "@google-cloud/storage": "1.2.1", + "ava": "0.21.0", + "nyc": "11.1.0", "semistandard": "^11.0.0", "shelljs": "0.7.8" } diff --git a/prediction/package.json b/prediction/package.json index 9ceda0fe22..9f988064bd 100644 --- a/prediction/package.json +++ b/prediction/package.json @@ -20,7 +20,7 @@ "googleapis": "20.1.0" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0" }, "cloud-repo-tools": { diff --git a/pubsub/package.json b/pubsub/package.json index f145329ad2..b26afb79f1 100644 --- a/pubsub/package.json +++ b/pubsub/package.json @@ -21,10 +21,10 @@ "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/resource/package.json b/resource/package.json index 6f510fe48e..58a78fcb05 100644 --- a/resource/package.json +++ b/resource/package.json @@ -21,10 +21,10 @@ "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/spanner/package.json b/spanner/package.json index a58a406617..1fd115fcd5 100644 --- a/spanner/package.json +++ b/spanner/package.json @@ -21,10 +21,10 @@ "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/speech/package.json b/speech/package.json index c7a2bc4f8c..6449f5ac39 100644 --- a/speech/package.json +++ b/speech/package.json @@ -23,10 +23,10 @@ "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true, diff --git a/storage/package.json b/storage/package.json index 660dab2b21..3c5ccdfb49 100644 --- a/storage/package.json +++ b/storage/package.json @@ -29,7 +29,7 @@ "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0", + "sinon": "3.2.0", "uuid": "3.1.0" }, "cloud-repo-tools": { diff --git a/trace/package.json b/trace/package.json index 9229850bfa..151d157176 100644 --- a/trace/package.json +++ b/trace/package.json @@ -21,12 +21,12 @@ "e2e-test": "samples test deploy" }, "dependencies": { - "@google-cloud/trace-agent": "2.1.0", - "express": "4.15.3", - "got": "7.0.0" + "@google-cloud/trace-agent": "2.1.3", + "express": "4.15.4", + "got": "7.1.0" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.15" + "@google-cloud/nodejs-repo-tools": "1.4.17" }, "cloud-repo-tools": { "test": { diff --git a/translate/package.json b/translate/package.json index 073205e665..3cd11dc889 100644 --- a/translate/package.json +++ b/translate/package.json @@ -21,10 +21,10 @@ "yargs": "8.0.2" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "1.4.16", + "@google-cloud/nodejs-repo-tools": "1.4.17", "ava": "0.21.0", "proxyquire": "1.8.0", - "sinon": "3.0.0" + "sinon": "3.2.0" }, "cloud-repo-tools": { "requiresKeyFile": true,