> +
> + DockerApi api = api(server.getUrl("/"));
> + RemoteApi remoteApi = api.getRemoteApi();
> +
> + String content = new String(payloadFromResource("/Dockerfile"));
> + File dockerFile = createDockerFile(content);
> + try {
> + try {
> + remoteApi.build(dockerFile, BuildOptions.NONE);
> + fail("Build container should fail on 404");
> + } catch (ResourceNotFoundException ex) {
> + // Expected exception
> + }
> + assertRequestHasCommonFields(server.takeRequest(), "POST",
> "/build");
> + } finally {
> + dockerFile.deleteOnExit();
Why not ```dockerFile.delete()```?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r12938165