/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.graphrbac;
import com.microsoft.azure.AzureEnvironment;
import com.microsoft.azure.credentials.UserTokenCredentials;
import com.microsoft.azure.management.graphrbac.implementation.GraphRbacManager;
import com.microsoft.rest.LogLevel;
import okhttp3.logging.HttpLoggingInterceptor;
/**
* The base for storage manager tests.
*/
public abstract class GraphRbacManagementTestBase {
protected static GraphRbacManager graphRbacManager;
protected static void createClients() {
UserTokenCredentials credentials = new UserTokenCredentials(
System.getenv("client-id"),
System.getenv("domain"),
System.getenv("username"),
System.getenv("password"),
AzureEnvironment.AZURE
);
graphRbacManager = GraphRbacManager
.configure()
.withLogLevel(LogLevel.BODY)
.authenticate(credentials);
}
}