Browse Source
Merge pull request #9545 from volodymyr-babak/edge-fix-edge-sync-test
syncEdgeTest fix. testFindTenantWidgetsBundlesByPageLink - cleanup system widgets
pull/9574/head
Andrew Shvayka
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
application/src/test/java/org/thingsboard/server/controller/WidgetsBundleControllerTest.java
|
|
@ -268,6 +268,13 @@ public class WidgetsBundleControllerTest extends AbstractControllerTest { |
|
|
Collections.sort(loadedWidgetsBundles2, idComparator); |
|
|
Collections.sort(loadedWidgetsBundles2, idComparator); |
|
|
|
|
|
|
|
|
Assert.assertEquals(tenantWidgetsBundles, loadedWidgetsBundles2); |
|
|
Assert.assertEquals(tenantWidgetsBundles, loadedWidgetsBundles2); |
|
|
|
|
|
|
|
|
|
|
|
// cleanup
|
|
|
|
|
|
loginSysAdmin(); |
|
|
|
|
|
for (WidgetsBundle sysWidgetsBundle : sysWidgetsBundles) { |
|
|
|
|
|
doDelete("/api/widgetsBundle/" + sysWidgetsBundle.getId().getId().toString()) |
|
|
|
|
|
.andExpect(status().isOk()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
|