destructive => destructiveAllowed

This commit is contained in:
Dave Eddy 2015-09-25 13:13:39 -04:00
parent e5c5f2d54c
commit 7169b06772
2 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ var VM_PACKAGE = 't4-standard-128M';
// TODO clean this up // TODO clean this up
assert.equal(h.CONFIG.url, 'https://us-east-3b.api.joyent.com'); assert.equal(h.CONFIG.url, 'https://us-east-3b.api.joyent.com');
if (h.CONFIG.destructive !== true) { if (h.CONFIG.destructiveAllowed !== true) {
console.error('skipping manage integration tests - destructive actions disabled'); console.error('skipping manage integration tests - destructive actions disabled');
return; return;
} }

View File

@ -30,9 +30,9 @@ try {
assert.string(CONFIG.keyId, 'test/config.json#keyId'); assert.string(CONFIG.keyId, 'test/config.json#keyId');
if (CONFIG.insecure === undefined) if (CONFIG.insecure === undefined)
CONFIG.insecure = false; CONFIG.insecure = false;
if (CONFIG.destructive === undefined) if (CONFIG.destructiveAllowed === undefined)
CONFIG.destructive = false; CONFIG.destructiveAllowed = false;
assert.bool(CONFIG.insecure, 'test/config.json#destructive'); assert.bool(CONFIG.insecure, 'test/config.json#destructiveAllowed');
} catch (e) { } catch (e) {
error('* * *'); error('* * *');
error('node-triton integration tests require a ./test/config.json'); error('node-triton integration tests require a ./test/config.json');