[Lada-commits] [PATCH 1 of 5] Test failed because used mkommentar was not authorized
Wald Commits
scm-commit at wald.intevation.org
Tue Dec 8 15:16:47 CET 2015
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1449575418 -3600
# Branch statusworkflow
# Node ID 00dccff5300032529f7a2ff54d9ae1b5fd47530b
# Parent b0be28bbfc55215a1c8b522684dbd11a3e23e182
Test failed because used mkommentar was not authorized.
diff -r b0be28bbfc55 -r 00dccff53000 src/test/java/de/intevation/lada/test/land/KommentarM.java
--- a/src/test/java/de/intevation/lada/test/land/KommentarM.java Tue Dec 08 10:37:05 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/land/KommentarM.java Tue Dec 08 12:50:18 2015 +0100
@@ -37,10 +37,13 @@
*/
public class KommentarM {
+ private static final int KOMMENTAR_ID = 507;
+
private static final String COMPARE_KOMMENTARM =
- "{\"messungsId\":5,\"datum\":1336634700000,\"erzeuger\":\"12010\"," +
- "\"id\":478,\"text\":\"Hofladen Lenzen geschlossen\",\"owner\":false," +
- "\"readonly\":true}";
+ "{\"messungsId\":988,\"datum\":1346932500000,\"erzeuger\":\"3002\"," +
+ "\"id\":" + KOMMENTAR_ID +
+ ",\"text\":\"Testkommentar 01\",\"owner\":true," +
+ "\"readonly\":false}";
private static final String CREATE_KOMMENTARM =
"{\"messungsId\":\"MID\",\"erzeuger\":\"06010\",\"text\":" +
@@ -125,8 +128,9 @@
JsonObject staticKommentar = fromStringRreader.readObject();
/* Create a client*/
Client client = ClientBuilder.newClient();
- WebTarget target = client.target(baseUrl + "mkommentar/478");
- prot.addInfo("kommentarId", 478);
+ WebTarget target = client.target(
+ baseUrl + "mkommentar/" + KOMMENTAR_ID);
+ prot.addInfo("kommentarId", KOMMENTAR_ID);
/* Request an object by id*/
Response response = target.request()
.header("X-SHIB-user", BaseTest.TEST_USER)
More information about the Lada-commits
mailing list