Skip to content

Commit

Permalink
Make build pass after removed unnecessary dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
rujche committed May 21, 2020
1 parent a5b4731 commit 4fc5534
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 55 deletions.
20 changes: 0 additions & 20 deletions verification/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,26 +75,6 @@
<artifactId>applicationinsights-core</artifactId>
</dependency>

<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-servicebus</artifactId>
</dependency>

<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage</artifactId>
</dependency>

<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage-blob</artifactId>
</dependency>

<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-media</artifactId>
</dependency>

<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-authentication</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/
package com.microsoft.azure.verification;

import com.azure.data.cosmos.ConnectionPolicy;
import com.azure.data.cosmos.ConsistencyLevel;
import javax.security.auth.login.Configuration;

import com.microsoft.aad.adal4j.AuthenticationContext;
import com.microsoft.aad.adal4j.AuthenticationResult;
import com.microsoft.aad.adal4j.ClientCredential;
Expand All @@ -20,10 +20,6 @@
import com.microsoft.azure.management.keyvault.Vault;
import com.microsoft.azure.management.resources.fluentcore.arm.Region;
import com.microsoft.azure.serializer.AzureJacksonAdapter;
import com.microsoft.azure.servicebus.QueueClient;
import com.microsoft.azure.servicebus.ReceiveMode;
import com.microsoft.azure.servicebus.primitives.ConnectionStringBuilder;
import com.microsoft.azure.servicebus.primitives.ServiceBusException;
import com.microsoft.azure.storage.CloudStorageAccount;
import com.microsoft.azure.storage.StorageException;
import com.microsoft.azure.storage.blob.CloudBlobClient;
Expand All @@ -32,13 +28,7 @@
import com.microsoft.rest.ServiceResponseBuilder;
import com.microsoft.rest.credentials.ServiceClientCredentials;
import com.microsoft.rest.serializer.JacksonAdapter;
import com.microsoft.windowsazure.Configuration;
import com.microsoft.windowsazure.services.media.MediaConfiguration;
import com.microsoft.windowsazure.services.media.MediaContract;
import com.microsoft.windowsazure.services.media.MediaService;
import com.microsoft.windowsazure.services.media.authentication.*;
import lombok.SneakyThrows;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.RestController;
Expand Down Expand Up @@ -104,14 +94,6 @@ public TelemetryClient getTelemetryClient() {
return new TelemetryClient();
}

@Bean
public QueueClient getQueueClient() throws InterruptedException, ServiceBusException {
com.microsoft.azure.servicebus.primitives.ConnectionStringBuilder builder = new
com.microsoft.azure.servicebus.primitives.ConnectionStringBuilder("fake-string", "fake-queue-name");

return new QueueClient(builder, ReceiveMode.RECEIVEANDDELETE);
}

@Bean
public RestClient getRestClient() {
return new RestClient.Builder()
Expand Down Expand Up @@ -145,21 +127,6 @@ public Vault getVault() throws IOException {
.create();
}

@Bean
public MediaContract createMediaContract() throws MalformedURLException {
final AzureAdTokenCredentials tokenCredentials = new AzureAdTokenCredentials("fake-tenant",
new AzureAdClientSymmetricKey("fake-client-id", "fake-client-key"),
AzureEnvironments.AZURE_CLOUD_ENVIRONMENT);
final ExecutorService executorService = Executors.newFixedThreadPool(1);
final TokenProvider tokenProvider = new AzureAdTokenProvider(tokenCredentials, executorService);
final Configuration configuration = Configuration.getInstance();

configuration.setProperty(MediaConfiguration.AZURE_AD_API_SERVER, "http://fake.account.api.url");
configuration.setProperty(MediaConfiguration.AZURE_AD_TOKEN_PROVIDER, tokenProvider);

return MediaService.create(configuration);
}

@Bean
public AppServiceMSICredentials getAppServiceMSICredentials() {
return new AppServiceMSICredentials(AzureEnvironment.AZURE);
Expand Down

0 comments on commit 4fc5534

Please sign in to comment.