You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by na...@apache.org on 2017/12/05 08:39:48 UTC

jclouds-labs git commit: Rename GraphRBAC live test class

Repository: jclouds-labs
Updated Branches:
  refs/heads/master e2b80d845 -> 89ed53824


Rename GraphRBAC live test class


Project: http://git-wip-us.apache.org/repos/asf/jclouds-labs/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds-labs/commit/89ed5382
Tree: http://git-wip-us.apache.org/repos/asf/jclouds-labs/tree/89ed5382
Diff: http://git-wip-us.apache.org/repos/asf/jclouds-labs/diff/89ed5382

Branch: refs/heads/master
Commit: 89ed53824c33c7542e3a2a0cee21b0b8d684e6f3
Parents: e2b80d8
Author: Ignasi Barrera <na...@apache.org>
Authored: Tue Dec 5 09:39:39 2017 +0100
Committer: Ignasi Barrera <na...@apache.org>
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-labs/blob/89ed5382/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/CurrentServicePrincipalApiLiveTest.java
----------------------------------------------------------------------
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/CurrentServicePrincipalApiLiveTest.java
deleted file mode 100644
index 50a1e11..0000000
--- a/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-labs/blob/89ed5382/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/GraphRBACApiLiveTest.java
----------------------------------------------------------------------
diff --git a/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/GraphRBACApiLiveTest.java b/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/features/GraphRBACApiLiveTest.java
new file mode 100644
index 0000000..ca6ce5e
--- /dev/null
+++ b/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);
+   }
+}