Skip to content

Commit 5487140

Browse files
ofrobotsstephenplusplus
authored andcommitted
test: GAE, GKE, GCF run on GCE (#2495)
Make tests ensure that getDefaultResource prefers GAE, GKE, GCF over GCE.
1 parent 1f4063c commit 5487140

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

handwritten/logging/test/metadata.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ describe('metadata', function() {
186186

187187
metadata.logging.auth.getEnvironment = function(callback) {
188188
callback(null, {
189-
IS_APP_ENGINE: true
189+
IS_APP_ENGINE: true,
190+
IS_COMPUTE_ENGINE: true
190191
});
191192
};
192193

@@ -209,7 +210,8 @@ describe('metadata', function() {
209210

210211
metadata.logging.auth.getEnvironment = function(callback) {
211212
callback(null, {
212-
IS_CLOUD_FUNCTION: true
213+
IS_CLOUD_FUNCTION: true,
214+
IS_COMPUTE_ENGINE: true
213215
});
214216
};
215217

@@ -255,6 +257,7 @@ describe('metadata', function() {
255257

256258
metadata.logging.auth.getEnvironment = function(callback) {
257259
callback(null, {
260+
IS_COMPUTE_ENGINE: true,
258261
IS_CONTAINER_ENGINE: true
259262
});
260263
};

0 commit comments

Comments
 (0)