> +      MockWebServer server = mockWebServer();
> +      server.enqueue(new 
> MockResponse().setBody(payloadFromResource("/container-creation.json")));
> +
> +      DockerApi api = api(server.getUrl("/"));
> +      RemoteApi remoteApi = api.getRemoteApi();
> +      Config config = Config.builder().cmd(ImmutableList.of("date"))
> +              .attachStdin(false)
> +              .attachStderr(true)
> +              .attachStdout(true)
> +              .tty(false)
> +              .imageId("base")
> +              .build();
> +      try {
> +         Container container = remoteApi.createContainer("test", config);
> +         assertNotNull(container);
> +         assertEquals(container.getId(), 
> "c6c74153ae4b1d1633d68890a68d89c40aa5e284a1ea016cbc6ef0e634ee37b2");

Also check the recorded request.

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

Reply via email to