You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by sv...@apache.org on 2015/10/21 08:49:41 UTC

[1/2] incubator-brooklyn git commit: Adds CreateUserPolicy tests for SUSE

Repository: incubator-brooklyn
Updated Branches:
  refs/heads/master 74f23fab1 -> 0e35052b0


Adds CreateUserPolicy tests for SUSE

Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/b914b6e6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/b914b6e6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/b914b6e6

Branch: refs/heads/master
Commit: b914b6e636d00522b9703ff39140b926525d928d
Parents: 66ac217
Author: Aled Sage <al...@gmail.com>
Authored: Tue Oct 20 22:47:45 2015 +0100
Committer: Aled Sage <al...@gmail.com>
Committed: Tue Oct 20 22:47:45 2015 +0100

----------------------------------------------------------------------
 .../policy/jclouds/os/CreateUserPolicyLiveTest.java     | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/b914b6e6/locations/jclouds/src/test/java/org/apache/brooklyn/policy/jclouds/os/CreateUserPolicyLiveTest.java
----------------------------------------------------------------------
diff --git a/locations/jclouds/src/test/java/org/apache/brooklyn/policy/jclouds/os/CreateUserPolicyLiveTest.java b/locations/jclouds/src/test/java/org/apache/brooklyn/policy/jclouds/os/CreateUserPolicyLiveTest.java
index 0fe9b24..eb74031 100644
--- a/locations/jclouds/src/test/java/org/apache/brooklyn/policy/jclouds/os/CreateUserPolicyLiveTest.java
+++ b/locations/jclouds/src/test/java/org/apache/brooklyn/policy/jclouds/os/CreateUserPolicyLiveTest.java
@@ -58,13 +58,23 @@ public class CreateUserPolicyLiveTest extends BrooklynAppLiveTestSupport {
     
     @Test(groups="Live")
     @SuppressWarnings("unchecked")
-    public void testLiveCreatesUser() throws Exception {
+    public void testLiveCreatesUserOnCentos() throws Exception {
         String locSpec = "jclouds:softlayer:ams01";
         ImmutableMap<String, String> locArgs = ImmutableMap.of("imageId", "CENTOS_6_64");
         Location loc = mgmt.getLocationRegistry().resolve(locSpec, locArgs);
         runTestCreatesUser((MachineProvisioningLocation<SshMachineLocation>) loc);
     }
     
+    @Test(groups="Live")
+    @SuppressWarnings("unchecked")
+    public void testLiveCreatesUserOnSuse() throws Exception {
+        // No SUSE images on Softlayer, so test on AWS
+        String locSpec = "jclouds:aws-ec2:us-east-1";
+        ImmutableMap<String, String> locArgs = ImmutableMap.of("imageId", "us-east-1/ami-8dd105e6", "loginUser", "ec2-user");
+        Location loc = mgmt.getLocationRegistry().resolve(locSpec, locArgs);
+        runTestCreatesUser((MachineProvisioningLocation<SshMachineLocation>) loc);
+    }
+    
     public void runTestCreatesUser(MachineProvisioningLocation<SshMachineLocation> loc) throws Exception {
         String newUsername = Identifiers.makeRandomId(16);
         SshMachineLocation machine = loc.obtain(ImmutableMap.of());


[2/2] incubator-brooklyn git commit: This closes #976

Posted by sv...@apache.org.
This closes #976

Adds CreateUserPolicy tests for SUSE


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/0e35052b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/0e35052b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/0e35052b

Branch: refs/heads/master
Commit: 0e35052b0faf585d59d61864dbcd159c1551b6df
Parents: 74f23fa b914b6e
Author: Svetoslav Neykov <sv...@cloudsoftcorp.com>
Authored: Wed Oct 21 09:49:31 2015 +0300
Committer: Svetoslav Neykov <sv...@cloudsoftcorp.com>
Committed: Wed Oct 21 09:49:31 2015 +0300

----------------------------------------------------------------------
 .../policy/jclouds/os/CreateUserPolicyLiveTest.java     | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------