MCPcopy Create free account
hub / github.com/apache/cloudstack / create_sync_accounts

Method create_sync_accounts

test/integration/plugins/ldap/test_ldap.py:411–420  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

409
410 @classmethod
411 def create_sync_accounts(cls):
412 cls.logger.debug("creating account: %s" % LdapTestData.seniors)
413 cls.senior_account = cls.bind_account_to_ldap(
414 account=cls.testdata.testdata[LdapTestData.syncAccounts][1]["name"],
415 ldapdomain=cls.testdata.testdata[LdapTestData.syncAccounts][1]["group"],
416 accounttype=cls.testdata.testdata[LdapTestData.syncAccounts][1]["accounttype"])
417 cls.junior_account = cls.bind_account_to_ldap(
418 account=cls.testdata.testdata[LdapTestData.syncAccounts][0]["name"],
419 ldapdomain=cls.testdata.testdata[LdapTestData.syncAccounts][0]["group"],
420 accounttype=cls.testdata.testdata[LdapTestData.syncAccounts][0]["accounttype"])
421
422 @classmethod
423 def bind_account_to_ldap(cls, account, ldapdomain, type="Group", accounttype=0):

Callers 1

Calls 2

debugMethod · 0.80
bind_account_to_ldapMethod · 0.80

Tested by

no test coverage detected