Fixup the superagent-sync usage
This commit is contained in:
parent
45a18edcb9
commit
604d14e4a1
@ -76,7 +76,7 @@ describe('Application flow test', function () {
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
|
||||
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
@ -94,7 +94,7 @@ describe('Application flow test', function () {
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
|
||||
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
@ -111,7 +111,7 @@ describe('Application flow test', function () {
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
|
||||
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
|
@ -77,7 +77,7 @@ describe('Cloudron backup testing', function () {
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
|
||||
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
@ -118,7 +118,7 @@ describe('Cloudron backup testing', function () {
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
|
||||
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
|
@ -92,7 +92,7 @@ describe('Cloudron update testing', function () {
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
|
||||
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
@ -113,7 +113,7 @@ describe('Cloudron update testing', function () {
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
|
||||
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
@ -136,7 +136,7 @@ describe('Cloudron update testing', function () {
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
var res = request.query({ username: owner.username, password: owner.password }).post('https://' + location + '-' + box.domain + '/check_addons').end();
|
||||
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').query({ username: owner.username, password: owner.password }).end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
|
Loading…
Reference in New Issue
Block a user