Example #1
0
 def __init__(self, identity_version, name=None,
              network_resources=None):
     """A CredentialProvider supplies credentials to test classes.
     :param identity_version: Identity version of the credentials provided
     :param name: Name of the calling test. Included in provisioned
                  credentials when credentials are provisioned on the fly
     :param network_resources: Network resources required for the
                               credentials
     """
     self.name = name or "test_creds"
     self.identity_version = identity_version
     if not auth.is_identity_version_supported(self.identity_version):
         raise exceptions.InvalidIdentityVersion(
             identity_version=self.identity_version)
Example #2
0
 def __init__(self, identity_version=None, name=None,
              network_resources=None):
     """A CredentialProvider supplies credentials to test classes.
     :param identity_version If specified it will return credentials of the
                             corresponding identity version, otherwise it
                             uses auth_version from configuration
     :param name Name of the calling test. Included in provisioned
                 credentials when credentials are provisioned on the fly
     :param network_resources Network resources required for the credentials
     """
     self.name = name or "test_creds"
     self.identity_version = identity_version or CONF.identity.auth_version
     if not auth.is_identity_version_supported(self.identity_version):
         raise exceptions.InvalidIdentityVersion(
             identity_version=self.identity_version)
Example #3
0
 def __init__(self, identity_version=None, name=None,
              network_resources=None):
     """A CredentialProvider supplies credentials to test classes.
     :param identity_version: If specified it will return credentials of the
                              corresponding identity version, otherwise it
                              uses auth_version from configuration
     :param name: Name of the calling test. Included in provisioned
                  credentials when credentials are provisioned on the fly
     :param network_resources: Network resources required for the
                               credentials
     """
     self.name = name or "test_creds"
     self.identity_version = identity_version or CONF.identity.auth_version
     if not auth.is_identity_version_supported(self.identity_version):
         raise exceptions.InvalidIdentityVersion(
             identity_version=self.identity_version)
Example #4
0
 def __init__(self, identity_version=None, name=None, password='******',
              network_resources=None):
     """A CredentialProvider supplies credentials to test classes.
     :param identity_version If specified it will return credentials of the
                             corresponding identity version, otherwise it
                             uses auth_version from configuration
     :param name Name of the calling test. Included in provisioned
                 credentials when credentials are provisioned on the fly
     :param password Used for provisioned credentials when credentials are
                     provisioned on the fly
     :param network_resources Network resources required for the credentials
     """
     # TODO(andreaf) name and password are tenant isolation specific, and
     # could be removed from this abstract class
     self.name = name or "test_creds"
     self.identity_version = identity_version or CONF.identity.auth_version
     if not auth.is_identity_version_supported(self.identity_version):
         raise exceptions.InvalidIdentityVersion(
             identity_version=self.identity_version)
 def __init__(self, identity_version, name=None, network_resources=None,
              credentials_domain=None, admin_role=None):
     """A CredentialProvider supplies credentials to test classes.
     :param identity_version: Identity version of the credentials provided
     :param name: Name of the calling test. Included in provisioned
                  credentials when credentials are provisioned on the fly
     :param network_resources: Network resources required for the
                               credentials
     :param credentials_domain: Domain credentials belong to
     :param admin_role: Name of the role of the admin account
     """
     self.identity_version = identity_version
     self.name = name or "test_creds"
     self.network_resources = network_resources
     self.credentials_domain = credentials_domain or 'Default'
     self.admin_role = admin_role
     if not auth.is_identity_version_supported(self.identity_version):
         raise exceptions.InvalidIdentityVersion(
             identity_version=self.identity_version)
Example #6
0
 def __init__(self,
              identity_version,
              name=None,
              network_resources=None,
              credentials_domain=None):
     """A CredentialProvider supplies credentials to test classes.
     :param identity_version: Identity version of the credentials provided
     :param name: Name of the calling test. Included in provisioned
                  credentials when credentials are provisioned on the fly
     :param network_resources: Network resources required for the
                               credentials
     :param credentials_domain: Domain credentials belong to
     """
     self.identity_version = identity_version
     self.name = name or "test_creds"
     self.network_resources = network_resources
     self.credentials_domain = credentials_domain or 'Default'
     if not auth.is_identity_version_supported(self.identity_version):
         raise exceptions.InvalidIdentityVersion(
             identity_version=self.identity_version)