Exemplo n.º 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'
                      }))
Exemplo n.º 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'))
Exemplo n.º 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'}))
Exemplo n.º 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'))
Exemplo n.º 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'}))
Exemplo n.º 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'}))
Exemplo n.º 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'}))
Exemplo n.º 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'}))
Exemplo n.º 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'}))
Exemplo n.º 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'))
Exemplo n.º 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 = []
Exemplo n.º 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'))
Exemplo n.º 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 = []
Exemplo n.º 16
0
 def setUp(self):
     global testcase_id
     testcase_id = random_id()
     self.connection = Connection(server=None, client_strategy=LDIF)
     self.connection.open()
Exemplo n.º 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 = []
Exemplo n.º 18
0
 def setUp(self):
     global testcase_id
     testcase_id = random_id()
     self.connection = get_connection()
Exemplo n.º 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'}))
Exemplo n.º 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 = []
Exemplo n.º 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 = []
Exemplo n.º 23
0
 def setUp(self):
     global testcase_id
     testcase_id = random_id()
     self.connection = get_connection()
     self.delete_at_teardown = []
Exemplo n.º 24
0
 def setUp(self):
     global testcase_id
     testcase_id = random_id()
     self.connection = get_connection()