Rename GraphRBAC live test class
diff --git a/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/CurrentServicePrincipalApiLiveTest.java b/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/GraphRBACApiLiveTest.java
similarity index 77%
rename from azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/CurrentServicePrincipalApiLiveTest.java
rename to azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/GraphRBACApiLiveTest.java
index 50a1e11..ca6ce5e 100644
--- a/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/CurrentServicePrincipalApiLiveTest.java
+++ b/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/GraphRBACApiLiveTest.java
@@ -22,13 +22,18 @@
import org.jclouds.azurecompute.arm.internal.BaseAzureComputeApiLiveTest;
import org.testng.annotations.Test;
-@Test(groups = "live", testName = "CurrentServicePrincipalApiLiveTest", singleThreaded = true)
-public class CurrentServicePrincipalApiLiveTest extends BaseAzureComputeApiLiveTest {
+@Test(groups = "live", testName = "GraphRBACApiLiveTest", singleThreaded = true)
+public class GraphRBACApiLiveTest extends BaseAzureComputeApiLiveTest {
@Test
- public void testGetCurrentServicePrincipal() {
+ public void testGetCurrentServicePrincipalSupplier() {
ServicePrincipal currentUser = api.getServicePrincipal().get();
assertEquals(currentUser.appId(), identity);
}
+ @Test
+ public void testGetCurrentServicePrincipal() {
+ ServicePrincipal currentUser = api.getGraphRBACApi().getCurrentServicePrincipal();
+ assertEquals(currentUser.appId(), identity);
+ }
}