Imported Debian patch 4.7.2-3
This commit is contained in:
committed by
Mario Fetka
parent
27edeba051
commit
8bc559c5a1
@@ -43,7 +43,6 @@ DEFAULT_OUTPUT_DICT = {
|
||||
"admin_password": "Secret123",
|
||||
"domain_level": MAX_DOMAIN_LEVEL,
|
||||
"log_journal_since": "-1h",
|
||||
"fips_mode": False,
|
||||
}
|
||||
|
||||
DEFAULT_OUTPUT_ENV = {
|
||||
@@ -63,7 +62,6 @@ DEFAULT_OUTPUT_ENV = {
|
||||
"IPADEBUG": "",
|
||||
"DOMAINLVL": str(MAX_DOMAIN_LEVEL),
|
||||
"LOG_JOURNAL_SINCE": "-1h",
|
||||
"IPA_FIPS_MODE": "",
|
||||
}
|
||||
|
||||
DEFAULT_INPUT_ENV = {
|
||||
@@ -84,7 +82,7 @@ def extend_dict(defaults, *others, **kwargs):
|
||||
return copy.deepcopy(result)
|
||||
|
||||
|
||||
class CheckConfig:
|
||||
class CheckConfig(object):
|
||||
def check_config(self, conf):
|
||||
pass
|
||||
|
||||
@@ -239,15 +237,6 @@ class TestComplexConfig(CheckConfig):
|
||||
dict(name='master.ipadomain2.test', ip='192.0.2.65',
|
||||
host_type=None),
|
||||
]),
|
||||
dict(name='adsubdomain.test', type='AD_SUBDOMAIN', hosts=[
|
||||
dict(name='child_ad', ip='192.0.2.77', role='ad_subdomain',
|
||||
host_type=None),
|
||||
]),
|
||||
dict(name='adtreedomain.test', type='AD_TREEDOMAIN', hosts=[
|
||||
dict(name='tree_ad', ip='192.0.2.88', role='ad_treedomain',
|
||||
host_type=None),
|
||||
]),
|
||||
|
||||
],
|
||||
)
|
||||
extra_input_env = dict(
|
||||
@@ -273,12 +262,6 @@ class TestComplexConfig(CheckConfig):
|
||||
|
||||
MASTER_env3='master.ipadomain2.test',
|
||||
BEAKERMASTER1_IP_env3='192.0.2.65',
|
||||
|
||||
AD_SUBDOMAIN_env4='child_ad.adsubdomain.test',
|
||||
BEAKERAD_SUBDOMAIN1_IP_env4='192.0.2.77',
|
||||
|
||||
AD_TREEDOMAIN_env5='tree_ad.adtreedomain.test',
|
||||
BEAKERAD_TREEDOMAIN1_IP_env5='192.0.2.88',
|
||||
)
|
||||
extra_output_dict = dict(
|
||||
domains=[
|
||||
@@ -370,37 +353,9 @@ class TestComplexConfig(CheckConfig):
|
||||
),
|
||||
],
|
||||
),
|
||||
dict(
|
||||
type="AD_SUBDOMAIN",
|
||||
name="adsubdomain.test",
|
||||
hosts=[
|
||||
dict(
|
||||
name='child_ad.adsubdomain.test',
|
||||
ip="192.0.2.77",
|
||||
external_hostname="child_ad.adsubdomain.test",
|
||||
role="ad_subdomain",
|
||||
host_type=None,
|
||||
),
|
||||
],
|
||||
),
|
||||
dict(
|
||||
type="AD_TREEDOMAIN",
|
||||
name="adtreedomain.test",
|
||||
hosts=[
|
||||
dict(
|
||||
name='tree_ad.adtreedomain.test',
|
||||
ip="192.0.2.88",
|
||||
external_hostname="tree_ad.adtreedomain.test",
|
||||
role="ad_treedomain",
|
||||
host_type=None,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
],
|
||||
)
|
||||
extra_output_env = extend_dict(
|
||||
extra_input_env,
|
||||
extra_output_env = extend_dict(extra_input_env,
|
||||
DOMAIN_env1="ipadomain.test",
|
||||
RELM_env1="IPADOMAIN.TEST",
|
||||
BASEDN_env1="dc=ipadomain,dc=test",
|
||||
@@ -479,30 +434,10 @@ class TestComplexConfig(CheckConfig):
|
||||
MASTER1_env3="master.ipadomain2.test",
|
||||
BEAKERMASTER1_env3="master.ipadomain2.test",
|
||||
BEAKERMASTER1_IP_env3="192.0.2.65",
|
||||
|
||||
DOMAIN_env4="adsubdomain.test",
|
||||
RELM_env4="ADSUBDOMAIN.TEST",
|
||||
AD_SUBDOMAIN_env4='child_ad.adsubdomain.test',
|
||||
AD_SUBDOMAIN1_env4='child_ad.adsubdomain.test',
|
||||
BEAKERAD_SUBDOMAIN1_IP_env4='192.0.2.77',
|
||||
BEAKERAD_SUBDOMAIN1_env4='child_ad.adsubdomain.test',
|
||||
BEAKERAD_SUBDOMAIN_IP_env4='192.0.2.77',
|
||||
BEAKERAD_SUBDOMAIN_env4='child_ad.adsubdomain.test',
|
||||
BASEDN_env4='dc=adsubdomain,dc=test',
|
||||
|
||||
DOMAIN_env5="adtreedomain.test",
|
||||
RELM_env5="ADTREEDOMAIN.TEST",
|
||||
AD_TREEDOMAIN_env5='tree_ad.adtreedomain.test',
|
||||
AD_TREEDOMAIN1_env5='tree_ad.adtreedomain.test',
|
||||
BEAKERAD_TREEDOMAIN1_IP_env5='192.0.2.88',
|
||||
BEAKERAD_TREEDOMAIN1_env5='tree_ad.adtreedomain.test',
|
||||
BEAKERAD_TREEDOMAIN_IP_env5='192.0.2.88',
|
||||
BEAKERAD_TREEDOMAIN_env5='tree_ad.adtreedomain.test',
|
||||
BASEDN_env5='dc=adtreedomain,dc=test',
|
||||
)
|
||||
|
||||
def check_config(self, conf):
|
||||
assert len(conf.domains) == 5
|
||||
assert len(conf.domains) == 3
|
||||
main_dom = conf.domains[0]
|
||||
(client1, client2, extra, extram1, extram2, _master,
|
||||
replica1, replica2) = sorted(main_dom.hosts, key=lambda h: h.role)
|
||||
@@ -528,13 +463,3 @@ class TestComplexConfig(CheckConfig):
|
||||
assert ad_dom.roles == ['ad']
|
||||
assert ad_dom.static_roles == ('ad',)
|
||||
assert ad_dom.extra_roles == []
|
||||
|
||||
ad_sub_domain = conf.domains[3]
|
||||
assert ad_sub_domain.roles == ['ad_subdomain']
|
||||
assert ad_sub_domain.static_roles == ('ad_subdomain',)
|
||||
assert ad_sub_domain.extra_roles == []
|
||||
|
||||
ad_tree_domain = conf.domains[4]
|
||||
assert ad_tree_domain.roles == ['ad_treedomain']
|
||||
assert ad_tree_domain.static_roles == ('ad_treedomain',)
|
||||
assert ad_tree_domain.extra_roles == []
|
||||
|
||||
Reference in New Issue
Block a user