Check read/write to addons
This commit is contained in:
parent
9d4d649b08
commit
78696d4f3c
@ -74,10 +74,34 @@ describe('Application flow test', function () {
|
||||
appId = cloudron.installApp(location, manifest);
|
||||
});
|
||||
|
||||
it('can populate the addons', function () {
|
||||
var res = request.post('https://test-' + box.name + '/populate_addons').end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
assert.strictEqual(res.body.mongodb, 'OK');
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
var res = request.post('https://test-' + box.name + '/check_addons').end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
assert.strictEqual(res.body.mongodb, 'OK');
|
||||
});
|
||||
|
||||
it('can configure app', function () {
|
||||
cloudron.configureApp(appId, location + 'x');
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
var res = request.post('https://test-' + box.name + '/check_addons').end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
assert.strictEqual(res.body.mongodb, 'OK');
|
||||
});
|
||||
|
||||
it('can uninstall app', function () {
|
||||
cloudron.uninstallApp(appId);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user