Make restoreConfigJson, oldConfigJson, updateConfigJson as task args
This commit is contained in:
@@ -97,7 +97,7 @@ describe('Apps', function () {
|
||||
appStoreId: 'appStoreId-0',
|
||||
location: 'some-location-0',
|
||||
domain: DOMAIN_0.domain,
|
||||
fqdn: 'some-location-0.' + DOMAIN_0.domain, // required for oldConfig
|
||||
fqdn: 'some-location-0.' + DOMAIN_0.domain,
|
||||
manifest: {
|
||||
version: '0.1', dockerImage: 'docker/app0', healthCheckPath: '/', httpPort: 80, title: 'app0',
|
||||
tcpPorts: {
|
||||
@@ -123,7 +123,7 @@ describe('Apps', function () {
|
||||
appStoreId: 'appStoreId-1',
|
||||
location: 'some-location-1',
|
||||
domain: DOMAIN_0.domain,
|
||||
fqdn: 'some-location-1.' + DOMAIN_0.domain, // required for oldConfig
|
||||
fqdn: 'some-location-1.' + DOMAIN_0.domain,
|
||||
manifest: {
|
||||
version: '0.1', dockerImage: 'docker/app1', healthCheckPath: '/', httpPort: 80, title: 'app1',
|
||||
tcpPorts: {}
|
||||
@@ -140,7 +140,7 @@ describe('Apps', function () {
|
||||
appStoreId: 'appStoreId-2',
|
||||
location: 'some-location-2',
|
||||
domain: DOMAIN_1.domain,
|
||||
fqdn: 'some-location-2.' + DOMAIN_1.domain, // required for oldConfig
|
||||
fqdn: 'some-location-2.' + DOMAIN_1.domain,
|
||||
manifest: {
|
||||
version: '0.1', dockerImage: 'docker/app2', healthCheckPath: '/', httpPort: 80, title: 'app2',
|
||||
tcpPorts: {}
|
||||
@@ -375,11 +375,8 @@ describe('Apps', function () {
|
||||
|
||||
apps.getAll(function (error, apps) {
|
||||
expect(apps[0].installationState).to.be(appdb.ISTATE_PENDING_CONFIGURE);
|
||||
expect(apps[0].oldConfig).to.be(null);
|
||||
expect(apps[1].installationState).to.be(appdb.ISTATE_PENDING_CONFIGURE); // erorred app can be reconfigured after restore
|
||||
expect(apps[1].oldConfig).to.be(null);
|
||||
expect(apps[2].installationState).to.be(appdb.ISTATE_PENDING_CONFIGURE);
|
||||
expect(apps[2].oldConfig).to.be(null);
|
||||
|
||||
done();
|
||||
});
|
||||
@@ -402,10 +399,8 @@ describe('Apps', function () {
|
||||
|
||||
apps.getAll(function (error, result) {
|
||||
expect(result[0].installationState).to.be(appdb.ISTATE_PENDING_RESTORE);
|
||||
expect(result[0].oldConfig).to.eql(apps.getAppConfig(APP_0));
|
||||
expect(result[1].installationState).to.be(appdb.ISTATE_PENDING_RESTORE);
|
||||
expect(result[2].installationState).to.be(appdb.ISTATE_PENDING_RESTORE);
|
||||
expect(result[2].oldConfig).to.eql(apps.getAppConfig(APP_2));
|
||||
|
||||
done();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user