Example #1
0
 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'
                      }))
Example #3
0
 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'))
Example #4
0
 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'}))
Example #5
0
 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'))
Example #6
0
 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'}))
Example #8
0
 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'}))
Example #10
0
 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'}))
Example #11
0
 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'))
Example #12
0
 def setUp(self):
     global testcase_id
     testcase_id = random_id()
     self.connection = get_connection(check_names=False, get_info=ALL)
     self.delete_at_teardown = []
Example #13
0
 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'))
Example #14
0
 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 = []
Example #16
0
 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(check_names=False, get_info=ALL)
     self.delete_at_teardown = []
Example #18
0
 def setUp(self):
     global testcase_id
     testcase_id = random_id()
     self.connection = get_connection()
Example #19
0
 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'}))
Example #20
0
 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()
     self.delete_at_teardown = []
Example #22
0
 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 = []
Example #23
0
 def setUp(self):
     global testcase_id
     testcase_id = random_id()
     self.connection = get_connection()
     self.delete_at_teardown = []
Example #24
0
 def setUp(self):
     global testcase_id
     testcase_id = random_id()
     self.connection = get_connection()