Rename GraphRBAC live test class
Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/ac5f3a14 Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/ac5f3a14 Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/ac5f3a14 Branch: refs/heads/master Commit: ac5f3a1452b76d4d3d4c22ce7b4796c1965550ec Parents: 3efce9a Author: Ignasi Barrera <[email protected]> Authored: Tue Dec 5 09:39:39 2017 +0100 Committer: Ignasi Barrera <[email protected]> Committed: Tue Dec 5 09:39:39 2017 +0100 ---------------------------------------------------------------------- .../CurrentServicePrincipalApiLiveTest.java | 34 ----------------- .../arm/features/GraphRBACApiLiveTest.java | 39 ++++++++++++++++++++ 2 files changed, 39 insertions(+), 34 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds/blob/ac5f3a14/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/CurrentServicePrincipalApiLiveTest.java ---------------------------------------------------------------------- diff --git a/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/CurrentServicePrincipalApiLiveTest.java b/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/CurrentServicePrincipalApiLiveTest.java deleted file mode 100644 index 50a1e11..0000000 --- a/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/CurrentServicePrincipalApiLiveTest.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jclouds.azurecompute.arm.features; - -import static org.testng.Assert.assertEquals; - -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 - public void testGetCurrentServicePrincipal() { - ServicePrincipal currentUser = api.getServicePrincipal().get(); - assertEquals(currentUser.appId(), identity); - } - -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/ac5f3a14/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/GraphRBACApiLiveTest.java ---------------------------------------------------------------------- diff --git a/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/GraphRBACApiLiveTest.java b/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/GraphRBACApiLiveTest.java new file mode 100644 index 0000000..ca6ce5e --- /dev/null +++ b/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/GraphRBACApiLiveTest.java @@ -0,0 +1,39 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.jclouds.azurecompute.arm.features; + +import static org.testng.Assert.assertEquals; + +import org.jclouds.azurecompute.arm.domain.ServicePrincipal; +import org.jclouds.azurecompute.arm.internal.BaseAzureComputeApiLiveTest; +import org.testng.annotations.Test; + +@Test(groups = "live", testName = "GraphRBACApiLiveTest", singleThreaded = true) +public class GraphRBACApiLiveTest extends BaseAzureComputeApiLiveTest { + + @Test + 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); + } +}
