Bug 910545
| Summary: | Confusing ipa tool online help organization | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Namita Soman <nsoman> |
| Component: | ipa | Assignee: | Rob Crittenden <rcritten> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | IDM QE LIST <seceng-idm-qe-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 | CC: | mgregg, mkosek, rcritten |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-3.2.1-1.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-13 11:43:59 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Namita Soman
2013-02-12 19:55:07 UTC
fixed upstream: master: 614082e6a6ba025583ce24a2cce94133997925d7 abe26d55c8f43e3a213fe831df7f0536d0600288 de1c4eeae2f3439c1550f9627f45adb4586fa83c 6ac0e9b90f14beba5e5a8857c358a292e218cd49 5ee2216f4973645f18f0ed8eac3c874d81e044ab 1e2437ece1f5d645ab5ab12628021798bb7b9e1a 5f5b4c3e5eec96821411685c7d9a80d85c15af07 ipa-3-1: 991f4719e06ef00409a0270e171c04f5b0e4e41b bd8d4ac043ae179bc40e8151c3c2676fd30e7bb5 9da7d1a3e41be1307c183c4fbd944aa2b25512b8 640c2550c3a5627f6823494b3129c8394a9024c9 bfb310f05717ef659cee2374b17e7537930cd500 6cb81489bf3a8d386be7f3311c33d3baa846d702 56659f36794348e75fb23e8c892f19fd95d01571 master: 8fcc8bc8d50d266b050c136de7a441d59e363d1b f16c100f1e72e8afbe26e12e7d236d3ef60f4433 ipa-3-1: 36bfda80717c09929a15147814f6e5ceea4eb60b a4b54aff311db67b832462b068a299dd73e06101 The fixes include: - Kerberos ticket not required to obtain help - Errors are output on stderr - ipa -h matches ipa help - ipa COMMAND --help matches ipa help COMMAND - ipa help prints help for the command, not all the commands This looks mostly resolved with one exception. cli parsing still seems to make the --help(or -h) option position dependant. works: ipa --help user Does not work: ipa user --help If this is expected, I think I can this ticket as verified. It isn't really position-dependent, it is topic help vs command help. ipa help <topic> or ipa --help <topic> can be used for the top-level topics like user, group, etc. ipa <command> --help can provide command-specific help, like for user-add, group-find, etc. But there is no ipa <topic> anything. Right, moving back to ON_QA. Verified using ipa-server-3.3.3-13.el7.x86_64 Test automation output: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: BZ910545 ipa-help-001 :: verify help for ipa :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: Executing: ipa > /tmp/tmpout.ipaserverinstall_BZ910545.out 2>&1 :: [ PASS ] :: verify error when running the command ipa with no help (Expected 2, got 2) :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should contain 'Error: Command not specified' :: [ PASS ] :: Running 'ipa help > /tmp/tmpout.ipaserverinstall_BZ910545.out' (Expected 0, got 0) :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should contain 'See "ipa help topics" for available help topics.' :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should contain 'See "ipa help <TOPIC>" for more information on a specific topic.' :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should contain 'See "ipa help commands" for the full list of commands.' :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should contain 'See "ipa <COMMAND> --help" for more information on a specific command.' :: [ PASS ] :: Running 'ipa --help' (Expected 0, got 0) :: [ LOG ] :: Duration: 3s :: [ LOG ] :: Assertions: 8 good, 0 bad :: [ PASS ] :: RESULT: BZ910545 ipa-help-001 :: verify help for ipa :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: BZ910545 ipa-help-002 :: verify help for ipa topic :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ PASS ] :: Running 'ipa help topics | wc -l > /tmp/tmpout.ipaserverinstall_BZ910545.out' (Expected 0, got 0) :: [ LOG ] :: Verifying that 29 topics are listed... :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should contain '29' :: [ LOG ] :: Duration: 1s :: [ LOG ] :: Assertions: 2 good, 0 bad :: [ PASS ] :: RESULT: BZ910545 ipa-help-002 :: verify help for ipa topic :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: BZ910545 ipa-help-003 :: verify help for ipa command :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ PASS ] :: Running 'ipa help commands | wc -l > /tmp/tmpout.ipaserverinstall_BZ910545.out' (Expected 0, got 0) :: [ LOG ] :: Verifying that 235 commands are listed.... :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should contain '235' :: [ LOG ] :: Duration: 1s :: [ LOG ] :: Assertions: 2 good, 0 bad :: [ PASS ] :: RESULT: BZ910545 ipa-help-003 :: verify help for ipa command :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: BZ910545 ipa-help-004 :: verify help for ipa command when using a topic :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: Executing: ipa trust > /tmp/tmpout.ipaserverinstall_BZ910545.out 2>&1 :: [ PASS ] :: verify help for ipa command when using a topic will provide topic info but give an error (Expected 1, got 1) :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should contain 'Manage trust relationship between IPA and Active Directory domains.' :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should contain 'ipa: ERROR: unknown command 'trust'' :: [ LOG ] :: Duration: 1s :: [ LOG ] :: Assertions: 3 good, 0 bad :: [ PASS ] :: RESULT: BZ910545 ipa-help-004 :: verify help for ipa command when using a topic :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: BZ910545 ipa-help-005 :: verify exit status for ipa command :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: Executing: ipa trust help > /tmp/tmpout.ipaserverinstall_BZ910545.out 2>&1 :: [ PASS ] :: verify exit status for ipa command will not provide topic info and give an error (Expected 1, got 1) :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should not contain 'Manage trust relationship between IPA and Active Directory domains.' :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should contain 'ipa: ERROR: unknown command 'trust'' :: [ LOG ] :: Duration: 1s :: [ LOG ] :: Assertions: 3 good, 0 bad :: [ PASS ] :: RESULT: BZ910545 ipa-help-005 :: verify exit status for ipa command :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: BZ910545 ipa-help-006 :: verify help when command and topic are same :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ PASS ] :: Running 'ipa passwd --help > /tmp/tmpout.ipaserverinstall_BZ910545.out' (Expected 0, got 0) :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should not contain 'EXAMPLES' :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should contain 'Options' :: [ PASS ] :: Running 'ipa help passwd > /tmp/tmpout.ipaserverinstall_BZ910545.out' (Expected 0, got 0) :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should not contain 'Options' :: [ PASS ] :: File '/tmp/tmpout.ipaserverinstall_BZ910545.out' should contain 'EXAMPLES' :: [ LOG ] :: Duration: 2s :: [ LOG ] :: Assertions: 6 good, 0 bad :: [ PASS ] :: RESULT: BZ910545 ipa-help-006 :: verify help when command and topic are same This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |