destructive => destructiveAllowed
This commit is contained in:
parent
e5c5f2d54c
commit
7169b06772
@ -28,7 +28,7 @@ var VM_PACKAGE = 't4-standard-128M';
|
||||
|
||||
// TODO clean this up
|
||||
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');
|
||||
return;
|
||||
}
|
||||
|
@ -30,9 +30,9 @@ try {
|
||||
assert.string(CONFIG.keyId, 'test/config.json#keyId');
|
||||
if (CONFIG.insecure === undefined)
|
||||
CONFIG.insecure = false;
|
||||
if (CONFIG.destructive === undefined)
|
||||
CONFIG.destructive = false;
|
||||
assert.bool(CONFIG.insecure, 'test/config.json#destructive');
|
||||
if (CONFIG.destructiveAllowed === undefined)
|
||||
CONFIG.destructiveAllowed = false;
|
||||
assert.bool(CONFIG.insecure, 'test/config.json#destructiveAllowed');
|
||||
} catch (e) {
|
||||
error('* * *');
|
||||
error('node-triton integration tests require a ./test/config.json');
|
||||
|
Reference in New Issue
Block a user