changeset 817:d7a4f3af9e45 statusworkflow

Test failed because used messungsId was not authorized.
author Tom Gottfried <tom@intevation.de>
date Tue, 08 Dec 2015 15:00:48 +0100
parents 21c1bbc453f5
children a6383faca90e
files src/test/java/de/intevation/lada/test/land/Messwert.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)