|
8 |
|
8 |
|
9 |
from univention.config_registry import ConfigRegistry |
9 |
from univention.config_registry import ConfigRegistry |
10 |
import univention.testing.udm as udm_test |
10 |
import univention.testing.udm as udm_test |
11 |
from univention.testing.utils import verify_ldap_object, wait_for_replication_and_postrun, fail |
11 |
from univention.testing.utils import verify_ldap_object, wait_for_replication, fail |
12 |
from univention.testing.strings import random_name, random_version, random_ucs_version |
12 |
from univention.testing.strings import random_name, random_version, random_ucs_version |
13 |
from univention.testing.udm_extensions import * |
13 |
from univention.testing.udm_extensions import * |
14 |
import subprocess |
14 |
import subprocess |
|
43 |
ucsversionend = version_end, |
43 |
ucsversionend = version_end, |
44 |
active = 'FALSE') |
44 |
active = 'FALSE') |
45 |
|
45 |
|
46 |
wait_for_replication_and_postrun() |
46 |
wait_for_replication() |
47 |
udm.stop_cli_server() |
47 |
udm.stop_cli_server() |
48 |
|
48 |
|
49 |
verify_ldap_object(dn, { |
49 |
verify_ldap_object(dn, { |
|
57 |
|
57 |
|
58 |
}) |
58 |
}) |
59 |
|
59 |
|
60 |
output = subprocess.Popen(['udm', 'modules'], stdout=subprocess.PIPE).communicate() |
60 |
output, stderr = subprocess.Popen(['udm', 'modules'], stdout=subprocess.PIPE).communicate() |
61 |
if not extension_name in output: |
61 |
if not extension_name in output: |
62 |
fail('ERROR: udm cli server has not been reloaded yet or module registration failed') |
62 |
fail('ERROR: udm cli server has not been reloaded yet or module registration failed') |
63 |
|
63 |
|
64 |
extension_dn = udm.create_object(extension_name, position=ucr.get('ldap/base'), name=object_name) |
64 |
extension_dn = udm.create_object(extension_name, position=ucr.get('ldap/base'), name=object_name) |
65 |
udm.remove_object(extension_name, dn=extension_dn) |
65 |
udm.remove_object(extension_name, dn=extension_dn) |
66 |
|
66 |
|
67 |
wait_for_replication_and_postrun() |
67 |
wait_for_replication() |
68 |
udm.stop_cli_server() |
68 |
udm.stop_cli_server() |
69 |
|
69 |
|
70 |
with udm_test.UCSTestUDM() as udm: |
70 |
with udm_test.UCSTestUDM() as udm: |