comparison src/test/java/de/intevation/lada/test/land/Status.java @ 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 487c6d8c9d7b
comparison
equal deleted inserted replaced
818:a6383faca90e 819:cb6598eaa93a
32 * 32 *
33 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> 33 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a>
34 */ 34 */
35 public class Status { 35 public class Status {
36 36
37 private static final int MESSUNGS_ID = 591;
38
37 private static final String COMPARE = 39 private static final String COMPARE =
38 "{\"id\":1,\"erzeuger\":\"06010\",\"messungsId\":440,\"status\":3," + 40 "{\"id\":1,\"erzeuger\":\"06010\",\"messungsId\":440,\"status\":3," +
39 "\"owner\":false,\"readonly\":false,\"treeModified\":null," + 41 "\"owner\":false,\"readonly\":false,\"treeModified\":null," +
40 "\"parentModified\":null," + 42 "\"parentModified\":null," +
41 "\"sdatum\":1373846400000,\"skommentar\":\"test\"}"; 43 "\"sdatum\":1373846400000,\"skommentar\":\"test\"}";
158 protocol.add(prot); 160 protocol.add(prot);
159 try { 161 try {
160 /* Create a client*/ 162 /* Create a client*/
161 Client client = ClientBuilder.newClient(); 163 Client client = ClientBuilder.newClient();
162 WebTarget target = 164 WebTarget target =
163 client.target(baseUrl + "status?messungsId=1"); 165 client.target(baseUrl + "status?messungsId=" + MESSUNGS_ID);
164 prot.addInfo("filter", "messungsId=1"); 166 prot.addInfo("filter", "messungsId=" + MESSUNGS_ID);
165 /* Request the objects using the filter*/ 167 /* Request the objects using the filter*/
166 Response response = target.request() 168 Response response = target.request()
167 .header("X-SHIB-user", BaseTest.TEST_USER) 169 .header("X-SHIB-user", BaseTest.TEST_USER)
168 .header("X-SHIB-roles", BaseTest.TEST_ROLES) 170 .header("X-SHIB-roles", BaseTest.TEST_ROLES)
169 .get(); 171 .get();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)