From 72bb22f07d67151756746709d3ff6609c8c468a7 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Mon, 25 Jan 2016 23:36:05 -0800 Subject: [PATCH] fix test error if CNS is enabled in the DC --- test/integration/api-instances.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/api-instances.test.js b/test/integration/api-instances.test.js index 64b19d8..6934123 100644 --- a/test/integration/api-instances.test.js +++ b/test/integration/api-instances.test.js @@ -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();