Skip to content

Commit

Permalink
feat: update podman to 5.2.0 release
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Golovin <[email protected]>
  • Loading branch information
dgolovin authored and benoitf committed Aug 2, 2024
1 parent ec354c7 commit a1026f3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
14 changes: 10 additions & 4 deletions extensions/podman/src/podman-install.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -840,27 +840,33 @@ test('checkForUpdate should return installed version and no update if the instal
vi.spyOn(podmanInstall, 'getInstaller').mockReturnValue({
requireUpdate: vi.fn().mockReturnValue(false),
} as unknown as Installer);
vi.spyOn(podmanInstallObj, 'getBundledPodmanVersion').mockReturnValue('5.1.2');
vi.spyOn(podmanInstall, 'getLastRunInfo').mockResolvedValue({
lastUpdateCheck: 0,
});
const result = await podmanInstall.checkForUpdate({
version: '1.1',
});
expect(result).toStrictEqual({ installedVersion: '1.1', hasUpdate: false, bundledVersion: '5.1.2' });
expect(result).toStrictEqual({
installedVersion: '1.1',
hasUpdate: false,
bundledVersion: podmanInstallObj.getBundledPodmanVersion(),
});
});

test('checkForUpdate should return installed version and update if the installed version is NOT the latest', async () => {
const podmanInstall = new TestPodmanInstall(extensionContext);
vi.spyOn(podmanInstall, 'getInstaller').mockReturnValue({
requireUpdate: vi.fn().mockReturnValue(true),
} as unknown as Installer);
vi.spyOn(podmanInstallObj, 'getBundledPodmanVersion').mockReturnValue('5.1.2');
vi.spyOn(podmanInstall, 'getLastRunInfo').mockResolvedValue({
lastUpdateCheck: 0,
});
const result = await podmanInstall.checkForUpdate({
version: '1.1',
});
expect(result).toStrictEqual({ installedVersion: '1.1', hasUpdate: true, bundledVersion: '5.1.2' });
expect(result).toStrictEqual({
installedVersion: '1.1',
hasUpdate: true,
bundledVersion: podmanInstallObj.getBundledPodmanVersion(),
});
});
14 changes: 7 additions & 7 deletions extensions/podman/src/podman5.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"version": "5.1.2",
"version": "5.2.0",
"platform": {
"win32": {
"version": "v5.1.2",
"fileName": "podman-5.1.2-setup.exe"
"version": "v5.2.0",
"fileName": "podman-5.2.0-setup.exe"
},
"darwin": {
"version": "v5.1.2",
"version": "v5.2.0",
"arch": {
"x64": {
"fileName": "podman-installer-macos-amd64-v5.1.2.pkg"
"fileName": "podman-installer-macos-amd64-v5.2.0.pkg"
},
"arm64": {
"fileName": "podman-installer-macos-aarch64-v5.1.2.pkg"
"fileName": "podman-installer-macos-aarch64-v5.2.0.pkg"
},
"universal": {
"fileName": "podman-installer-macos-universal-v5.1.2.pkg"
"fileName": "podman-installer-macos-universal-v5.2.0.pkg"
}
}
}
Expand Down

0 comments on commit a1026f3

Please sign in to comment.