foreman_discovery 23.0.1 → 24.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b69845e9ddecb5fa7fd464c1cf9bdc30aa7a4841adb8956f9e0f929778139ffc
4
- data.tar.gz: aedba4dfc194dad920ca0cc8c2688cdab598545130fee9bf0500ecebee042413
3
+ metadata.gz: fea157692374486c03ed7c9a3185704468ea18c30919abe85a1579eda158113e
4
+ data.tar.gz: 5fcf2c407782870e9513460057f7be04903073c0dfe11842f3a9038794014e68
5
5
  SHA512:
6
- metadata.gz: 2351e57e9372d5bb5623e8b6b8bd9152754fab12a6489c1a0e837eeff4c9a96091b1c1a57f25d810da562eafd15790b27eab59657062fcfb7aa3e6dbb3809ad6
7
- data.tar.gz: cac4119ca9883a44132b4d7af6a01f845f5162fcbd27c3f0c212092307a47a053586f9a3b1392dd5f91479641ea9f7d648de06b4244ff46884da85f40f21eed0
6
+ metadata.gz: 5517f989fb2bad25c8f55a6df4a2f19209f3f0e2b227c56d00bc2a088a9c71ee316fb211cd0ec9ddfb0184905c884498e2cbe0f53a0f2f062935b3f9619a232e
7
+ data.tar.gz: 7c383bc8724080672a9bcf62501356aa6389bf69444b4aef23388649627074f5d17ee3e60fba033d869762e734afe96841fddf0bb698e9e24ad21bd5721ab2d1
data/README.md CHANGED
@@ -26,11 +26,11 @@ instead of github.com issues. Please report issues there.
26
26
 
27
27
  There are unit and integration tests in the repository, to run them execute the following in the *Foreman core* directory:
28
28
 
29
- bundle exec rake test:discovery
29
+ bundle exec rake test:foreman_discovery
30
30
 
31
31
  It is possible to execute a single test, however the path must be *absolute* (e.g. use `$HOME` variable):
32
32
 
33
- bundle exec rake test:discovery TEST=~/work/foreman_discovery/test/unit/host_discovered_test.rb
33
+ bundle exec rake test:foreman_discovery TEST=~/work/foreman_discovery/test/unit/host_discovered_test.rb
34
34
 
35
35
  # Copyright
36
36
 
@@ -218,7 +218,7 @@ module Api
218
218
  :message => error_message
219
219
  }
220
220
  else
221
- process_success _("Discovered hosts are rebooting now")
221
+ process_success :success_msg => _("Discovered hosts are rebooting now")
222
222
  end
223
223
  end
224
224
 
@@ -1,9 +1,6 @@
1
1
  <% content_for(:javascripts) do %>
2
2
  <%= webpacked_plugins_js_for :'foreman_discovery' %>
3
3
  <% end %>
4
- <% content_for(:stylesheets) do %>
5
- <%= webpacked_plugins_css_for :'foreman_discovery' %>
6
- <% end %>
7
4
 
8
5
  <% content_for(:title, _("Discovered Hosts")) %>
9
6
 
@@ -1,9 +1,6 @@
1
1
  <% content_for(:javascripts) do %>
2
2
  <%= webpacked_plugins_js_for :'foreman_discovery' %>
3
3
  <% end %>
4
- <% content_for(:stylesheets) do %>
5
- <%= webpacked_plugins_css_for :'foreman_discovery' %>
6
- <% end %>
7
4
 
8
5
  <% content_for(:title, _("Discovered Rules")) %>
9
6
 
@@ -30,7 +30,7 @@ module ForemanDiscovery
30
30
 
31
31
  initializer 'foreman_discovery.register_plugin', :before => :finisher_hook do |app|
32
32
  Foreman::Plugin.register :foreman_discovery do
33
- requires_foreman '>= 3.8'
33
+ requires_foreman '>= 3.10'
34
34
  register_gettext
35
35
 
36
36
  # settings
@@ -75,11 +75,10 @@ module ForemanDiscovery
75
75
  setting "discovery_hostname",
76
76
  type: :array,
77
77
  default: ["discovery_bootif"],
78
+ validate: { presence: true },
78
79
  full_name: N_("Hostname facts"),
79
80
  description: N_("List of facts to use for the hostname (first wins)")
80
81
 
81
- validates "discovery_hostname", presence: true
82
-
83
82
  setting "discovery_auto",
84
83
  type: :boolean,
85
84
  default: false,
@@ -95,11 +94,10 @@ module ForemanDiscovery
95
94
  setting "discovery_prefix",
96
95
  type: :string,
97
96
  default: "mac",
97
+ validate: { presence: true },
98
98
  full_name: N_("Hostname prefix"),
99
99
  description: N_("The default prefix to use for the host name, must start with a letter")
100
100
 
101
- validates "discovery_prefix", presence: true
102
-
103
101
  setting "discovery_fact_column",
104
102
  type: :array,
105
103
  default: [],
@@ -367,7 +365,7 @@ module ForemanDiscovery
367
365
  end
368
366
 
369
367
  rake_tasks do
370
- load "discovery.rake"
368
+ load "foreman_discovery.rake"
371
369
  Rake::Task['db:seed'].enhance do
372
370
  ForemanDiscovery::Engine.load_seed
373
371
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanDiscovery
2
- VERSION = "23.0.1"
2
+ VERSION = "24.0.1"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  # Setup Tests
2
2
  namespace :test do
3
3
  desc "Test Discovery plugin"
4
- Rake::TestTask.new(:discovery) do |t|
4
+ Rake::TestTask.new(:foreman_discovery) do |t|
5
5
  test_dir = File.join(File.dirname(__FILE__), '..', 'test')
6
6
  t.libs << ["test",test_dir]
7
7
  if ENV['FILE'] || ENV['TEST']
@@ -14,13 +14,13 @@ namespace :test do
14
14
  end
15
15
  end
16
16
  Rake::Task[:test].enhance do
17
- Rake::Task['test:discovery'].invoke
17
+ Rake::Task['test:foreman_discovery'].invoke
18
18
  end
19
19
 
20
20
  load 'tasks/jenkins.rake'
21
21
  if Rake::Task.task_defined?(:'jenkins:unit')
22
22
  # The "unit" tests also include system tests
23
23
  Rake::Task["jenkins:unit"].enhance(['webpack:compile']) do
24
- Rake::Task['test:discovery'].invoke
24
+ Rake::Task['test:foreman_discovery'].invoke
25
25
  end
26
26
  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: 23.0.1
4
+ version: 24.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aditi Puntambekar
@@ -76,7 +76,7 @@ authors:
76
76
  autorequire:
77
77
  bindir: bin
78
78
  cert_chain: []
79
- date: 2024-01-25 00:00:00.000000000 Z
79
+ date: 2024-02-16 00:00:00.000000000 Z
80
80
  dependencies: []
81
81
  description: MaaS Discovery Plugin engine for Foreman
82
82
  email: gsutclif@redhat.com
@@ -213,7 +213,7 @@ files:
213
213
  - db/seeds.d/90_add_permissions_from_default_roles.rb
214
214
  - extra/discover-host
215
215
  - extra/generate-authors-file
216
- - lib/discovery.rake
216
+ - lib/foreman_discovery.rake
217
217
  - lib/foreman_discovery.rb
218
218
  - lib/foreman_discovery/engine.rb
219
219
  - lib/foreman_discovery/version.rb