hammer_cli_katello 0.13.2 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,7 +43,9 @@ describe 'content-view create' do
43
43
 
44
44
  api_repositories = api_expects(:repositories, :index,
45
45
  'Find repositories belonging to product') do |par|
46
- par['product_id'] == product['id']
46
+ par['product_id'] == product['id'] &&
47
+ par['names'] == names &&
48
+ !par.key?('name')
47
49
  end
48
50
  api_repositories.returns(repositories)
49
51
 
@@ -71,7 +73,9 @@ describe 'content-view create' do
71
73
 
72
74
  api_repositories = api_expects(:repositories, :index,
73
75
  'Find repositories belonging to product') do |par|
74
- par['product_id'] == product['id']
76
+ par['product_id'] == product['id'] &&
77
+ par['names'] == names &&
78
+ !par.key?('name')
75
79
  end
76
80
  api_repositories.returns(repositories)
77
81
 
@@ -33,6 +33,12 @@ describe HammerCLIKatello::SearchOptionsCreators do
33
33
  )['name'].must_equal 'repo1'
34
34
  end
35
35
 
36
+ it 'handles multiple parameters' do
37
+ search_options_creators.create_repositories_search_options(
38
+ 'option_names' => ['repo1'], 'option_name' => 'repo2'
39
+ )['name'].must_equal(nil)
40
+ end
41
+
36
42
  it 'handles a single value product_id' do
37
43
  search_options_creators.create_repositories_search_options(
38
44
  'option_product_id' => 3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_katello
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.2
4
+ version: 0.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Price
@@ -34,7 +34,7 @@ authors:
34
34
  autorequire:
35
35
  bindir: bin
36
36
  cert_chain: []
37
- date: 2018-06-06 00:00:00.000000000 Z
37
+ date: 2018-06-28 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: hammer_cli_foreman
@@ -42,14 +42,14 @@ dependencies:
42
42
  requirements:
43
43
  - - "~>"
44
44
  - !ruby/object:Gem::Version
45
- version: '0.13'
45
+ version: 0.13.0
46
46
  type: :runtime
47
47
  prerelease: false
48
48
  version_requirements: !ruby/object:Gem::Requirement
49
49
  requirements:
50
50
  - - "~>"
51
51
  - !ruby/object:Gem::Version
52
- version: '0.13'
52
+ version: 0.13.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: hammer_cli_foreman_tasks
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -277,6 +277,7 @@ files:
277
277
  - lib/hammer_cli_katello/ping.rb
278
278
  - lib/hammer_cli_katello/product.rb
279
279
  - lib/hammer_cli_katello/product_content.rb
280
+ - lib/hammer_cli_katello/puppet_environment_name_resolvable.rb
280
281
  - lib/hammer_cli_katello/puppet_module.rb
281
282
  - lib/hammer_cli_katello/repository.rb
282
283
  - lib/hammer_cli_katello/repository_scoped_to_product.rb