Project

General

Profile

Actions

Bug #8765

closed

BATS tests failing - hammer can't find katello commands

Added by Stephen Benjamin almost 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

# (in test file fb-content-katello.bats, line 15)
#   `--name="Test Product" | grep -q "Product created"' failed
# /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
# Error: No such sub-command 'product'
# 
# See: 'hammer --help'
not ok 14 create package repository
# (in test file fb-content-katello.bats, line 21)
#   `--url https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/ | grep -q "Repository created"' failed
# /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
# Error: No such sub-command 'repository'
# 
# See: 'hammer --help'
not ok 15 sync repository
# (in test file fb-content-katello.bats, line 26)
#   `--product="Test Product" --name="Zoo" | grep -q success' failed
# /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
# Error: No such sub-command 'repository'
# 
# See: 'hammer --help'
not ok 16 create puppet repository
# (in test file fb-content-katello.bats, line 31)
#   `--product="Test Product" --content-type="puppet" --name "Puppet Modules" | grep -q "Repository created"' failed
# /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
# Error: No such sub-command 'repository'
# 
# See: 'hammer --help'
not ok 17 upload puppet module
# (in test file fb-content-katello.bats, line 38)
#   `--path="/tmp/stbenjam-dummy-0.2.0.tar.gz" | grep -q "Successfully uploaded"' failed
#   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#                                  Dload  Upload   Total   Spent    Left  Speed
# 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
102  2059    0  2059    0     0   3908      0 --:--:-- --:--:-- --:--:--  6073
# /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
# Error: No such sub-command 'repository'
# 
# See: 'hammer --help'
not ok 18 create lifecycle environment
# (in test file fb-content-katello.bats, line 43)
#   `--prior="Library" --name="Test" | grep -q "Environment created"' failed
# /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
# Error: No such sub-command 'lifecycle-environment'
# 
# See: 'hammer --help'
not ok 19 create content view
# (in test file fb-content-katello.bats, line 48)
#   `--name="Test CV" | grep -q "Content view created"' failed
# /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
# Error: No such sub-command 'content-view'
# 
# See: 'hammer --help'
not ok 20 add repo to content view
# (in test file fb-content-katello.bats, line 53)
#   `| grep Zoo | cut -d\| -f1 | egrep -i '[0-9]+')' failed
# /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
# Error: No such sub-command 'repository'
# 
# See: 'hammer --help'
not ok 21 add puppet module to content view
# (in test file fb-content-katello.bats, line 60)
#   `| grep Puppet | cut -d\| -f1 | egrep -i '[0-9]+')' failed
# /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
# Error: No such sub-command 'repository'
# 
# See: 'hammer --help'
not ok 22 publish content view
# (in test file fb-content-katello.bats, line 68)
#   `--name="Test CV" | grep -q success' failed
# /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
# Error: No such sub-command 'content-view'
# 
# See: 'hammer --help'
not ok 23 promote content view
# (in test file fb-content-katello.bats, line 73)
#   `--content-view="Test CV" --to-lifecycle-environment="Test" --version 1 | grep -q success' failed
# /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
# Error: No such sub-command 'content-view'
# 
# See: 'hammer --help'
not ok 24 create activation key
# (in test file fb-content-katello.bats, line 79)
#   `--unlimited-content-hosts=true | grep -q "Activation key created"' failed
# /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
# Error: No such sub-command 'activation-key'
# 
# See: 'hammer --help'
not ok 25 add subscription to activation key
# (in test file fb-content-katello.bats, line 85)
#   `--name="Test AK" | grep ID | tr -d ' ' | cut -d':' -f2)' failed
# /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
# Error: No such sub-command 'activation-key'
Actions #1

Updated by Stephen Benjamin almost 10 years ago

  • Subject changed from bats tests failing - hammer can't find katello commands to BATS tests failing - hammer can't find katello commands
Actions #2

Updated by Stephen Benjamin almost 10 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/263 added
  • Pull request deleted ()
Actions #3

Updated by Anonymous almost 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by Eric Helms almost 10 years ago

  • Translation missing: en.field_release set to 14
Actions #5

Updated by Eric Helms almost 10 years ago

  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF