Пример #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'
                      }))
Пример #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'))
Пример #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'}))
Пример #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'))
Пример #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'}))
Пример #7
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,
                  'modify-1',
                  attributes={'givenName': 'givenname-1'}))
Пример #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'}))
Пример #9
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, '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'}))
Пример #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'}))
Пример #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'))
Пример #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 = []
Пример #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'))
Пример #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 = []
Пример #16
0
 def setUp(self):
     global testcase_id
     testcase_id = random_id()
     self.connection = Connection(server=None, client_strategy=LDIF)
     self.connection.open()
Пример #17
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 = []
Пример #18
0
 def setUp(self):
     global testcase_id
     testcase_id = random_id()
     self.connection = get_connection()
Пример #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'}))
Пример #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 = []
Пример #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 = []
Пример #23
0
 def setUp(self):
     global testcase_id
     testcase_id = random_id()
     self.connection = get_connection()
     self.delete_at_teardown = []
Пример #24
0
 def setUp(self):
     global testcase_id
     testcase_id = random_id()
     self.connection = get_connection()