From fd78e7b59063a47e16814ec2722885b0af7af148 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 29 Sep 2015 17:30:10 -0700 Subject: [PATCH] verify dns records are gone --- test/new-user-test.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/new-user-test.js b/test/new-user-test.js index b9a8d6b..fd4a57c 100644 --- a/test/new-user-test.js +++ b/test/new-user-test.js @@ -95,5 +95,22 @@ describe('Appstore new user flow', function () { it('can delete the cloudron', function () { appStore.deleteCloudron(box); }); + + it('has setup DNS records cleaned up', function (done) { + function expectError(fn) { + return function (cb) { + fn(function (error) { + cb(error ? null : new Error('Expecing error for ' + fn.name)); + }); + }; + } + + async.series([ + expectError(cloudron.checkSPF.bind(cloudron)), + expectError(cloudron.checkDKIM.bind(cloudron)), + expectError(cloudron.checkDMARC.bind(cloudron)) + ], done); + }); + });