authorization test failing on guice errors on apis module

This commit is contained in:
Adrian Cole 2011-11-13 12:57:10 +02:00
parent 322e90d682
commit ae92c8005b
1 changed files with 5 additions and 2 deletions

View File

@ -181,8 +181,11 @@ public abstract class BaseComputeServiceLiveTest extends BaseVersionedServiceLiv
public void testCorrectAuthException() throws Exception {
ComputeServiceContext context = null;
try {
context = new ComputeServiceContextFactory(setupRestProperties()).createContext(provider, "MOMMA", "MIA",
ImmutableSet.<Module> of(new Log4JLoggingModule()));
Properties overrides = setupProperties();
overrides.setProperty(provider + ".identity", "MOMMA");
overrides.setProperty(provider + ".credential", "MIA");
context = new ComputeServiceContextFactory(setupRestProperties()).createContext(provider,
ImmutableSet.<Module> of(new Log4JLoggingModule()), overrides);
context.getComputeService().listNodes();
} catch (AuthorizationException e) {
throw e;