Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 725719

Summary: Simple CLI tests are failing with -s parameter
Product: Red Hat Satellite Reporter: Lukas Zapletal <lzap>
Component: katello-agentAssignee: Tomas Strachota <tstrachota>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: gkhachik
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-01 09:52:26 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:
Bug Depends On:    
Bug Blocks: 747354    

Description Lukas Zapletal 2011-07-26 11:29:32 UTC
Description of problem:

# scripts/test/katello-cli-simple-test.sh -s

# tail -f -n100 ~/.katello/client.log

2011-07-26 13:26:51,739 [ERROR][MainThread] error() @ base.py:169 - Traceback (most recent call last):
  File "/data/work/CloudForms/katello/cli/src/katello/client/cli/base.py", line 209, in main
    return command.main(command_args)
  File "/data/work/CloudForms/katello/cli/src/katello/client/core/base.py", line 330, in main
    return self.run()
  File "/data/work/CloudForms/katello/cli/src/katello/client/core/shell_command.py", line 45, in run
    shell.cmdloop()
  File "/usr/lib/python2.7/cmd.py", line 141, in cmdloop
    line = self.precmd(line)
  File "/data/work/CloudForms/katello/cli/src/katello/client/shell.py", line 109, in precmd
    parts = parse_tokens(line)
  File "/data/work/CloudForms/katello/cli/src/katello/client/core/utils.py", line 300, in parse_tokens
    if tok[0] == '"' or tok[0] == "'":
IndexError: string index out of range

Comment 1 Lukas Zapletal 2011-07-28 15:28:13 UTC
I think this is not a problem of the shell itself. It occurs when I try to insert invalid statement:

> repo status --id=

I have tried except block and the exception is nicer now.

853b661 Bug 725719 - Simple CLI tests are failing with -s parameter

But I have found its more problem of our tests. The REPO_ID is not run when I run 

# scripts/test/katello-cli-simple-test.sh provider

its not determined correctly

REPO_ID=`$CMD repo list --org="$FIRST_ORG" | grep $REPO | grep -i id | awk '{print $2}'`

I guess something is wrong with my setup. Closing.

Comment 3 Garik Khachikyan 2012-02-24 12:16:49 UTC
Lukas,

could you please guide me where to find the script in comment#0 (for verifying this issue).

Comment 4 Tomas Strachota 2012-02-24 12:39:55 UTC
It's our system tests in /scripts/system-test/cli-system-test. They used to have different name.

Comment 7 Garik Khachikyan 2012-03-01 09:52:26 UTC
# CLOSE

Well I think our tests are failing periodically from time to time :) so it's normal process.