Skip to content

Commit

Permalink
Bump to 0.21.0 for Katello 3.15 (#724)
Browse files Browse the repository at this point in the history
* Update 3.15 API data

* Fix tests

undo test changes

* Bump to 0.21.0 for Katello 3.15
  • Loading branch information
jturel authored Feb 25, 2020
1 parent 3c82511 commit a348e30
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ rvm:
- 2.4
- 2.5
before_install:
- echo "gem 'hammer_cli_foreman', :git => 'https://github.com/theforeman/hammer-cli-foreman.git'" > Gemfile.local
- echo "gem 'hammer_cli', :git => 'https://github.com/theforeman/hammer-cli.git'" >> Gemfile.local
- gem update bundler
2 changes: 1 addition & 1 deletion hammer_cli_katello.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Gem::Specification.new do |gem|
gem.require_paths = ['lib']
gem.version = HammerCLIKatello.version

gem.add_dependency 'hammer_cli_foreman'
gem.add_dependency 'hammer_cli_foreman', '~> 2.0.0'
gem.add_dependency 'hammer_cli_foreman_tasks'
gem.add_dependency 'hammer_cli_foreman_bootdisk'
gem.add_dependency 'hammer_cli_foreman_docker'
Expand Down
2 changes: 1 addition & 1 deletion lib/hammer_cli_katello/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def request_headers

def execute
@failure = false
files = option_content
files = option_content.sort

if files.length.zero?
output.print_error _("Could not find any files matching PATH")
Expand Down
2 changes: 1 addition & 1 deletion lib/hammer_cli_katello/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module HammerCLIKatello
def self.version
@version ||= Gem::Version.new('0.21-master')
@version ||= Gem::Version.new('0.21.0')
end
end
2 changes: 1 addition & 1 deletion test/data/3.15/foreman_api.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions test/functional/host/extensions/update_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ module HammerCLIForeman
with_params('id' => host_id.to_s,
'organization_id' => organization_id,
'host' => {
'puppetclass_ids' => [],
'compute_attributes' => {},
'content_facet_attributes' => {
'content_view_id' => cv_id,
'lifecycle_environment_id' => env_id,
'kickstart_repository_id' => repo_id
}
},
'subscription_facet_attributes' => {}
})

cmd = "host update --id=#{host_id}"\
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
require File.join(File.dirname(__FILE__), './task_helper.rb')
require 'minitest/autorun'
require 'minitest/spec'
require 'mocha/setup'
require 'mocha/minitest'
require 'hammer_cli'

KATELLO_VERSION = Gem::Version.new(ENV['TEST_API_VERSION'] || '3.15')
Expand Down

0 comments on commit a348e30

Please sign in to comment.