Make cloudron names based on test name
This commit is contained in:
parent
2f19e8a71e
commit
b1d334c2d4
@ -5,7 +5,7 @@
|
||||
"main": "test.js",
|
||||
"scripts": {
|
||||
"test": "DEBUG=superagent-sync,e2e:* ./node_modules/.bin/mocha test/*",
|
||||
"parallel_test": "./node_modules/.bin/parallel-mocha test/*"
|
||||
"parallel_test": "./node_modules/.bin/parallel-mocha --processes 5 test/*"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -5,6 +5,7 @@
|
||||
var AppStore = require('../appstore.js'),
|
||||
assert = require('assert'),
|
||||
Cloudron = require('../cloudron.js'),
|
||||
path = require('path'),
|
||||
readlineSync = require('readline-sync'),
|
||||
request = require('superagent-sync'),
|
||||
semver = require('semver'),
|
||||
@ -50,7 +51,7 @@ describe('End to end testing', function () {
|
||||
|
||||
it('can create a cloudron', function () {
|
||||
box = appStore.createCloudron({
|
||||
name: 'testbox' + (Math.random() * 1000).toFixed() + '.smartserver.io',
|
||||
name: 'testbox-' + path.basename(__filename, '-test.js') + '.smartserver.io',
|
||||
zoneName: 'smartserver.io',
|
||||
region: 'sfo1',
|
||||
size: '512mb',
|
||||
|
@ -5,6 +5,7 @@
|
||||
var AppStore = require('../appstore.js'),
|
||||
assert = require('assert'),
|
||||
Cloudron = require('../cloudron.js'),
|
||||
path = require('path'),
|
||||
readlineSync = require('readline-sync'),
|
||||
request = require('superagent-sync'),
|
||||
semver = require('semver'),
|
||||
@ -53,7 +54,7 @@ describe('End to end testing', function () {
|
||||
|
||||
it('can create a cloudron', function () {
|
||||
box = appStore.createCloudron({
|
||||
name: 'testbox' + (Math.random() * 1000).toFixed() + '.smartserver.io',
|
||||
name: 'testbox-' + path.basename(__filename, '-test.js') + '.smartserver.io',
|
||||
zoneName: 'smartserver.io',
|
||||
region: 'sfo1',
|
||||
size: '512mb',
|
||||
|
Loading…
Reference in New Issue
Block a user