> +      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();
> +         api.close();
> +         server.shutdown();
> +      }
> +   }

Add the corresponding tests for the `build` method that uses a `Payload` 
instead of a `File`.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r12937961

Reply via email to