fix test error if CNS is enabled in the DC

This commit is contained in:
Trent Mick 2016-01-25 23:36:05 -08:00
parent 810f0add56
commit 72bb22f07d
1 changed files with 6 additions and 0 deletions

View File

@ -56,6 +56,12 @@ test('TritonApi packages', function (tt) {
if (h.ifErr(t, err, 'no err'))
return t.end();
/*
* Normalize: There can be fields that are on the machine object
* for CloudAPI GetMachine, but not for ListMachine:
* - dns_names (if CNS is enabled in the DC)
*/
delete inst.dns_names;
t.deepEqual(inst, INST, valName);
next();