Skip to content

Commit

Permalink
fix: fix failing tests in podman extension (#9093)
Browse files Browse the repository at this point in the history
Signed-off-by: lstocchi <[email protected]>
  • Loading branch information
lstocchi authored Sep 25, 2024
1 parent e6cd9a7 commit 33c0c56
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions extensions/podman/packages/extension/src/extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2463,6 +2463,9 @@ test('getJSONMachineList should only get machines from wsl if hyperv is not enab
Starting: false,
Default: true,
VMType: VMTYPE.LIBKRUN,
Port: 123,
RemoteUsername: 'user',
IdentityPath: '/path/to/key',
},
{
Name: 'podman-machine-1',
Expand All @@ -2473,6 +2476,9 @@ test('getJSONMachineList should only get machines from wsl if hyperv is not enab
Starting: false,
Default: false,
VMType: VMTYPE.LIBKRUN,
Port: 123,
RemoteUsername: 'user',
IdentityPath: '/path/to/key',
},
];
const execPodmanSpy = vi.spyOn(util, 'execPodman').mockResolvedValue({
Expand Down Expand Up @@ -2521,6 +2527,9 @@ test('getJSONMachineList should only get machines from hyperv if wsl is not enab
Starting: false,
Default: true,
VMType: VMTYPE.LIBKRUN,
Port: 123,
RemoteUsername: 'user',
IdentityPath: '/path/to/key',
},
{
Name: 'podman-machine-1',
Expand All @@ -2531,6 +2540,9 @@ test('getJSONMachineList should only get machines from hyperv if wsl is not enab
Starting: false,
Default: false,
VMType: VMTYPE.LIBKRUN,
Port: 123,
RemoteUsername: 'user',
IdentityPath: '/path/to/key',
},
];
const execPodmanSpy = vi.spyOn(util, 'execPodman').mockResolvedValue({
Expand Down Expand Up @@ -2580,6 +2592,9 @@ test('getJSONMachineList should get machines from hyperv and wsl if both are ena
Starting: false,
Default: true,
VMType: VMTYPE.LIBKRUN,
Port: 123,
RemoteUsername: 'user',
IdentityPath: '/path/to/key',
},
{
Name: 'podman-machine-1',
Expand All @@ -2590,6 +2605,9 @@ test('getJSONMachineList should get machines from hyperv and wsl if both are ena
Starting: false,
Default: false,
VMType: VMTYPE.LIBKRUN,
Port: 123,
RemoteUsername: 'user',
IdentityPath: '/path/to/key',
},
];
const execPodmanSpy = vi.spyOn(util, 'execPodman').mockResolvedValue({
Expand Down

0 comments on commit 33c0c56

Please sign in to comment.