-
Notifications
You must be signed in to change notification settings - Fork 2k
[DO NOT MERGE] Update/add tests + fix dependencies #452
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
Closed
Closed
Changes from 11 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
20c8eca
Fix docs-samples tests, round 1
c8c02d5
Add appengine/storage tests
9be16ee
Add appengine/cloudsql tests
cca9891
Add appengine/static-files tests
f44d8d9
Add appengine/mongodb tests
5589a48
Fix monitoring lint
46e610d
Update pubsub README: gcloud alpha -> gcloud beta
a87e81a
Add appengine/pubsub UNIT tests
364fc45
Workaround for nodejs-repo-tools bug
208cfca
Update nodejs-repo-tools + other dependencies
438d58f
Additional updates, no new tests
7d773a2
Move appengine/cloudsql tests to CircleCI
84c8a28
Make appengine/pubsub sample use nodejs-repo-tools
bf44cbf
Move appengine/storage tests to CircleCI
f2837a4
Remove odd chdir call
0b0ccde
Fix circle.yml WIP
fa04f27
Fix circle.yml, take 2
71a3e76
Fix circle.yml, take 3
7ddb359
Fix circle.yml, take 4
0d892fa
Missed a cloud_sql_proxy call
3a86150
Fix circle.yml, take 5
d3941bc
Merge branch 'master' into update-deps-2
jmdobry 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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" | ||
|
|
@@ -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" | ||
|
|
@@ -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" | ||
|
|
@@ -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" | ||
|
|
@@ -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" | ||
|
|
@@ -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" | ||
|
|
@@ -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" | ||
|
|
||
|
|
@@ -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" | ||
|
|
@@ -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: | ||
|
|
@@ -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" | ||
|
|
@@ -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: | ||
|
|
@@ -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" | ||
|
|
@@ -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" | ||
|
|
@@ -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" | ||
|
|
||
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,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 | ||
| }) | ||
| }; |
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,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 | ||
| }) | ||
| }; |
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.
tldr; from our convo, revert changes to "cloud-repo-tools" and the 2 new .js test files, and instead update circle.yml