Skip to content

Commit 3102fda

Browse files
committed
fix builds
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent eff68e0 commit 3102fda

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

server/src/test/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImplTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,7 @@ public void testSelectKVMHostForImportingInClusterWithNullImportInstanceIdSucces
11761176
@Test(expected = CloudRuntimeException.class)
11771177
public void testSelectKVMHostForImportingInClusterFailure() {
11781178
ClusterVO cluster = getClusterForTests();
1179+
when(cluster.getHypervisorType()).thenReturn(Hypervisor.HypervisorType.KVM);
11791180
when(hostDao.listByClusterAndHypervisorType(cluster.getId(), cluster.getHypervisorType())).thenReturn(List.of());
11801181

11811182
unmanagedVMsManager.selectKVMHostForImportingInCluster(cluster, null);
@@ -1306,6 +1307,7 @@ public void testSelectKVMHostForConversionInClusterWithImportInstanceIdSuccessNo
13061307
@Test(expected = CloudRuntimeException.class)
13071308
public void testSelectKVMHostForConversionInClusterWithImportInstanceIdFailure() {
13081309
ClusterVO cluster = getClusterForTests();
1310+
when(cluster.getHypervisorType()).thenReturn(Hypervisor.HypervisorType.KVM);
13091311

13101312
when(hostDao.listByClusterHypervisorTypeAndHostCapability(cluster.getId(),
13111313
cluster.getHypervisorType(), Host.HOST_INSTANCE_CONVERSION)).thenReturn(List.of());

ui/tests/common/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ import {
3232
resourceTypePlugin,
3333
fileSizeUtilPlugin,
3434
genericUtilPlugin,
35-
dialogUtilPlugin
35+
dialogUtilPlugin,
36+
localeErrorUtilPlugin
3637
} from '@/utils/plugins'
3738

3839
function createMockRouter (newRoutes = []) {
@@ -90,6 +91,7 @@ function createFactory (component, options) {
9091
fileSizeUtilPlugin,
9192
genericUtilPlugin,
9293
dialogUtilPlugin,
94+
localeErrorUtilPlugin,
9395
StoragePlugin
9496
],
9597
mocks

0 commit comments

Comments
 (0)