mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-14 05:50:47 +08:00
feat(ui): add manual update commands and simplify update dialog
This commit is contained in:
parent
45c0a7f77f
commit
57eef234b1
13 changed files with 1050 additions and 41 deletions
|
|
@ -127,6 +127,7 @@ test('source installs and incompatible Host Node can check but cannot install',
|
|||
const checked = await source.service.check();
|
||||
assert.equal(checked.latestVersion, '3.0.8');
|
||||
assert.equal(checked.blockedReason, 'source-install');
|
||||
assert.equal(checked.sourceInstall, true);
|
||||
assert.equal(checked.canInstall, false);
|
||||
assert.equal(checked.checkId, null);
|
||||
const oldNode = await fixture(t, { service: { nodeVersion: '22.18.0' } });
|
||||
|
|
@ -134,6 +135,17 @@ test('source installs and incompatible Host Node can check but cannot install',
|
|||
assert.deepEqual(source.state.installs, []);
|
||||
});
|
||||
|
||||
test('source-install protection remains independent of the primary status reason', async (t) => {
|
||||
const f = await fixture(t, { environment: {
|
||||
eligible: false, blockedReason: 'source-install', sourceInstall: true, installedVersion: '3.0.8',
|
||||
} });
|
||||
const status = await f.service.status();
|
||||
assert.equal(status.blockedReason, 'pending-restart');
|
||||
assert.equal(status.sourceInstall, true);
|
||||
f.environment.blockedReason = 'installation-changed';
|
||||
assert.equal((await f.service.status()).sourceInstall, true);
|
||||
});
|
||||
|
||||
test('a failed check invalidates previous install confirmation without claiming latest', async (t) => {
|
||||
const f = await fixture(t);
|
||||
const checked = await f.service.check();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue