Rename GraphRBAC live test class

This commit is contained in:
Ignasi Barrera 2017-12-05 09:39:39 +01:00
parent 3efce9a3a5
commit ac5f3a1452
1 changed files with 8 additions and 3 deletions

View File

@ -22,13 +22,18 @@ import org.jclouds.azurecompute.arm.domain.ServicePrincipal;
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);
}
}