[Lada-commits] [PATCH 5 of 5] Test failed because used messungsId was not authorized
Wald Commits
scm-commit at wald.intevation.org
Tue Dec 8 15:16:51 CET 2015
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1449584065 -3600
# Branch statusworkflow
# Node ID cb6598eaa93a07f04f83cbb349fd3088ae0466b0
# Parent a6383faca90eabac5bcda3e183617fcf0e08b53b
Test failed because used messungsId was not authorized.
diff -r a6383faca90e -r cb6598eaa93a src/test/java/de/intevation/lada/test/land/Status.java
--- a/src/test/java/de/intevation/lada/test/land/Status.java Tue Dec 08 15:09:16 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/land/Status.java Tue Dec 08 15:14:25 2015 +0100
@@ -34,6 +34,8 @@
*/
public class Status {
+ private static final int MESSUNGS_ID = 591;
+
private static final String COMPARE =
"{\"id\":1,\"erzeuger\":\"06010\",\"messungsId\":440,\"status\":3," +
"\"owner\":false,\"readonly\":false,\"treeModified\":null," +
@@ -160,8 +162,8 @@
/* Create a client*/
Client client = ClientBuilder.newClient();
WebTarget target =
- client.target(baseUrl + "status?messungsId=1");
- prot.addInfo("filter", "messungsId=1");
+ client.target(baseUrl + "status?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