Mercurial > lada > lada-server
changeset 819:cb6598eaa93a statusworkflow
Test failed because used messungsId was not authorized.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 08 Dec 2015 15:14:25 +0100 |
parents | a6383faca90e |
children | dcf8c49d2e57 |
files | src/test/java/de/intevation/lada/test/land/Status.java |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)