Skip to content

Commit

Permalink
Fix datalake tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu committed Jul 5, 2016
1 parent 1142160 commit 5c82bed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.microsoft.azure.management.datalake.analytics;

import com.microsoft.azure.credentials.AzureEnvironment;
import com.microsoft.azure.AzureEnvironment;
import com.microsoft.azure.RestClient;
import com.microsoft.azure.credentials.UserTokenCredentials;
import com.microsoft.azure.management.datalake.analytics.implementation.DataLakeAnalyticsAccountManagementClientImpl;
import com.microsoft.azure.management.datalake.analytics.implementation.DataLakeAnalyticsCatalogManagementClientImpl;
Expand All @@ -13,18 +14,15 @@
import com.microsoft.azure.management.datalake.store.implementation.DataLakeStoreAccountManagementClientImpl;
import com.microsoft.azure.management.resources.implementation.ResourceManagementClientImpl;
import com.microsoft.azure.management.storage.implementation.StorageManagementClientImpl;

import com.microsoft.azure.RestClient;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import org.junit.Assert;
import retrofit2.Retrofit;

import java.text.MessageFormat;
import java.util.UUID;
import java.util.concurrent.TimeUnit;

import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;

public abstract class DataLakeAnalyticsManagementTestBase {
protected static DataLakeAnalyticsAccountManagementClientImpl dataLakeAnalyticsAccountManagementClient;
protected static DataLakeAnalyticsJobManagementClientImpl dataLakeAnalyticsJobManagementClient;
Expand All @@ -48,13 +46,21 @@ public static void createClients() {
case "ppe":
armUri = "https://api-dogfood.resources.windows-int.net";
adlaSuffix = "konaaccountdogfood.net";
authEnv = new AzureEnvironment("https://login.windows-ppe.net/", "https://management.core.windows.net/", true);
authEnv = new AzureEnvironment(
"https://login.windows-ppe.net/",
"https://management.core.windows.net/",
true,
"https://api-dogfood.resources.windows-int.net");
break;
case "test":
armUri = "https://api-dogfood.resources.windows-int.net";
adlaSuffix = "konaaccountdogfood.net";
environmentLocation = "westus";
authEnv = new AzureEnvironment("https://login.windows-ppe.net/", "https://management.core.windows.net/", true);
authEnv = new AzureEnvironment(
"https://login.windows-ppe.net/",
"https://management.core.windows.net/",
true,
"https://api-dogfood.resources.windows-int.net");
break;
default: // default to production
armUri = "https://management.azure.com";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.microsoft.azure.management.datalake.store;

import com.microsoft.azure.credentials.AzureEnvironment;
import com.microsoft.azure.AzureEnvironment;
import com.microsoft.azure.credentials.UserTokenCredentials;
import com.microsoft.azure.management.datalake.store.implementation.DataLakeStoreAccountManagementClientImpl;
import com.microsoft.azure.management.datalake.store.implementation.DataLakeStoreFileSystemManagementClientImpl;
Expand Down

0 comments on commit 5c82bed

Please sign in to comment.