community: download iconUrl

also rename existing db field appStoreIcon to packageIcon
This commit is contained in:
Girish Ramakrishnan
2026-02-06 18:45:40 +01:00
parent cff778fe6a
commit a9ae34b149
10 changed files with 66 additions and 35 deletions
+10 -10
View File
@@ -22,7 +22,7 @@ describe('Apps', function () {
describe('checkForPortBindingConflict', function () {
before(async function () {
await apps.add(app.id, app.appStoreId, app.manifest, app.subdomain, app.domain, [{ hostPort: 40000, type: 'tcp', count: 100 }, { hostPort: 50000, type: 'udp', count: 1 }], app);
await apps.add(app.id, app.appStoreId, '', app.manifest, app.subdomain, app.domain, [{ hostPort: 40000, type: 'tcp', count: 100 }, { hostPort: 50000, type: 'udp', count: 1 }], app);
});
after(async function () {
@@ -259,16 +259,16 @@ describe('Apps', function () {
});
it('can add app', async function () {
await apps.add(app.id, app.appStoreId, app.manifest, app.subdomain, app.domain, app.portBindings, app);
await apps.add(app.id, app.appStoreId, '', app.manifest, app.subdomain, app.domain, app.portBindings, app);
});
it('cannot add with same app id', async function () {
const [error] = await safe(apps.add(app.id, app.appStoreId, app.manifest, app.subdomain, app.domain, app.portBindings, app));
const [error] = await safe(apps.add(app.id, app.appStoreId, '', app.manifest, app.subdomain, app.domain, app.portBindings, app));
expect(error.reason).to.be(BoxError.ALREADY_EXISTS);
});
it('cannot add with same app id', async function () {
const [error] = await safe(apps.add(app.id, app.appStoreId, app.manifest, app.subdomain, app.domain, app.portBindings, app));
const [error] = await safe(apps.add(app.id, app.appStoreId, '', app.manifest, app.subdomain, app.domain, app.portBindings, app));
expect(error.reason).to.be(BoxError.ALREADY_EXISTS);
});
@@ -334,7 +334,7 @@ describe('Apps', function () {
describe('setHealth', function () {
before(async function () {
await apps.add(app.id, app.appStoreId, app.manifest, app.subdomain, app.domain, app.portBindings, app);
await apps.add(app.id, app.appStoreId, '', app.manifest, app.subdomain, app.domain, app.portBindings, app);
});
it('can set app as healthy', async function () {
@@ -360,7 +360,7 @@ describe('Apps', function () {
const newUpstreamUri = 'https://foobar.com:443';
before(async function () {
await apps.add(proxyApp.id, proxyApp.appStoreId, proxyApp.manifest, proxyApp.subdomain, proxyApp.domain, proxyApp.portBindings, proxyApp);
await apps.add(proxyApp.id, proxyApp.appStoreId, '', proxyApp.manifest, proxyApp.subdomain, proxyApp.domain, proxyApp.portBindings, proxyApp);
});
it('cannot set invalid upstream uri', async function () {
@@ -382,8 +382,8 @@ describe('Apps', function () {
before(async function () {
await apps.update(app.id, { installationState: apps.ISTATE_INSTALLED });
await apps.add(app1.id, app1.appStoreId, app1.manifest, app1.subdomain, app1.domain, app1.portBindings, app1);
await apps.add(app2.id, app2.appStoreId, app2.manifest, app2.subdomain, app2.domain, app2.portBindings, app2);
await apps.add(app1.id, app1.appStoreId, '', app1.manifest, app1.subdomain, app1.domain, app1.portBindings, app1);
await apps.add(app2.id, app2.appStoreId, '', app2.manifest, app2.subdomain, app2.domain, app2.portBindings, app2);
});
after(async function () {
@@ -407,8 +407,8 @@ describe('Apps', function () {
before(async function () {
await apps.update(app.id, { installationState: apps.ISTATE_INSTALLED });
await apps.add(app1.id, app1.appStoreId, app1.manifest, app1.subdomain, app1.domain, app1.portBindings, app1);
await apps.add(app2.id, app2.appStoreId, app2.manifest, app2.subdomain, app2.domain, app2.portBindings, app2);
await apps.add(app1.id, app1.appStoreId, '', app1.manifest, app1.subdomain, app1.domain, app1.portBindings, app1);
await apps.add(app2.id, app2.appStoreId, '', app2.manifest, app2.subdomain, app2.domain, app2.portBindings, app2);
});
after(async function () {