Use location instead
This commit is contained in:
parent
85b4384167
commit
196f0f842e
@ -4,7 +4,7 @@
|
||||
"description": "End to end testing",
|
||||
"main": "test.js",
|
||||
"scripts": {
|
||||
"test": "DEBUG=superagent-sync,e2e:* ./node_modules/.bin/mocha test/*",
|
||||
"test": "DEBUG=superagent-sync,e2e:* ./node_modules/.bin/mocha --bail test/*",
|
||||
"parallel_test": "./node_modules/.bin/parallel-mocha --processes 5 test/*"
|
||||
},
|
||||
"repository": {
|
||||
|
@ -75,7 +75,7 @@ describe('Application flow test', function () {
|
||||
});
|
||||
|
||||
it('can populate the addons', function () {
|
||||
var res = request.post('https://test-' + box.domain + '/populate_addons').end();
|
||||
var res = request.post('https://' + location + '-' + box.domain + '/popuplate_addons').end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
@ -83,7 +83,7 @@ describe('Application flow test', function () {
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
var res = request.post('https://test-' + box.domain + '/check_addons').end();
|
||||
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
@ -95,7 +95,7 @@ describe('Application flow test', function () {
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
var res = request.post('https://test-' + box.domain + '/check_addons').end();
|
||||
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
|
@ -78,7 +78,7 @@ describe('Cloudron update testing', function () {
|
||||
});
|
||||
|
||||
it('can populate the addons', function () {
|
||||
var res = request.post('https://test-' + box.domain + '/populate_addons').end();
|
||||
var res = request.post('https://-' + location + '-' + box.domain + '/populate_addons').end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
@ -86,7 +86,7 @@ describe('Cloudron update testing', function () {
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
var res = request.post('https://test-' + box.domain + '/check_addons').end();
|
||||
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').end();
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
@ -98,7 +98,7 @@ describe('Cloudron update testing', function () {
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
var res = request.post('https://test-' + box.domain + '/check_addons').end();
|
||||
var res = request.post('https://' + location + '-' + box.domain + '/check_addons').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