def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection() self.delete_at_teardown = [] self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'ldif-content-1')) self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'ldif-content-2'))
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection() self.delete_at_teardown = [] if test_server_type == 'EDIR': self.delete_at_teardown.append( add_user(self.connection, testcase_id, 'mod-1', attributes={ test_multivalued_attribute: 'givenname-1', test_int_attr: 0 })) self.delete_at_teardown.append( add_user(self.connection, testcase_id, 'mod-2', attributes={ test_multivalued_attribute: ['givenname-2a', 'givenname-2b', 'givenname-2c'], test_int_attr: 0, test_singlevalued_attribute: 'init' })) elif test_server_type == 'AD': self.delete_at_teardown.append( add_user( self.connection, testcase_id, 'mod-1', attributes={test_multivalued_attribute: 'givenname-1'})) self.delete_at_teardown.append( add_user(self.connection, testcase_id, 'mod-2', attributes={ test_multivalued_attribute: ['givenname-2a', 'givenname-2b', 'givenname-2c'], test_singlevalued_attribute: 'init' })) else: self.delete_at_teardown.append( add_user( self.connection, testcase_id, 'mod-1', attributes={test_multivalued_attribute: 'givenname-1'})) self.delete_at_teardown.append( add_user(self.connection, testcase_id, 'mod-2', attributes={ test_multivalued_attribute: ['givenname-2a', 'givenname-2b', 'givenname-2c'], test_singlevalued_attribute: 'init' }))
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection(check_names=True) self.delete_at_teardown = [] self.delete_at_teardown.append( add_user(self.connection, testcase_id, 'delete-1'))
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection() self.delete_at_teardown = [] self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'controls-1', attributes={'givenName': 'given name-1'})) self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'controls-2', attributes={'givenName': 'given name-2'})) self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'controls-3', attributes={'givenName': 'given name-3'}))
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection() self.delete_at_teardown = [] self.delete_at_teardown.append( add_user(self.connection, testcase_id, 'ldif-content-1')) self.delete_at_teardown.append( add_user(self.connection, testcase_id, 'ldif-content-2'))
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection(check_names=True) self.delete_at_teardown = [] self.delete_at_teardown.append( add_user(self.connection, testcase_id, 'compare-1', attributes={'givenName': 'compare'}))
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection() self.delete_at_teardown = [] self.delete_at_teardown.append( add_user(self.connection, testcase_id, 'modify-1', attributes={'givenName': 'givenname-1'}))
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection() self.delete_at_teardown = [] if test_server_type == 'EDIR': self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'sea-1', attributes={'givenName': 'givenname-1', test_int_attr: 0})) self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'sea-2', attributes={'givenName': 'givenname-2', test_int_attr: 0})) elif test_server_type == 'AD': self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'sea-1', attributes={'givenName': 'givenname-1'})) self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'sea-2', attributes={'givenName': 'givenname-2'})) else: self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'sea-1', attributes={'givenName': 'givenname-1'})) self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'sea-2', attributes={'givenName': 'givenname-2'}))
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection() self.delete_at_teardown = [] if test_server_type == 'EDIR': self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'mod-1', attributes={test_multivalued_attribute: 'givenname-1', test_int_attr: 0})) self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'mod-2', attributes={test_multivalued_attribute: ['givenname-2a', 'givenname-2b', 'givenname-2c'], test_int_attr: 0, test_singlevalued_attribute: 'init'})) elif test_server_type == 'AD': self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'mod-1', attributes={test_multivalued_attribute: 'givenname-1'})) self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'mod-2', attributes={test_multivalued_attribute: ['givenname-2a', 'givenname-2b', 'givenname-2c'], test_singlevalued_attribute: 'init'})) else: self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'mod-1', attributes={test_multivalued_attribute: 'givenname-1'})) self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'mod-2', attributes={test_multivalued_attribute: ['givenname-2a', 'givenname-2b', 'givenname-2c'], test_singlevalued_attribute: 'init'}))
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection(check_names=True, get_info=ALL) self.delete_at_teardown = [] if test_server_type == 'EDIR': self.delete_at_teardown.append( add_user(self.connection, testcase_id, 'chk-1', attributes={'loginGraceLimit': 0})) elif test_server_type == 'AD': self.delete_at_teardown.append( add_user(self.connection, testcase_id, 'chk-1')) else: self.delete_at_teardown.append( add_user(self.connection, testcase_id, 'chk-1'))
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection(check_names=False, get_info=ALL) self.delete_at_teardown = []
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection(check_names=True) self.delete_at_teardown = [] self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'delete-1'))
def setUp(self): global testcase_id testcase_id = random_id() if test_server_type == 'AD-RAAB': self.connection = get_connection(use_ssl=True) self.delete_at_teardown = []
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection(get_info=ALL, bind=True) self.delete_at_teardown = []
def setUp(self): global testcase_id testcase_id = random_id() self.connection = Connection(server=None, client_strategy=LDIF) self.connection.open()
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection()
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection(check_names=True) self.delete_at_teardown = [] self.delete_at_teardown.append(add_user(self.connection, testcase_id, 'compare-1', attributes={'givenName': 'compare'}))
def setUp(self): global testcase_id testcase_id = random_id() self.connection = get_connection() self.delete_at_teardown = []
def setUp(self): global testcase_id testcase_id = random_id() if test_server_type == 'AD': self.connection = get_connection(use_ssl=True) self.delete_at_teardown = []