Project

General

Profile

Bug #2852

Failing tests Unrecognised option '--name'

Added by Martin Bacovsky almost 7 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
High
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

There is bunch of failing tests in hammer-cli-foreman. The tests are failing with following exception:

HammerCLIForeman::Organization::CreateCommand::organizations disabled#test_0001_should return error:
Clamp::UsageError: Unrecognised option '--name'
/home/mbacovsk/.gem/ruby/gems/clamp-0.6.1/lib/clamp/option/parsing.rb:62:in `find_option'
/home/mbacovsk/.gem/ruby/gems/clamp-0.6.1/lib/clamp/option/parsing.rb:28:in `parse_options'
/home/mbacovsk/.gem/ruby/gems/clamp-0.6.1/lib/clamp/command.rb:52:in `parse'
/home/mbacovsk/.gem/ruby/bundler/gems/hammer-cli-30fa5166d086/lib/hammer_cli/abstract.rb:27:in `parse'
/home/mbacovsk/.gem/ruby/gems/clamp-0.6.1/lib/clamp/command.rb:66:in `run'
/home/mbacovsk/.gem/ruby/bundler/gems/hammer-cli-30fa5166d086/lib/hammer_cli/abstract.rb:19:in `run'
/home/mbacovsk/work/theforeman/hammer-cli-foreman/test/unit/organization_test.rb:14:in `block (2 levels) in it_should_fail_when_disabled'

This should be fixed by new ApiPie, merging https://github.com/theforeman/foreman/pull/817 and releasing new foreman-api gem

Associated revisions

Revision 05fd92f7 (diff)
Added by Martin Bacovsky almost 7 years ago

fixes #2852 - Failing tests Unrecognised option '--name'

Revision 44d1ebdd
Added by mbacovsky almost 7 years ago

Merge pull request #3 from mbacovsky/2852-foreman_api-update

fixes #2852 - Failing tests Unrecognised option '--name'

History

#1 Updated by Martin Bacovsky almost 7 years ago

  • Description updated (diff)
  • Status changed from New to Resolved

This is fixed in foreman_api >= 0.1.5

#2 Updated by Martin Bacovsky almost 7 years ago

  • Project changed from Hammer CLI to Foreman
  • Category changed from Foreman commands (obsolete) to 44

#3 Updated by Dominic Cleal over 6 years ago

  • Project changed from Foreman to Hammer CLI
  • Category deleted (44)

Also available in: Atom PDF