Test app data after update
This commit is contained in:
parent
78696d4f3c
commit
98a61eceae
@ -1,13 +1,6 @@
|
||||
Tests
|
||||
=====
|
||||
|
||||
* Create v-1
|
||||
* Install special app
|
||||
* Update
|
||||
* Flow test app
|
||||
|
||||
|
||||
|
||||
* Create v
|
||||
* Install special app
|
||||
* Backup
|
||||
|
@ -71,20 +71,40 @@ describe('Cloudron update testing', function () {
|
||||
cloudron.setCredentials(owner.password, token);
|
||||
});
|
||||
|
||||
var location = 'haste' + (Math.random() * 10000).toFixed();
|
||||
var location = 'test' + (Math.random() * 10000).toFixed();
|
||||
it('can install app', function () {
|
||||
var manifest = appStore.getManifest('com.hastebin.cloudronapp', '0.1.0');
|
||||
var manifest = appStore.getManifest('io.cloudron.testapp', '1.0.0');
|
||||
appId = cloudron.installApp(location, manifest);
|
||||
});
|
||||
|
||||
it('can configure app', function () {
|
||||
cloudron.configureApp(appId, location + 'x');
|
||||
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 update the box', function () {
|
||||
cloudron.update(toVersion);
|
||||
});
|
||||
|
||||
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