import com.github.dockerjava.netty.NettyDockerCmdExecFactory;
import java.io.File;
import java.util.Objects;
+import org.codehaus.plexus.util.FileUtils;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
exec = client.inspectContainerCmd(id).exec();
tries++;
} while (exec.getState().getRunning() && tries < TIMEOUT_S);
- Assert.assertEquals(exec.getState().getError(), 0L,
- Objects.requireNonNull(exec.getState().getExitCodeLong()).longValue());
+ logger.info("RobotFramework result:" + exec.getState());
+
LogContainerCmd logContainerCmd = client.logContainerCmd(id);
logContainerCmd.withStdOut(true).withStdErr(true);
try {
copyInputStreamToFile(client.copyArchiveFromContainerCmd(id, "/opt/robotframework/reports/report.html").exec(),
new File("target/robotframework/report.html"));
client.stopContainerCmd(id);
+
+ logger.info("RobotFramework output.xml file: " + FileUtils.fileRead("target/robotframework/output.xml"));
+
+ Assert.assertEquals(exec.getState().getError(), 0L,
+ Objects.requireNonNull(exec.getState().getExitCodeLong()).longValue());
}
-}
+}
\ No newline at end of file
${auth} = Create List ${login} ${passw}
Create Session clamp http://localhost:${port} auth=${auth} disable_warnings=1
Set Global Variable ${clamp_session} clamp
- ${response_query}= Get Request ${clamp_session} /restservices/clds/v2/policies/list
+ ${response_query}= Get Request ${clamp_session} /restservices/clds/v2/policies
Should Be Equal As Strings ${response_query.status_code} 200
Should Contain ${response_query.text} ${reponse_pdp_group}
\ No newline at end of file