provide minorversion label on AppEngine#237
Conversation
cristiancavalli
left a comment
There was a problem hiding this comment.
LGTM, just a quick couple questions:
test/test-debuglet.js
Outdated
| var debuglet = new Debuglet(debug, defaultConfig); | ||
| assert.ok(debuglet.config_); | ||
| assert.ok(debuglet.config_.serviceContext); | ||
| assert.ok(!debuglet.config_.serviceContext.minorVersion); |
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.
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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| it('should provide minorversion upon registration if on flex', function( | ||
| done) { | ||
| process.env.GAE_SERVICE = 'fake-service'; |
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/test-debuglet.js
Outdated
| {projectId: 'fake-project', credentials: fakeCredentials}); | ||
| var debuglet = new Debuglet(debug, defaultConfig); | ||
|
|
||
| var scope = nock(API).post(REGISTER_PATH, function(body) { |
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.
| } | ||
|
|
||
| if (_.isString(serviceContext.minorVersion)) { | ||
| // v--- intentional lowercase |
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.
df1df14 to
5a2ce08
Compare
|
|
||
| it('should conjure a fake minor version when running on flex', | ||
| function() { | ||
| process.env.GAE_SERVICE = 'fake-gae-service'; |
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.
matthewloring
left a comment
There was a problem hiding this comment.
LGTM assuming you have verified that this addresses the warning message that was displayed.
|
The fix seems to be working. |
5a2ce08 to
1e79103
Compare
AppEngine flex no longer provides the GAE_MINOR_VERSION environment variable, but the debug UI depends upon it. Provide a fake value, but only on flex.