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 - Simple CLI tests are failing with -s parameter
Summary: Simple CLI tests are failing with -s parameter
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: Tomas Strachota
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-07-26 11:29 UTC by Lukas Zapletal
Modified: 2014-01-27 13:34 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-01 09:52:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.