[Lada-commits] [PATCH 3 of 5] Test failed because used messungsId was not authorized

Wald Commits scm-commit at wald.intevation.org
Tue Dec 8 15:16:49 CET 2015


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1449583248 -3600
# Branch statusworkflow
# Node ID d7a4f3af9e457151de12e7754044f3fbc40fc9f6
# Parent  21c1bbc453f517117f6af0f82ad0df63c6f2c600
Test failed because used messungsId was not authorized.

diff -r 21c1bbc453f5 -r d7a4f3af9e45 src/test/java/de/intevation/lada/test/land/Messwert.java
--- a/src/test/java/de/intevation/lada/test/land/Messwert.java	Tue Dec 08 14:36:17 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/land/Messwert.java	Tue Dec 08 15:00:48 2015 +0100
@@ -34,6 +34,8 @@
  */
 public class Messwert {
 
+    private static final int MESSUNGS_ID = 591;
+
     private static final String COMPARE_MESSWERT =
         "{\"id\":1,\"grenzwertueberschreitung\":null,\"letzteAenderung\":" +
         "1327305368000,\"mehId\":69,\"messfehler\":1.1,\"messgroesseId\":28," +
@@ -162,8 +164,8 @@
             /* Create a client*/
             Client client = ClientBuilder.newClient();
             WebTarget target =
-                client.target(baseUrl + "messwert?messungId=1");
-            prot.addInfo("filter", "messungId=1");
+                client.target(baseUrl + "messwert?messungsId=" + MESSUNGS_ID);
+            prot.addInfo("filter", "messungsId=" + MESSUNGS_ID);
             /* Request the objects using the filter*/
             Response response = target.request()
                 .header("X-SHIB-user", BaseTest.TEST_USER)


More information about the Lada-commits mailing list