Created
September 30, 2020 14:14
-
-
Save stephenplusplus/6d911fdfdadf904f329c590fc2fb2fdd to your computer and use it in GitHub Desktop.
compute-pr-500
This file contains 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
diff --git a/test/zone.js b/test/zone.js | |
index 456ed28..6c03fd6 100644 | |
--- a/test/zone.js | |
+++ b/test/zone.js | |
@@ -775,6 +775,24 @@ describe('Zone', () => { | |
], | |
}; | |
+ describe('config.template', () => { | |
+ const CONFIG = { | |
+ template: '/path/to/template', | |
+ }; | |
+ | |
+ it('should define sourceInstanceTemplate', done => { | |
+ zone.request = function (reqOpts) { | |
+ assert.strictEqual( | |
+ reqOpts.qs.sourceInstanceTemplate, | |
+ CONFIG.template | |
+ ); | |
+ done(); | |
+ }; | |
+ | |
+ zone.createVM(NAME, CONFIG, assert.ifError); | |
+ }); | |
+ }); | |
+ | |
describe('config.machineType', () => { | |
const CONFIG = { | |
machineType: 'f1-micro', |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment