-
Notifications
You must be signed in to change notification settings - Fork 252
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
Test: housekeeping: test_sss_ssh_knownhosts.py => test_ipa.py #7478
Test: housekeeping: test_sss_ssh_knownhosts.py => test_ipa.py #7478
Conversation
@danlavu what could be the |
03a1871
to
7aa9b3d
Compare
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.
LGTM
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.
As a part of housekeeping, we're also clarifying the docs, so it's clear what the test is doing and trimming unnecessary verbiage.
:title: sss_ssh_knownhosts returns public keys by name
:setup:
1. Create IPA host "ssh.ipa.test", public keys and IP resolvable via DNS
2. Enable ssh responder
3. Start SSSD
:steps:
1. Run "sss_ssh_knownhosts ssh.ipa.test"
:expectedresults:
1. All public keys were printed
:customerscenario: False
"""
can be revised to
:title: sss_ssh_knownhosts returns public keys by name
:setup:
1. Create host with SSH key
2. Configure SSSD with SSH responder
3. Start SSSD
:steps:
1. Lookup SSH key
:expectedresults:
1. All public keys were printed
:customerscenario: False
"""
- The topology is IPA, so saying it's IPA is redundant.
- Resolvable by DNS, that can be assumed.
- Actual hostname, it doesn't really add anything to describing what the test does, in actually I think it overly complicates it.
I think one or two sentences at the top describing what the feature does. Question, should this be an IPA test or is it testing the command sss_ssh_knownhostsproxy? From the name I think tools, so that should be the requirement, if you think this more about testing the retrieval of the public host key from IPA, we should change this to test_ipa__hostkeys or something.
e464771
to
89dad7e
Compare
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.
Other than that, it looks great, thank you!
89dad7e
to
6d2f112
Compare
All 'system' tests were failing. |
Update the docstring of each test. Update the test case method name. Added assertion error messages on failures. Signed-off-by: Madhuri Upadhye <[email protected]>
6d2f112
to
a6b7a92
Compare
@alexey-tikhonov these have been fixed |
Added assertion error messages on failures.