verify dns records are gone

This commit is contained in:
Girish Ramakrishnan 2015-09-29 17:30:10 -07:00
parent 8f648f0c59
commit fd78e7b590
1 changed files with 17 additions and 0 deletions

View File

@ -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);
});
});