mirror of https://github.com/apache/jclouds.git
fixed testing account
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1911 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
e3672b6a59
commit
7a6b9fe6cd
|
@ -33,7 +33,6 @@ import org.jclouds.azure.storage.domain.BoundedList;
|
||||||
import org.jclouds.azure.storage.options.CreateOptions;
|
import org.jclouds.azure.storage.options.CreateOptions;
|
||||||
import org.jclouds.azure.storage.options.ListOptions;
|
import org.jclouds.azure.storage.options.ListOptions;
|
||||||
import org.jclouds.azure.storage.queue.domain.QueueMetadata;
|
import org.jclouds.azure.storage.queue.domain.QueueMetadata;
|
||||||
import org.jclouds.azure.storage.reference.AzureStorageConstants;
|
|
||||||
import org.jclouds.http.HttpResponseException;
|
import org.jclouds.http.HttpResponseException;
|
||||||
import org.jclouds.logging.log4j.config.Log4JLoggingModule;
|
import org.jclouds.logging.log4j.config.Log4JLoggingModule;
|
||||||
import org.testng.annotations.BeforeGroups;
|
import org.testng.annotations.BeforeGroups;
|
||||||
|
@ -49,20 +48,18 @@ import com.google.inject.Injector;
|
||||||
*/
|
*/
|
||||||
@Test(groups = "live", sequential = true, testName = "cloudservers.AzureQueueConnectionLiveTest")
|
@Test(groups = "live", sequential = true, testName = "cloudservers.AzureQueueConnectionLiveTest")
|
||||||
public class AzureQueueConnectionLiveTest {
|
public class AzureQueueConnectionLiveTest {
|
||||||
|
String account;
|
||||||
|
|
||||||
protected static final String sysAzureStorageAccount = System
|
|
||||||
.getProperty(AzureStorageConstants.PROPERTY_AZURESTORAGE_ACCOUNT);
|
|
||||||
protected static final String sysAzureStorageKey = System
|
|
||||||
.getProperty(AzureStorageConstants.PROPERTY_AZURESTORAGE_KEY);
|
|
||||||
protected AzureQueueConnection connection;
|
protected AzureQueueConnection connection;
|
||||||
|
|
||||||
private String queuePrefix = System.getProperty("user.name") + "-azurequeue";
|
private String queuePrefix = System.getProperty("user.name") + "-azurequeue";
|
||||||
|
|
||||||
@BeforeGroups(groups = { "live" })
|
@BeforeGroups(groups = { "live" })
|
||||||
public void setupConnection() {
|
public void setupConnection() {
|
||||||
Injector injector = AzureQueueContextBuilder.newBuilder(sysAzureStorageAccount,
|
account = System.getProperty("jclouds.test.user");
|
||||||
sysAzureStorageKey).withModules(new Log4JLoggingModule()).withSaxDebug()
|
String key = System.getProperty("jclouds.test.key");
|
||||||
.buildInjector();
|
Injector injector = AzureQueueContextBuilder.newBuilder(account, key).withModules(
|
||||||
|
new Log4JLoggingModule()).withSaxDebug().buildInjector();
|
||||||
connection = injector.getInstance(AzureQueueConnection.class);
|
connection = injector.getInstance(AzureQueueConnection.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue