foreman_discovery 7.0.0 → 7.0.1

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.
@@ -0,0 +1,25 @@
1
+ require 'test_plugin_helper'
2
+ require 'test_helper_discovery'
3
+
4
+ module ForemanDiscovery
5
+ module Concerns
6
+ class HostsControllerTest < ActionController::TestCase
7
+ tests ::HostsController
8
+
9
+ context 'hosts controller requests from discovered_hosts url' do
10
+ test 'get "host" params from "discovered_hosts" params' do
11
+ architecture = FactoryGirl.create(:architecture)
12
+ discovered_host_params = {
13
+ 'discovered_host' => { 'architecture_id' => architecture.id }
14
+ }
15
+
16
+ @request.stubs(:path).
17
+ returns(architecture_selected_discovered_hosts_path)
18
+
19
+ post :architecture_selected, discovered_host_params, set_session_user
20
+ assert assigns('architecture'), architecture
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
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: 7.0.0
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amos Benari
@@ -32,7 +32,7 @@ authors:
32
32
  autorequire:
33
33
  bindir: bin
34
34
  cert_chain: []
35
- date: 2016-08-30 00:00:00.000000000 Z
35
+ date: 2016-12-23 00:00:00.000000000 Z
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: deface
@@ -66,6 +66,7 @@ files:
66
66
  - app/controllers/concerns/foreman/controller/parameters/discovery_rule.rb
67
67
  - app/controllers/discovered_hosts_controller.rb
68
68
  - app/controllers/discovery_rules_controller.rb
69
+ - app/controllers/foreman_discovery/concerns/hosts_controller_extensions.rb
69
70
  - app/helpers/discovered_hosts_helper.rb
70
71
  - app/helpers/discovery_rules_helper.rb
71
72
  - app/lib/facter_utils.rb
@@ -135,6 +136,7 @@ files:
135
136
  - db/migrate/20150714144500_review_discovery_permissions.rb
136
137
  - db/migrate/20151023144501_regenerate_red_hat_kexec.rb
137
138
  - db/migrate/20160719124942_add_missing_view_permissions.rb
139
+ - db/migrate/20160818091421_add_permissions_from_default_roles.rb
138
140
  - db/seeds.d/50_discovery_templates.rb
139
141
  - db/seeds.d/60_discovery_proxy_feature.rb
140
142
  - db/seeds.d/70_discovery_mail_notification.rb
@@ -204,6 +206,7 @@ files:
204
206
  - test/functional/api/v2/fact_value_extensions_test.rb
205
207
  - test/functional/discovered_hosts_controller_test.rb
206
208
  - test/functional/discovery_rules_controller_test.rb
209
+ - test/functional/foreman_discovery/concerns/hosts_controller_extensions_test.rb
207
210
  - test/test_helper.rb
208
211
  - test/test_helper_discovery.rb
209
212
  - test/test_plugin_helper.rb
@@ -247,6 +250,7 @@ test_files:
247
250
  - test/functional/api/v2/fact_value_extensions_test.rb
248
251
  - test/functional/api/v2/discovered_hosts_controller_test.rb
249
252
  - test/functional/discovered_hosts_controller_test.rb
253
+ - test/functional/foreman_discovery/concerns/hosts_controller_extensions_test.rb
250
254
  - test/factories/discovery_rule_related.rb
251
255
  - test/unit/discovered_extensions_test.rb
252
256
  - test/unit/fact_parser_test.rb