mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Fix updated tests for https://gitlab.com/entgra/carbon-device-mgt/merge_requests/374
This commit is contained in:
parent
f41fce6d5e
commit
5724c68561
@ -151,7 +151,7 @@ public class ExtensionTestCase extends BaseDeviceManagementTest {
|
|||||||
|
|
||||||
DeviceConfigurationManager.getInstance().getDeviceManagementConfig().setDeviceCacheConfiguration(configuration);
|
DeviceConfigurationManager.getInstance().getDeviceManagementConfig().setDeviceCacheConfiguration(configuration);
|
||||||
List<DeviceIdentifier> list = TestDataHolder.getDeviceIdentifiersList(DEVICE_TYPE);
|
List<DeviceIdentifier> list = TestDataHolder.getDeviceIdentifiersList(DEVICE_TYPE);
|
||||||
DeviceGroup deviceGroup = groupManagementProviderService.getGroup(TestDataHolder.generateDummyGroupData(1).getName());
|
DeviceGroup deviceGroup = groupManagementProviderService.getGroup(TestDataHolder.generateDummyGroupData(1).getName(), false);
|
||||||
Assert.assertNotNull(deviceGroup);
|
Assert.assertNotNull(deviceGroup);
|
||||||
groupManagementProviderService.addDevices(deviceGroup.getGroupId(), list);
|
groupManagementProviderService.addDevices(deviceGroup.getGroupId(), list);
|
||||||
}
|
}
|
||||||
@ -199,9 +199,9 @@ public class ExtensionTestCase extends BaseDeviceManagementTest {
|
|||||||
executionPlanRuntime.start();
|
executionPlanRuntime.start();
|
||||||
DeviceIdentifier deviceIdentifier = TestDataHolder.getDeviceIdentifiersList(DEVICE_TYPE).get(0);
|
DeviceIdentifier deviceIdentifier = TestDataHolder.getDeviceIdentifiersList(DEVICE_TYPE).get(0);
|
||||||
inputHandler.send(new Object[]{groupManagementProviderService.getGroup(
|
inputHandler.send(new Object[]{groupManagementProviderService.getGroup(
|
||||||
TestDataHolder.generateDummyGroupData(1).getName()).getGroupId(), deviceIdentifier.getId(), deviceIdentifier.getType()});
|
TestDataHolder.generateDummyGroupData(1).getName(), false).getGroupId(), deviceIdentifier.getId(), deviceIdentifier.getType()});
|
||||||
inputHandler.send(new Object[]{groupManagementProviderService.getGroup(
|
inputHandler.send(new Object[]{groupManagementProviderService.getGroup(
|
||||||
TestDataHolder.generateDummyGroupData(2).getName()).getGroupId(), deviceIdentifier.getId(), deviceIdentifier.getType()});
|
TestDataHolder.generateDummyGroupData(2).getName(), false).getGroupId(), deviceIdentifier.getId(), deviceIdentifier.getType()});
|
||||||
SiddhiTestHelper.waitForEvents(100, 1, count, 10000);
|
SiddhiTestHelper.waitForEvents(100, 1, count, 10000);
|
||||||
Assert.assertTrue(eventArrived);
|
Assert.assertTrue(eventArrived);
|
||||||
Assert.assertEquals(1, count.get());
|
Assert.assertEquals(1, count.get());
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@ -1242,7 +1242,7 @@
|
|||||||
<javax.ws.rs.version>1.1.1</javax.ws.rs.version>
|
<javax.ws.rs.version>1.1.1</javax.ws.rs.version>
|
||||||
|
|
||||||
<!-- Carbon Device Management -->
|
<!-- Carbon Device Management -->
|
||||||
<carbon.devicemgt.version>4.1.2</carbon.devicemgt.version>
|
<carbon.devicemgt.version>4.1.3-SNAPSHOT</carbon.devicemgt.version>
|
||||||
<carbon.devicemgt.version.range>[4.0.0, 5.0.0)</carbon.devicemgt.version.range>
|
<carbon.devicemgt.version.range>[4.0.0, 5.0.0)</carbon.devicemgt.version.range>
|
||||||
|
|
||||||
<!-- Carbon Device Management Plugins -->
|
<!-- Carbon Device Management Plugins -->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user