add Cloudron.populateAddons

This commit is contained in:
Girish Ramakrishnan 2016-04-26 09:44:45 -07:00
parent d0988a390d
commit 79ead77d87
1 changed files with 9 additions and 0 deletions

View File

@ -407,6 +407,15 @@ Cloudron.prototype.checkDMARC = function (callback) {
});
};
Cloudron.prototype.populateAddons = function (location) {
var res = request.post('https://' + this.appFqdn(location) + '/populate_addons').end();
assert.strictEqual(res.statusCode, 200);
for (var addon in res.body) {
assert.strictEqual(res.body[addon], 'OK');
}
};
Cloudron.prototype.checkAddons = function (location, owner) {
var lastError;