100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Fix unstable MapResourceTest upload (#3501)
Koen766919f96d96
diff --git a/test/src/test/groovy/org/openremote/test/map/MapResourceTest.groovy b/test/src/test/groovy/org/openremote/test/map/MapResourceTest.groovyindex 022586083..95e1bdab4 100644--- a/test/src/test/groovy/org/openremote/test/map/MapResourceTest.groovy+++ b/test/src/test/groovy/org/openremote/test/map/MapResourceTest.groovy@@ -203,7 +203,7 @@ class MapResourceTest extends Specification implements ManagerContainerTrait {.path("map/upload").queryParam("filename", "../mapdata.mbtiles").request()- .post(Entity.entity(Files.readAllBytes(Path.of("manager/src/map/mapdata.mbtiles")), MediaType.APPLICATION_OCTET_STREAM_TYPE))+ .post(Entity.entity(new byte[16], MediaType.APPLICATION_OCTET_STREAM_TYPE))then: "bad request error should occur"response.withCloseable { r ->@@ -217,7 +217,7 @@ class MapResourceTest extends Specification implements ManagerContainerTrait {.path("map/upload").queryParam("filename", "mapdata.mbtiles").request()- .post(Entity.entity(Files.readAllBytes(Path.of("manager/src/map/mapdata.mbtiles")), MediaType.APPLICATION_OCTET_STREAM_TYPE))+ .post(Entity.entity(new byte[11], MediaType.APPLICATION_OCTET_STREAM_TYPE))then: "request entity too large error should occur"response.withCloseable { r ->