mirror of https://github.com/apache/jclouds.git
Fix typo.
This commit is contained in:
parent
745b15bb6e
commit
023ca1c696
|
@ -33,20 +33,20 @@ import com.google.common.collect.ImmutableSet;
|
||||||
@Test(groups = "live", testName = "CleanupStaleNodesAndClientsImplLiveTest")
|
@Test(groups = "live", testName = "CleanupStaleNodesAndClientsImplLiveTest")
|
||||||
public class CleanupStaleNodesAndClientsImplLiveTest extends BaseChefLiveTest<ChefApi> {
|
public class CleanupStaleNodesAndClientsImplLiveTest extends BaseChefLiveTest<ChefApi> {
|
||||||
|
|
||||||
private CreateNodeAndPopulateAutomaticAttributesImpl creater;
|
private CreateNodeAndPopulateAutomaticAttributesImpl creator;
|
||||||
private CleanupStaleNodesAndClientsImpl strategy;
|
private CleanupStaleNodesAndClientsImpl strategy;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initialize() {
|
protected void initialize() {
|
||||||
super.initialize();
|
super.initialize();
|
||||||
this.creater = injector.getInstance(CreateNodeAndPopulateAutomaticAttributesImpl.class);
|
this.creator = injector.getInstance(CreateNodeAndPopulateAutomaticAttributesImpl.class);
|
||||||
this.strategy = injector.getInstance(CleanupStaleNodesAndClientsImpl.class);
|
this.strategy = injector.getInstance(CleanupStaleNodesAndClientsImpl.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testExecute() throws InterruptedException {
|
public void testExecute() throws InterruptedException {
|
||||||
try {
|
try {
|
||||||
creater.execute(prefix, ImmutableSet.<String> of());
|
creator.execute(prefix, ImmutableSet.<String> of());
|
||||||
// http://tickets.corp.opscode.com/browse/PL-522
|
// http://tickets.corp.opscode.com/browse/PL-522
|
||||||
// assert chef.nodeExists(prefix);
|
// assert chef.nodeExists(prefix);
|
||||||
assertNotNull(api.getNode(prefix));
|
assertNotNull(api.getNode(prefix));
|
||||||
|
|
|
@ -34,20 +34,20 @@ import com.google.common.collect.ImmutableSet;
|
||||||
public class DeleteAllApisAndNodesInListImplLiveTest extends BaseChefLiveTest<ChefApi> {
|
public class DeleteAllApisAndNodesInListImplLiveTest extends BaseChefLiveTest<ChefApi> {
|
||||||
|
|
||||||
private DeleteAllNodesInListImpl strategy;
|
private DeleteAllNodesInListImpl strategy;
|
||||||
private CreateNodeAndPopulateAutomaticAttributesImpl creater;
|
private CreateNodeAndPopulateAutomaticAttributesImpl creator;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initialize() {
|
protected void initialize() {
|
||||||
super.initialize();
|
super.initialize();
|
||||||
this.creater = injector.getInstance(CreateNodeAndPopulateAutomaticAttributesImpl.class);
|
this.creator = injector.getInstance(CreateNodeAndPopulateAutomaticAttributesImpl.class);
|
||||||
this.strategy = injector.getInstance(DeleteAllNodesInListImpl.class);
|
this.strategy = injector.getInstance(DeleteAllNodesInListImpl.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testExecute() throws InterruptedException {
|
public void testExecute() throws InterruptedException {
|
||||||
try {
|
try {
|
||||||
creater.execute(prefix, ImmutableSet.<String> of());
|
creator.execute(prefix, ImmutableSet.<String> of());
|
||||||
creater.execute(prefix + 1, ImmutableSet.<String> of());
|
creator.execute(prefix + 1, ImmutableSet.<String> of());
|
||||||
|
|
||||||
// http://tickets.corp.opscode.com/browse/PL-522
|
// http://tickets.corp.opscode.com/browse/PL-522
|
||||||
// assert api.nodeExists(prefix);
|
// assert api.nodeExists(prefix);
|
||||||
|
|
|
@ -36,15 +36,15 @@ import com.google.common.collect.ImmutableSet;
|
||||||
public class GetNodesImplLiveTest extends BaseChefLiveTest<ChefApi> {
|
public class GetNodesImplLiveTest extends BaseChefLiveTest<ChefApi> {
|
||||||
|
|
||||||
private ListNodesImpl strategy;
|
private ListNodesImpl strategy;
|
||||||
private CreateNodeAndPopulateAutomaticAttributesImpl creater;
|
private CreateNodeAndPopulateAutomaticAttributesImpl creator;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initialize() {
|
protected void initialize() {
|
||||||
super.initialize();
|
super.initialize();
|
||||||
this.creater = injector.getInstance(CreateNodeAndPopulateAutomaticAttributesImpl.class);
|
this.creator = injector.getInstance(CreateNodeAndPopulateAutomaticAttributesImpl.class);
|
||||||
this.strategy = injector.getInstance(ListNodesImpl.class);
|
this.strategy = injector.getInstance(ListNodesImpl.class);
|
||||||
creater.execute(prefix, ImmutableSet.<String> of());
|
creator.execute(prefix, ImmutableSet.<String> of());
|
||||||
creater.execute(prefix + 1, ImmutableSet.<String> of());
|
creator.execute(prefix + 1, ImmutableSet.<String> of());
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterClass(groups = { "integration", "live" })
|
@AfterClass(groups = { "integration", "live" })
|
||||||
|
|
Loading…
Reference in New Issue