Removed "time" field from tests

Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io>
This commit is contained in:
Dominic Schabel
2020-12-16 17:42:41 +01:00
parent 76fa389eeb
commit 6df3a04f51

View File

@@ -225,14 +225,11 @@ public abstract class JsonBuilder {
public static String deploymentActionFeedback(final String id, final String execution, final String finished, public static String deploymentActionFeedback(final String id, final String execution, final String finished,
final Collection<String> messages) throws JSONException { final Collection<String> messages) throws JSONException {
return new JSONObject().put("id", id).put("time", "20140511T121314") return new JSONObject().put("id", id).put("status", new JSONObject().put("execution", execution)
.put("status", .put("result",
new JSONObject().put("execution", execution) new JSONObject().put("finished", finished).put("progress",
.put("result", new JSONObject().put("cnt", 2).put("of", 5)))
new JSONObject().put("finished", finished).put("progress", .put("details", new JSONArray(messages))).toString();
new JSONObject().put("cnt", 2).put("of", 5)))
.put("details", new JSONArray(messages)))
.toString();
} }
/** /**
@@ -566,7 +563,7 @@ public abstract class JsonBuilder {
public static String cancelActionFeedback(final String id, final String execution, final String message) public static String cancelActionFeedback(final String id, final String execution, final String message)
throws JSONException { throws JSONException {
return new JSONObject().put("id", id).put("time", "20140511T121314") return new JSONObject().put("id", id)
.put("status", .put("status",
new JSONObject().put("execution", execution) new JSONObject().put("execution", execution)
.put("result", new JSONObject().put("finished", "success")) .put("result", new JSONObject().put("finished", "success"))