Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sssd_test_framework/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def test_ldap(client: Client, ldap: LDAP):
name="gdm",
topology=Topology(TopologyDomain("sssd", client=1, ipa=1, keycloak=1)),
controller=GDMTopologyController(),
domains=dict(test="sssd.ipa[0]"),
fixtures=dict(client="sssd.client[0]", ipa="sssd.ipa[0]", provider="sssd.ipa[0]", keycloak="sssd.keycloak[0]"),
)
"""
Expand Down
13 changes: 13 additions & 0 deletions sssd_test_framework/topology_controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,19 @@ def topology_setup(self, client: ClientHost, ipa: IPAHost, keycloak: KeycloakHos

self.logger.info(f"Enrolling IPA server {ipa.hostname} into {keycloak.hostname} by creating an IdP client")

self.logger.info(f"Enrolling {client.hostname} into {ipa.domain}")

# Remove any existing Kerberos configuration and keytab
client.fs.rm("/etc/krb5.conf")
client.fs.rm("/etc/krb5.keytab")

# Backup ipa-client-install files
client.fs.backup("/etc/ipa")
client.fs.backup("/var/lib/ipa-client")

# Join ipa domain
client.conn.exec(["realm", "join", ipa.domain], input=ipa.adminpw)
Comment thread
spoore1 marked this conversation as resolved.

# Create an IdP client
keycloak.kclogin()
keycloak.conn.run(
Expand Down
2 changes: 1 addition & 1 deletion sssd_test_framework/utils/gdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def assert_text(self, word: str) -> bool:
if not self.init_completed:
self.init()

result = self.host.conn.exec([*self.cmd, "assert-text", word])
result = self.host.conn.exec([*self.cmd, "assert-text", word], raise_on_error=False)
return result.rc == 0

def click_on(self, word: str) -> bool:
Expand Down
Loading