org.dasein.cloud.test.identity
Class IdentityResources

java.lang.Object
  extended by org.dasein.cloud.test.identity.IdentityResources

public class IdentityResources
extends Object

Manages all identity resources for automated provisioning and de-provisioning during integration tests.

Created by George Reese: 2/18/13 10:16 AM

Since:
2013.04
Version:
2013.04 initial version
Author:
George Reese

Constructor Summary
IdentityResources(org.dasein.cloud.CloudProvider provider)
           
 
Method Summary
 int close()
           
 String findStatelessGroup()
           
 String findStatelessKeypair()
           
 String findStatelessUser(String preferredGroupId)
           
 String getTestGroupId(String label, boolean provisionIfNull)
           
 String getTestKeypairId(String label, boolean provisionIfNull)
           
 String getTestUserId(String label, boolean provisionIfNull, String groupToJoin)
           
 String provisionGroup(org.dasein.cloud.identity.IdentityAndAccessSupport support, String label, String namePrefix)
           
 String provisionKeypair(org.dasein.cloud.identity.ShellKeySupport support, String label, String namePrefix)
           
 String provisionUser(org.dasein.cloud.identity.IdentityAndAccessSupport support, String label, String namePrefix, String... preferredGroups)
           
 int report()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityResources

public IdentityResources(@Nonnull
                         org.dasein.cloud.CloudProvider provider)
Method Detail

close

public int close()

report

public int report()

getTestGroupId

@Nullable
public String getTestGroupId(@Nonnull
                                      String label,
                                      boolean provisionIfNull)

getTestKeypairId

@Nullable
public String getTestKeypairId(@Nonnull
                                        String label,
                                        boolean provisionIfNull)

getTestUserId

@Nullable
public String getTestUserId(@Nonnull
                                     String label,
                                     boolean provisionIfNull,
                                     @Nullable
                                     String groupToJoin)

findStatelessGroup

@Nullable
public String findStatelessGroup()

findStatelessKeypair

@Nullable
public String findStatelessKeypair()

findStatelessUser

@Nullable
public String findStatelessUser(@Nullable
                                         String preferredGroupId)

provisionGroup

@Nonnull
public String provisionGroup(@Nonnull
                                     org.dasein.cloud.identity.IdentityAndAccessSupport support,
                                     @Nonnull
                                     String label,
                                     @Nonnull
                                     String namePrefix)
                      throws org.dasein.cloud.CloudException,
                             org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

provisionKeypair

@Nonnull
public String provisionKeypair(@Nonnull
                                       org.dasein.cloud.identity.ShellKeySupport support,
                                       @Nonnull
                                       String label,
                                       @Nonnull
                                       String namePrefix)
                        throws org.dasein.cloud.CloudException,
                               org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

provisionUser

@Nonnull
public String provisionUser(@Nonnull
                                    org.dasein.cloud.identity.IdentityAndAccessSupport support,
                                    @Nonnull
                                    String label,
                                    @Nonnull
                                    String namePrefix,
                                    @Nullable
                                    String... preferredGroups)
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException


Copyright © 2009-2014 Dell, Inc.. All Rights Reserved.