fix precedence for where the projectId is acquired from#193
fix precedence for where the projectId is acquired from#193ofrobots merged 4 commits intogoogleapis:masterfrom
Conversation
|
apologies for some of the formatting/indentation changes. |
| method: 'POST', | ||
| json: true, | ||
| body: { debuggee: debuggee } | ||
| body: {debuggee: debuggee} |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/controller.js
Outdated
| // We should get an error if we are not on GCP. | ||
| that.onGCP = !err; | ||
|
|
||
| // We perfer to use the locally available projectId as that is least |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
cristiancavalli
left a comment
There was a problem hiding this comment.
Initial scan looks good with a couple questions
| var loggerModule = require('@google/cloud-diagnostics-common').logger; | ||
| var defaultConfig = require('../../src/config.js').debug; | ||
| var Debuglet = require('../../src/agent/debuglet.js'); | ||
| var extend = require('extend'); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
test/standalone/test-debuglet.js
Outdated
| }; | ||
| var fakeDebug = { | ||
| request: request | ||
| request: request // avoid authing. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| projectId: 'project-via-config', | ||
| credentials: require('../fixtures/gcloud-credentials.json') | ||
| }); | ||
| var debug = require('../../')(config); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| describe('test-config-credentials', function() { | ||
| var debuglet = null; | ||
| var envProject = process.env.GCLOUD_PROJECT; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
No description provided.