Skip to content

Commit 6b458ae

Browse files
Test
Signed-off-by: Madhuri Upadhye <[email protected]>
1 parent b0e159f commit 6b458ae

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/tests/system/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ git+https://github.com/next-actions/pytest-mh
55
git+https://github.com/next-actions/pytest-ticket
66
git+https://github.com/next-actions/pytest-tier
77
git+https://github.com/next-actions/pytest-output
8-
git+https://github.com/SSSD/sssd-test-framework
8+
#git+https://github.com/SSSD/sssd-test-framework
9+
git+https://github.com/madhuriupadhye/sssd-test-framework@ipv6

src/tests/system/tests/test_failover.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_failover__connect_using_ipv4_second_family(client: Client, provider: Ge
116116
lambda client, sssd_service_user: (client.features["ipv6"]),
117117
"SSSD was built without support for running under non-root",
118118
)
119-
def test_failover__connect_using_ipv6_only(client: Client, provider: GenericProvider, sssd_service_user: str):
119+
def test_failover__connect_using_ipv6_first(client: Client, provider: GenericProvider, sssd_service_user: str):
120120
"""
121121
:title: Only attempt to resolve hostnames to IPv6 address
122122
:setup:
@@ -131,10 +131,11 @@ def test_failover__connect_using_ipv6_only(client: Client, provider: GenericProv
131131
:customerscenario: False
132132
"""
133133
user = provider.user("testuser").add()
134-
client.sssd.domain["lookup_family_order"] = "ipv6_only"
135-
ipv6_add = provider.host.conn.run("ip -6 addr show scope global | grep -oE 'inet6 [0-9a-f:]+' | awk '{print $2}'")
136-
print(ipv6_add.stdout)
137-
client.fs.append("/etc/hosts", f"{ipv6_add.stdout}\t{provider.host.hostname}")
134+
client.sssd.domain["lookup_family_order"] = "ipv4_first"
135+
#ipv6_add = provider.host.conn.run("ip -6 addr show scope global | grep -oE 'inet6 [0-9a-f:]+' | awk '{print $2}'")
136+
#print(ipv6_add.stdout)
137+
random_ipv4_adds = "10.37.153.122"
138+
client.fs.append("/etc/hosts", f"{random_ipv4_adds}\t{provider.host.hostname}")
138139
client.sssd.start()
139140

140141
result = client.tools.id(user.name)

0 commit comments

Comments
 (0)