mirror of https://github.com/apache/jclouds.git
testTemplateBuilderCanUseImageId: use new context when building with imageId
This commit is contained in:
parent
dc181287f6
commit
60af7f454f
|
@ -163,8 +163,10 @@ public abstract class BaseTemplateBuilderLiveTest extends BaseVersionedServiceLi
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testTemplateBuilderCanUseImageId() {
|
public void testTemplateBuilderCanUseImageId() throws Exception {
|
||||||
Template defaultTemplate = context.getComputeService().templateBuilder().build();
|
Template defaultTemplate = context.getComputeService().templateBuilder().build();
|
||||||
|
context.close();
|
||||||
|
setupClient();
|
||||||
|
|
||||||
Template template = context.getComputeService().templateBuilder().imageId(defaultTemplate.getImage().getId())
|
Template template = context.getComputeService().templateBuilder().imageId(defaultTemplate.getImage().getId())
|
||||||
.locationId(defaultTemplate.getLocation().getId()).build();
|
.locationId(defaultTemplate.getLocation().getId()).build();
|
||||||
|
|
Loading…
Reference in New Issue