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 <[email protected]>
Authored: Tue Oct 20 22:47:45 2015 +0100
Committer: Aled Sage <[email protected]>
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());

Reply via email to