-
Notifications
You must be signed in to change notification settings - Fork 267
Testing Ipv6 only lookup family #7966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| user = provider.user("testuser").add() | ||
| client.sssd.domain["lookup_family_order"] = "ipv6_only" | ||
| ipv6_add = provider.host.conn.run("ip -6 addr show scope global | grep -oE 'inet6 [0-9a-f:]+' | awk '{print $2}'") | ||
| print(ipv6_add.stdout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgotten print
| client.sssd.start() | ||
|
|
||
| result = client.tools.id(user.name) | ||
| assert result is not None, f"{user.name} was not found, SSSD did not switch to IPv6 family!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You set ipv6_only - this means that the failover code is not switching . This code does not test failover but IPv6 connectivity.
It is unclear to me what you want to achieve/test. If it is variant of the other test I wrote, then you have to use ipv4_first and block ipv4 connectivity. That would trigger failover switch from 4 to 6.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am trying to test different values for lookup_family_order.
Yes, may be not good candidate of failover test, but intend to add to test ipv6_only options.
Will update this test case, but if I wanted to keep this test also, should I move it to other test suite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case I do not mind test location. It looks like good candidate for parametrized test.
fcc5f43 to
6b458ae
Compare
| :title: Only attempt to resolve hostnames to IPv6 address | ||
| :setup: | ||
| 1. Create user | ||
| 2. Set family_order to "ipv6_only" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we have ipv4_first set, not ipv6_only
| client.sssd.start() | ||
|
|
||
| result = client.tools.id(user.name) | ||
| assert result is not None, f"{user.name} was not found, SSSD did not switch to IPv6 family!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case I do not mind test location. It looks like good candidate for parametrized test.
| :setup: | ||
| 1. Create user | ||
| 2. Set family_order to "ipv6_only" | ||
| 3. Set IPv6 address in /etc/hosts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now you are setting IPv4 address. It would be good to mention that this address is ureachable (Set unreachable IPv4 address...)
|
Blocked by SSSD/sssd-test-framework#188 |
Signed-off-by: Madhuri Upadhye <[email protected]>
Signed-off-by: Madhuri Upadhye <[email protected]>
6b458ae to
8bcaf5e
Compare
f5d64b3 to
b854636
Compare
No description provided.