Read owner info from env
This commit is contained in:
parent
1037e70462
commit
daf71e1bb6
10
common.js
10
common.js
@ -7,7 +7,8 @@ exports = module.exports = {
|
||||
TESTAPP_VERSION : '1.0.2',
|
||||
|
||||
cloudronDomain: cloudronDomain,
|
||||
verifyResponse: verifyResponse
|
||||
verifyResponse: verifyResponse,
|
||||
getOwner: getOwner,
|
||||
};
|
||||
|
||||
var gNow = (new Date()).getTime().toString();
|
||||
@ -24,4 +25,11 @@ function verifyResponse(res, errorMessage) {
|
||||
}
|
||||
}
|
||||
|
||||
function getOwner() {
|
||||
return {
|
||||
username: process.env.APPSTORE_USERNAME,
|
||||
password: process.env.APPSTORE_PASSWORD,
|
||||
email: process.env.APPSTORE_EMAIL
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -23,12 +23,7 @@ describe('Application flow test', function () {
|
||||
|
||||
var appStore = new AppStore('https://api.staging.cloudron.io');
|
||||
|
||||
var owner = {
|
||||
username: 'test',
|
||||
password: 'test1234',
|
||||
email: 'test@cloudron.io'
|
||||
};
|
||||
|
||||
var owner = common.owner();
|
||||
var res, latestVersion, cloudron, appId, box;
|
||||
|
||||
it('can query versions', function () {
|
||||
|
@ -24,12 +24,7 @@ describe('Cloudron backup testing', function () {
|
||||
|
||||
var appStore = new AppStore('https://api.staging.cloudron.io');
|
||||
|
||||
var owner = {
|
||||
username: 'test',
|
||||
password: 'test1234',
|
||||
email: 'test@cloudron.io'
|
||||
};
|
||||
|
||||
var owner = common.getOwner();
|
||||
var res, latestVersion, cloudron, appId, box, backupInfo;
|
||||
|
||||
it('can query versions', function () {
|
||||
|
@ -27,12 +27,7 @@ describe('Cloudron update testing', function () {
|
||||
|
||||
var appStore = new AppStore('https://api.staging.cloudron.io');
|
||||
|
||||
var owner = {
|
||||
username: 'test',
|
||||
password: 'test1234',
|
||||
email: 'test@cloudron.io'
|
||||
};
|
||||
|
||||
var owner = common.getOwner();
|
||||
var res, fromVersion, toVersion, cloudron, appId, box, nextVersion;
|
||||
|
||||
it('can query versions', function () {
|
||||
|
@ -23,12 +23,7 @@ describe('Cloudron user creation testing', function () {
|
||||
|
||||
var appStore = new AppStore('https://api.staging.cloudron.io');
|
||||
|
||||
var owner = {
|
||||
username: 'test',
|
||||
password: 'test1234',
|
||||
email: 'test@cloudron.io'
|
||||
};
|
||||
|
||||
var owner = common.getOwner();
|
||||
var res, latestVersion, cloudron, appId, box, newUser;
|
||||
|
||||
it('can query versions', function () {
|
||||
|
@ -23,12 +23,7 @@ describe('Appstore new user flow', function () {
|
||||
|
||||
var appStore = new AppStore('https://api.staging.cloudron.io');
|
||||
|
||||
var owner = {
|
||||
username: 'test',
|
||||
password: 'test1234',
|
||||
email: 'test@cloudron.io'
|
||||
};
|
||||
|
||||
var owner = common.getOwner();
|
||||
var res, latestVersion, cloudron, appId, box;
|
||||
|
||||
it('can query versions', function () {
|
||||
|
Loading…
Reference in New Issue
Block a user