Skip to content

Commit 6232066

Browse files
features: Add topologies without kcm and nfs for sudo tests
1 parent c8ed040 commit 6232066

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

sssd_test_framework/topology.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ def test_ldap(client: Client, ldap: LDAP):
4242
assert True
4343
"""
4444

45+
BareClient = SSSDTopologyMark(
46+
name="bare_client",
47+
topology=Topology(TopologyDomain("sssd", client=1)),
48+
controller=ClientTopologyController(),
49+
fixtures=dict(client="sssd.client[0]", provider="sssd.client[0]"),
50+
)
51+
"""
52+
.. topology-mark:: KnownTopology.BareClient
53+
"""
54+
4555
Client = SSSDTopologyMark(
4656
name="client",
4757
topology=Topology(TopologyDomain("sssd", client=1, kdc=1)),
@@ -72,6 +82,17 @@ def test_ldap(client: Client, ldap: LDAP):
7282
.. topology-mark:: KnownTopology.GDM_IPA
7383
"""
7484

85+
BareLDAP = SSSDTopologyMark(
86+
name="bare_ldap",
87+
topology=Topology(TopologyDomain("sssd", client=1, ldap=1)),
88+
controller=LDAPTopologyController(),
89+
domains=dict(test="sssd.ldap[0]"),
90+
fixtures=dict(client="sssd.client[0]", ldap="sssd.ldap[0]", provider="sssd.ldap[0]"),
91+
)
92+
"""
93+
.. topology-mark:: KnownTopology.BareLDAP
94+
"""
95+
7596
LDAP = SSSDTopologyMark(
7697
name="ldap",
7798
topology=Topology(TopologyDomain("sssd", client=1, ldap=1, nfs=1, kdc=1)),
@@ -85,6 +106,17 @@ def test_ldap(client: Client, ldap: LDAP):
85106
.. topology-mark:: KnownTopology.LDAP
86107
"""
87108

109+
BareIPA = SSSDTopologyMark(
110+
name="bareipa",
111+
topology=Topology(TopologyDomain("sssd", client=1, ipa=1)),
112+
controller=IPATopologyController(),
113+
domains=dict(test="sssd.ipa[0]"),
114+
fixtures=dict(client="sssd.client[0]", ipa="sssd.ipa[0]", provider="sssd.ipa[0]"),
115+
)
116+
"""
117+
.. topology-mark:: KnownTopology.BareIPA
118+
"""
119+
88120
IPA = SSSDTopologyMark(
89121
name="ipa",
90122
topology=Topology(TopologyDomain("sssd", client=1, ipa=1, nfs=1)),
@@ -96,6 +128,17 @@ def test_ldap(client: Client, ldap: LDAP):
96128
.. topology-mark:: KnownTopology.IPA
97129
"""
98130

131+
BareAD = SSSDTopologyMark(
132+
name="bare_ad",
133+
topology=Topology(TopologyDomain("sssd", client=1, ad=1)),
134+
controller=ADTopologyController(),
135+
domains=dict(test="sssd.ad[0]"),
136+
fixtures=dict(client="sssd.client[0]", ad="sssd.ad[0]", provider="sssd.ad[0]"),
137+
)
138+
"""
139+
.. topology-mark:: KnownTopology.BareAD
140+
"""
141+
99142
AD = SSSDTopologyMark(
100143
name="ad",
101144
topology=Topology(TopologyDomain("sssd", client=1, ad=1, nfs=1)),
@@ -171,6 +214,11 @@ def test_ldap(client: Client, provider: GenericProvider):
171214
assert True
172215
"""
173216

217+
AnyBareProvider = [KnownTopology.BareAD, KnownTopology.BareIPA, KnownTopology.BareLDAP, KnownTopology.BareClient]
218+
"""
219+
.. topology-mark:: KnownTopologyGroup.AnyBareProvider
220+
"""
221+
174222
AnyProvider = [KnownTopology.AD, KnownTopology.IPA, KnownTopology.LDAP, KnownTopology.Samba]
175223
"""
176224
.. topology-mark:: KnownTopologyGroup.AnyProvider

0 commit comments

Comments
 (0)