Skip to content

Instantly share code, notes, and snippets.

@stephenplusplus
Created September 30, 2020 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephenplusplus/6d911fdfdadf904f329c590fc2fb2fdd to your computer and use it in GitHub Desktop.
Save stephenplusplus/6d911fdfdadf904f329c590fc2fb2fdd to your computer and use it in GitHub Desktop.
compute-pr-500
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