foreman_discovery 18.0.0 → 18.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e5ed6f9be99d08e38902acdbfff3e02aa7b086415cc6c8208a446ad8195fe18
4
- data.tar.gz: cebfddeec98ce1ce01778dbe3c94fa1581132462a01e5ee04c2f78a6812a8c02
3
+ metadata.gz: 2a4a473961177e15c8f642ecfff5232f2bc5ce86c977221f9f08b42bd92962b8
4
+ data.tar.gz: a5243bf60845f3d846193f3e3b15c39e046779a065422c1da32a2190c2e3fb77
5
5
  SHA512:
6
- metadata.gz: 42a2c9cfe529fbf8e22c11ce4b7260ae6bd61d0005688b5b50199c6c7e2a432cbe8a99b1a4fd1f94757246892fa60426181382dd6de874bfe0d495d1e98b140c
7
- data.tar.gz: 5a151a76f41f68258a90154209c81e2fa3a16dc6049191269d8b261dca51d9c5ed536ad7c18180079d9186c58a80ed145640541bbd2534f6c666a78aea407cc8
6
+ metadata.gz: f19bce5fe35799eb89488f2ceda183c251e1d60f0c75aee74db8d1c6b7b3ffa60f694449c24a13fa336f347693b5ec3296c455d92eeb50b0afac40fe4086ad0f
7
+ data.tar.gz: 77a7b53a11fb373bb7eac8f98da5f6fa9ff1eb0836f9a322d1762ada91f94acf0f541a1e54acaf13a0c606f99d5d617a00dcea7eed6b0b323067c35d2862ae99
@@ -20,7 +20,7 @@ class DiscoveryRulesController < ApplicationController
20
20
  end
21
21
 
22
22
  def clone
23
- @discovery_rule = @discovery_rule.deep_clone except: [:name, :priority]
23
+ @discovery_rule.deep_clone except: [:name, :priority], include: [:organizations, :locations]
24
24
  @discovery_rule.priority = DiscoveryRule.suggest_priority
25
25
  end
26
26
 
@@ -1,3 +1,3 @@
1
1
  module ForemanDiscovery
2
- VERSION = "18.0.0"
2
+ VERSION = "18.0.2"
3
3
  end
@@ -83,9 +83,11 @@ class Api::V2::DiscoveredHostsControllerTest < ActionController::TestCase
83
83
  assert_equal hostgroup.medium_id, actual.medium_id
84
84
  assert_equal hostgroup.ptable_id, actual.ptable_id
85
85
  assert_equal hostgroup.domain_id, actual.domain_id
86
- assert_equal hostgroup.environment_id, actual.environment_id
87
- assert_equal hostgroup.puppet_proxy_id, actual.puppet_proxy_id
88
- assert_equal hostgroup.puppet_ca_proxy_id, actual.puppet_ca_proxy_id
86
+ if defined?(ForemanPuppet)
87
+ assert_equal hostgroup.environment_id, actual.environment_id
88
+ assert_equal hostgroup.puppet_proxy_id, actual.puppet_proxy_id
89
+ assert_equal hostgroup.puppet_ca_proxy_id, actual.puppet_ca_proxy_id
90
+ end
89
91
  assert actual.build?
90
92
  end
91
93
 
@@ -161,9 +161,11 @@ class DiscoveredHostsControllerTest < ActionController::TestCase
161
161
  assert_equal hostgroup.medium_id, actual.medium_id
162
162
  assert_equal hostgroup.ptable_id, actual.ptable_id
163
163
  assert_equal hostgroup.domain_id, actual.domain_id
164
- assert_equal hostgroup.environment_id, actual.environment_id
165
- assert_equal hostgroup.puppet_proxy_id, actual.puppet_proxy_id
166
- assert_equal hostgroup.puppet_ca_proxy_id, actual.puppet_ca_proxy_id
164
+ if defined?(ForemanPuppet)
165
+ assert_equal hostgroup.environment_id, actual.environment_id
166
+ assert_equal hostgroup.puppet_proxy_id, actual.puppet_proxy_id
167
+ assert_equal hostgroup.puppet_ca_proxy_id, actual.puppet_ca_proxy_id
168
+ end
167
169
  end
168
170
 
169
171
  def test_add_entry_to_nav_menu
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_discovery
3
3
  version: !ruby/object:Gem::Version
4
- version: 18.0.0
4
+ version: 18.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aditi Puntambekar
@@ -74,7 +74,7 @@ authors:
74
74
  autorequire:
75
75
  bindir: bin
76
76
  cert_chain: []
77
- date: 2021-09-20 00:00:00.000000000 Z
77
+ date: 2021-10-13 00:00:00.000000000 Z
78
78
  dependencies: []
79
79
  description: MaaS Discovery Plugin engine for Foreman
80
80
  email: gsutclif@redhat.com
@@ -360,12 +360,12 @@ test_files:
360
360
  - test/unit/discovered_mailer_test.rb
361
361
  - test/unit/discovery_taxonomy_extensions_test.rb
362
362
  - test/unit/lldp_neighbors_test.rb
363
- - test/unit/host_discovered_test.rb
364
363
  - test/unit/discovery_rule_test.rb
365
364
  - test/unit/fact_to_category_resolver_test.rb
366
365
  - test/unit/managed_extensions_test.rb
366
+ - test/unit/host_discovered_test.rb
367
+ - test/unit/discovered_extensions_test.rb
367
368
  - test/unit/discovery_attribute_set_test.rb
368
369
  - test/unit/fact_parser_test.rb
369
- - test/unit/discovered_extensions_test.rb
370
370
  - test/test_helper_discovery.rb
371
371
  - test/test_plugin_helper.rb