Use location instead

This commit is contained in:
Girish Ramakrishnan 2015-06-15 22:06:27 -07:00
parent 85b4384167
commit 196f0f842e
3 changed files with 7 additions and 7 deletions

View File

@ -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": {

View File

@ -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');

View File

@ -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');