// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.deployment;

/**
 * @author mortent
 */
public class TestReport {
    private final String report;

    private TestReport(String report) {
        this.report = report;
    }

    public String toJson() {
        return report;
    }

    public static TestReport fromJson(String report) {
        return new TestReport(report);
    }
}

@@ -169,16 +169,95 @@
 yment;%0A%0A
+import com.yahoo.slime.SlimeUtils;%0A%0Aimport java.nio.charset.StandardCharsets;%0A%0A
 /**%0A * @
@@ -301,16 +301,17 @@
 eport %7B%0A
+%0A
     priv
@@ -519,32 +519,133 @@
 tring report) %7B%0A
+        SlimeUtils.jsonToSlimeOrThrow(report.getBytes(StandardCharsets.UTF_8)); // Verify structure.%0A
         return n
@@ -667,16 +667,17 @@
 eport);%0A
-
     %7D%0A
+%0A
 %7D%0A

Verify JSON when passing test report through controller