JCLOUDS-40 missing azure-common reference from azureblob.

This commit is contained in:
Adrian Cole 2014-10-03 22:43:32 -07:00 committed by Adrian Cole
parent 6843e0cbe8
commit cc40f68933
2 changed files with 2 additions and 19 deletions

View File

@ -43,12 +43,6 @@
</properties> </properties>
<dependencies> <dependencies>
<dependency>
<groupId>org.apache.jclouds.common</groupId>
<artifactId>azure-common</artifactId>
<version>${project.version}</version>
<type>jar</type>
</dependency>
<dependency> <dependency>
<groupId>org.apache.jclouds</groupId> <groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-blobstore</artifactId> <artifactId>jclouds-blobstore</artifactId>

View File

@ -16,7 +16,6 @@
*/ */
package org.jclouds.azure.storage.filters; package org.jclouds.azure.storage.filters;
import static org.jclouds.reflect.Reflection2.typeToken;
import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertEquals;
import java.io.IOException; import java.io.IOException;
@ -25,12 +24,8 @@ import java.net.URI;
import javax.ws.rs.HttpMethod; import javax.ws.rs.HttpMethod;
import org.jclouds.ContextBuilder; import org.jclouds.ContextBuilder;
import org.jclouds.azure.storage.config.AzureStorageRestClientModule;
import org.jclouds.http.HttpRequest; import org.jclouds.http.HttpRequest;
import org.jclouds.http.IntegrationTestAsyncClient;
import org.jclouds.http.IntegrationTestClient;
import org.jclouds.logging.config.NullLoggingModule; import org.jclouds.logging.config.NullLoggingModule;
import org.jclouds.rest.AnonymousRestApiMetadata;
import org.jclouds.rest.internal.BaseRestApiTest.MockModule; import org.jclouds.rest.internal.BaseRestApiTest.MockModule;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider; import org.testng.annotations.DataProvider;
@ -126,16 +121,10 @@ public class SharedKeyLiteAuthenticationTest {
@BeforeClass @BeforeClass
protected void createFilter() throws IOException { protected void createFilter() throws IOException {
injector = ContextBuilder injector = ContextBuilder
.newBuilder( .newBuilder("azureblob")
AnonymousRestApiMetadata
.forClientMappedToAsyncClient(IntegrationTestClient.class, IntegrationTestAsyncClient.class)
.toBuilder().build())
.endpoint("https://${jclouds.identity}.blob.core.windows.net") .endpoint("https://${jclouds.identity}.blob.core.windows.net")
.credentials(ACCOUNT, "credential") .credentials(ACCOUNT, "credential")
.modules( .modules(ImmutableSet.<Module> of(new MockModule(), new NullLoggingModule()))
ImmutableSet.<Module> of(new MockModule(), new NullLoggingModule(),
new AzureStorageRestClientModule<IntegrationTestClient, IntegrationTestAsyncClient>(
typeToken(IntegrationTestClient.class), typeToken(IntegrationTestAsyncClient.class))))
.buildInjector(); .buildInjector();
filter = injector.getInstance(SharedKeyLiteAuthentication.class); filter = injector.getInstance(SharedKeyLiteAuthentication.class);
} }