foreman_discovery 11.0.0 → 12.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +5 -5
  2. data/app/controllers/api/v2/discovered_hosts_controller.rb +1 -2
  3. data/app/controllers/concerns/foreman/controller/discovered_extensions.rb +1 -1
  4. data/app/controllers/discovered_hosts_controller.rb +21 -11
  5. data/app/controllers/foreman_discovery/concerns/hosts_controller_extensions.rb +1 -1
  6. data/app/helpers/discovered_hosts_helper.rb +9 -11
  7. data/app/models/discovery_rule.rb +3 -0
  8. data/app/models/host/discovered.rb +59 -19
  9. data/app/models/setting/discovered.rb +1 -0
  10. data/app/services/foreman_discovery/fact_parser.rb +6 -2
  11. data/app/services/foreman_discovery/ui_notifications/new_host.rb +3 -1
  12. data/app/views/dashboard/_discovery_widget_host_list.html.erb +1 -1
  13. data/app/views/discovered_hosts/_discovered_hosts_list.html.erb +2 -3
  14. data/app/views/discovered_hosts/_selected_hosts.html.erb +1 -1
  15. data/app/views/discovered_hosts/index.html.erb +0 -2
  16. data/app/views/discovered_hosts/multiple_auto_provision.html.erb +4 -0
  17. data/app/views/discovered_hosts/multiple_reboot.html.erb +4 -0
  18. data/app/views/discovered_hosts/show.html.erb +27 -15
  19. data/app/views/discovery_rules/_form.html.erb +9 -3
  20. data/app/views/discovery_rules/edit.html.erb +1 -1
  21. data/app/views/discovery_rules/index.html.erb +2 -2
  22. data/app/views/foreman_discovery/debian_kexec.erb +1 -1
  23. data/app/views/foreman_discovery/redhat_kexec.erb +1 -1
  24. data/config/as_deprecation_whitelist.yaml +395 -0
  25. data/config/routes.rb +7 -5
  26. data/db/migrate/20171222120314_add_constraints_on_discovery_rules_hostgroups.rb +10 -0
  27. data/db/migrate/20180412124505_add_priority_score_to_discovery_rules.rb +24 -0
  28. data/extra/discover-host +7 -5
  29. data/extra/discovery/simple-bond.json +167 -0
  30. data/lib/foreman_discovery/engine.rb +9 -3
  31. data/lib/foreman_discovery/version.rb +1 -1
  32. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  33. data/locale/ca/foreman_discovery.edit.po +148 -221
  34. data/locale/ca/foreman_discovery.po +25 -19
  35. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  36. data/locale/de/foreman_discovery.edit.po +147 -221
  37. data/locale/de/foreman_discovery.po +26 -20
  38. data/locale/en/foreman_discovery.edit.po +106 -98
  39. data/locale/en/foreman_discovery.po +24 -18
  40. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  41. data/locale/en_GB/foreman_discovery.edit.po +149 -222
  42. data/locale/en_GB/foreman_discovery.po +26 -20
  43. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  44. data/locale/es/foreman_discovery.edit.po +149 -222
  45. data/locale/es/foreman_discovery.po +26 -20
  46. data/locale/foreman_discovery.pot +115 -103
  47. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  48. data/locale/fr/foreman_discovery.edit.po +147 -221
  49. data/locale/fr/foreman_discovery.po +26 -20
  50. data/locale/gl/foreman_discovery.edit.po +147 -220
  51. data/locale/gl/foreman_discovery.po +24 -18
  52. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  53. data/locale/it/foreman_discovery.edit.po +148 -221
  54. data/locale/it/foreman_discovery.po +25 -19
  55. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  56. data/locale/ja/foreman_discovery.edit.po +149 -222
  57. data/locale/ja/foreman_discovery.po +26 -20
  58. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  59. data/locale/ko/foreman_discovery.edit.po +149 -221
  60. data/locale/ko/foreman_discovery.po +26 -20
  61. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  62. data/locale/pt_BR/foreman_discovery.edit.po +149 -222
  63. data/locale/pt_BR/foreman_discovery.po +26 -20
  64. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  65. data/locale/ru/foreman_discovery.edit.po +152 -223
  66. data/locale/ru/foreman_discovery.po +26 -20
  67. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  68. data/locale/sv_SE/foreman_discovery.edit.po +147 -220
  69. data/locale/sv_SE/foreman_discovery.po +24 -18
  70. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  71. data/locale/zh_CN/foreman_discovery.edit.po +155 -224
  72. data/locale/zh_CN/foreman_discovery.po +26 -20
  73. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  74. data/locale/zh_TW/foreman_discovery.edit.po +151 -222
  75. data/locale/zh_TW/foreman_discovery.po +26 -20
  76. data/test/functional/api/v2/discovered_hosts_controller_test.rb +2 -0
  77. data/test/functional/api/v2/discovery_rules_controller_test.rb +96 -9
  78. data/test/functional/api/v2/settings_controller_test.rb +22 -0
  79. data/test/functional/discovered_hosts_controller_test.rb +20 -21
  80. data/test/functional/discovery_rules_controller_test.rb +5 -4
  81. data/test/integration/discovered_hosts_test.rb +20 -10
  82. data/test/models/setting_test.rb +11 -0
  83. data/test/test_helper_discovery.rb +1 -0
  84. data/test/unit/discovered_extensions_test.rb +2 -13
  85. data/test/unit/discovery_rule_test.rb +87 -1
  86. data/test/unit/fact_parser_test.rb +2 -2
  87. data/test/unit/host_discovered_test.rb +60 -28
  88. data/test/unit/ui_notifications/destroy_host_test.rb +14 -4
  89. data/test/unit/ui_notifications/new_host_test.rb +8 -1
  90. metadata +22 -4
@@ -0,0 +1,4 @@
1
+ <%= render 'selected_hosts', :hosts => @hosts %>
2
+
3
+ <%= form_tag(submit_multiple_auto_provision_discovered_hosts_path(:host_ids => params[:host_ids]), {:method => :put}) do -%>
4
+ <% end %><br />
@@ -0,0 +1,4 @@
1
+ <%= render 'selected_hosts', :hosts => @hosts %>
2
+
3
+ <%= form_tag(submit_multiple_reboot_discovered_hosts_path(:host_ids => params[:host_ids]), {:method => :put}) do -%>
4
+ <% end %><br />
@@ -16,16 +16,19 @@
16
16
  </h4>
17
17
  </div>
18
18
  <div id="highlights-panel" class="panel-collapse collapse facts-panel in" >
19
- <table class="table table-bordered table-condensed table-fixed">
19
+ <table class="<%= table_css_classes('table-condensed') %>">
20
20
  <% @categories[0].sort.each do |key, val| %>
21
- <tr id="fact-<%= key.try(:downcase) %>" class="">
22
- <th class="ellipsis" width="40%"> <strong> <%= key %> </strong></th>
23
- <td><%= val %></td>
24
- </tr>
25
- <% end -%>
21
+ <tr id="fact-<%= key.try(:downcase) %>" class="">
22
+ <th class="ellipsis" width="40%"> <strong> <%= key %> </strong></th>
23
+ <td><%= val %></td>
24
+ </tr>
25
+ <% end -%>
26
26
  </table>
27
27
  </div>
28
28
  </div>
29
+ </div>
30
+
31
+ <div class="col-md-6">
29
32
  <% unless @interfaces.empty? %>
30
33
  <div class="panel panel-default">
31
34
  <div class="panel-heading" role="tab">
@@ -36,7 +39,7 @@
36
39
  </h4>
37
40
  </div>
38
41
  <div id="interfaces-panel" class="panel-collapse collapse facts-panel in" >
39
- <table class="table table-bordered table-condensed table-fixed" id="interfaceList">
42
+ <table class="<%= table_css_classes('table-condensed table-fixed') %>" id="interfaceList">
40
43
  <tr>
41
44
  <th class="hidden-xs " width="12%"><%= _('Type') %></th>
42
45
  <th class="hidden-xs "><%= _('Identifier') %></th>
@@ -56,12 +59,20 @@
56
59
  </div>
57
60
  <% end %>
58
61
  </div>
62
+ </div>
59
63
 
60
- <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
61
- <div class="col-md-6">
64
+ <div class="row">
65
+ <div class="col-md-12">
66
+ <%= link_to(_("Collapse All"),"#", :id => "expand_all", :class => "btn btn-default pull-right", style: 'margin-bottom: 1rem') -%>
67
+ </div>
68
+ </div>
69
+
70
+ <div class="row">
71
+ <div class="col-md-12">
72
+ <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
62
73
  <% @categories.each_with_index do |val, index| %>
63
74
  <% next if index == 0 || val.empty? %>
64
- <div id="category-<%= @categories_names[index].downcase %>" class="panel panel-default">
75
+ <div id="category-<%= @categories_names[index].downcase %>" class="panel panel-default" style="margin-bottom: 1rem">
65
76
  <div class="panel-heading" role="tab">
66
77
  <h4 class="panel-title">
67
78
  <a role="button" class="expendable-link" data-toggle="collapse" data-parent="#accordion" href="#<%= @categories_names[index].to_s + "panel" %>" aria-expanded="true">
@@ -69,14 +80,14 @@
69
80
  </a>
70
81
  </h4>
71
82
  </div>
72
- <div id="<%= @categories_names[index].to_s + "panel" %>" class="panel-collapse collapse facts-panel" role="tabpanel">
73
- <table class="table table-bordered table-condensed table-fixed">
74
- <% val.sort.each do |key, value| %>
83
+ <div id="<%= @categories_names[index].to_s + "panel" %>" class="panel-collapse collapse in facts-panel" role="tabpanel">
84
+ <table class="<%= table_css_classes('table-condensed table-fixed') %>">
85
+ <% val.sort.each do |key, value| %>
75
86
  <tr class="">
76
87
  <th width="40%" class="ellipsis"><strong> <%= key %> </strong> </th>
77
88
  <td class="ellipsis"> <%= value %> </td>
78
89
  </tr>
79
- <% end %>
90
+ <% end %>
80
91
  </table>
81
92
  </div>
82
93
  </div>
@@ -100,9 +111,10 @@
100
111
  $('.primary-flag').tooltip();
101
112
  $('.provision-flag').tooltip();
102
113
 
114
+ expand_all_toggle_action = { 'Expand All': 'show', 'Collapse All': 'hide' };
103
115
  $('#expand_all').on('click', function () {
104
- $('#accordion .panel-collapse').collapse('toggle');
105
116
  $(this).text(function(i, text){
117
+ $('#accordion .panel-collapse').collapse(expand_all_toggle_action[text]);
106
118
  return text === "Expand All" ? "Collapse All" : "Expand All";
107
119
  })
108
120
  });
@@ -16,18 +16,24 @@
16
16
  <div class="tab-pane active" id="primary">
17
17
  <%= text_f f, :name %>
18
18
  <%= autocomplete_f f, :search,
19
- :path => "discovered_hosts",
19
+ :path => discovered_hosts_path,
20
20
  :control_group_id => 'search_group', :size => 'col-md-9' %>
21
21
  <%= select_f f, :hostgroup_id, accessible_resource_records(:hostgroup, :title).to_a, :id, :to_label, { :include_blank => false },
22
22
  { :help_inline => _('Target host group for this rule with all properties set') } %>
23
23
  <%= text_f f, :hostname,
24
24
  :label_help => render('discovery_rules/template_inline').html_safe,
25
25
  :label_help_options => {:title => _("Hostname for provisioned hosts"), :'data-placement' => 'bottom' } %>
26
- <%= number_f f, :max_count, :label => _('Hosts Limit'), :help_inline => _('Maximum hosts provisioned with this rule (0 = unlimited)'), :min => 0, :max => (2**31 - 1) %>
27
- <%= number_f f, :priority, :help_inline => _('Rule priority (lower integer means higher priority)'), :min => 0, :max => (2**31 - 1) %>
26
+ <%= counter_f f, :max_count, :label => _('Hosts Limit'), :help_inline => _('Maximum hosts provisioned with this rule (0 = unlimited)'), :min => 0 %>
27
+ <%= counter_f f, :priority, :help_inline => _('Rule priority (lower integer means higher priority)'), step: 100, value: 0 %>
28
28
  <%= checkbox_f f, :enabled %>
29
29
  </div>
30
30
  <%= render 'taxonomies/loc_org_tabs', :f => f, :obj => @discovery_rule %>
31
31
  </div>
32
32
  <%= submit_or_cancel f %>
33
33
  <% end %>
34
+
35
+ <script type="text/javascript" charset="utf-8">
36
+ $(document).ready(function() {
37
+ $('input.counter_spinner').spinner();
38
+ });
39
+ </script>
@@ -1,3 +1,3 @@
1
- <% title _("Edit Discovery Rule") %>
1
+ <% title _('Edit %s') % @discovery_rule.name %>
2
2
 
3
3
  <%= render :partial => 'form' %>
@@ -1,7 +1,7 @@
1
1
  <% title _("Discovery Rules") %>
2
2
  <% title_actions new_link(_("Create Rule")), help_button %>
3
3
 
4
- <table class="table table-bordered table-striped table-two-pane">
4
+ <table class="<%= table_css_classes('table-fixed') %>">
5
5
  <tr>
6
6
  <th><%= sort :name, :as => s_("DiscoveryRule|Name") %></th>
7
7
  <th><%= sort :priority, :as => s_("DiscoveryRule|Priority") %></th>
@@ -13,7 +13,7 @@
13
13
  </tr>
14
14
  <% for rule in @discovery_rules %>
15
15
  <tr>
16
- <td class='col-md-3 display-two-pane'><%= link_to_if_authorized(trunc_with_tooltip(rule.name), hash_for_edit_discovery_rule_path(:id => rule).merge(:auth_object => rule, :authorizer => authorizer)) %></td>
16
+ <td class='col-md-3'><%= link_to_if_authorized(trunc_with_tooltip(rule.name), hash_for_edit_discovery_rule_path(:id => rule).merge(:auth_object => rule, :authorizer => authorizer)) %></td>
17
17
  <td><%= rule.priority %></td>
18
18
  <td><%= trunc_with_tooltip(rule.search) %></td>
19
19
  <td><%= label_with_link(rule.hostgroup, 26, authorizer) %></td>
@@ -35,5 +35,5 @@ Please read kexec(8) man page for more information about semantics.
35
35
  "kernel": "<%= @kexec_kernel %>",
36
36
  "initram": "<%= @kexec_initrd %>",
37
37
  "append": "url=<%= foreman_url('provision') + "&static=yes" %> interface=<%= mac %> netcfg/get_ipaddress=<%= ip %> netcfg/get_netmask=<%= mask %> netcfg/get_gateway=<%= gw %> netcfg/get_nameservers=<%= dns %> netcfg/disable_dhcp=true netcfg/get_hostname=<%= @host.name %> BOOTIF=<%= bootif %> <%= options.join(' ') %>",
38
- "extra": ["--args-linux"]
38
+ "extra": []
39
39
  }
@@ -46,5 +46,5 @@ Please read kexec(8) man page for more information about semantics.
46
46
  <% else -%>
47
47
  "append": "ks=<%= foreman_url('provision') + "&static=yes" %> kssendmac nicdelay=5 <%= "ip=#{ip} netmask=#{mask} gateway=#{gw} dns=#{dns} ksdevice=#{mac} BOOTIF=#{bootif} nomodeset #{append}" %>",
48
48
  <% end -%>
49
- "extra": ["--args-linux"]
49
+ "extra": []
50
50
  }
@@ -0,0 +1,395 @@
1
+ ---
2
+ - message: "#table_exists? currently checks both tables and views. This behavior is
3
+ deprecated and will be changed with Rails 5.1 to only check tables. Use #data_source_exists?
4
+ instead."
5
+ - message: "#tables currently returns both tables and views. This behavior is deprecated
6
+ and will be changed with Rails 5.1 to only return tables. Use #data_sources instead."
7
+ - message: The behavior of `attribute_change` inside of after callbacks will be changing
8
+ in the next version of Rails. The new return value will reflect the behavior of
9
+ calling the method after `save` returned (e.g. the opposite of what it returns
10
+ now). To maintain the current behavior, use `saved_change_to_attribute` instead.
11
+ callstack: app/models/concerns/strip_whitespace.rb:9:in `strip_spaces'
12
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
13
+ changing in the next version of Rails. The new return value will reflect the behavior
14
+ of calling the method after `save` returned (e.g. the opposite of what it returns
15
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
16
+ callstack:
17
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
18
+ changing in the next version of Rails. The new return value will reflect the behavior
19
+ of calling the method after `save` returned (e.g. the opposite of what it returns
20
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
21
+ callstack: app/controllers/hosts_controller.rb:828:in `block in update_multiple_proxy'
22
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
23
+ changing in the next version of Rails. The new return value will reflect the behavior
24
+ of calling the method after `save` returned (e.g. the opposite of what it returns
25
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
26
+ callstack: app/models/concerns/encryptable.rb:41:in `block in encrypt_setters'
27
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
28
+ changing in the next version of Rails. The new return value will reflect the behavior
29
+ of calling the method after `save` returned (e.g. the opposite of what it returns
30
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
31
+ callstack: app/models/concerns/orchestration.rb:86:in `valid?'
32
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
33
+ changing in the next version of Rails. The new return value will reflect the behavior
34
+ of calling the method after `save` returned (e.g. the opposite of what it returns
35
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
36
+ callstack: app/models/concerns/foreman/sti.rb:26:in `save'
37
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
38
+ changing in the next version of Rails. The new return value will reflect the behavior
39
+ of calling the method after `save` returned (e.g. the opposite of what it returns
40
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
41
+ callstack: app/models/concerns/strip_whitespace.rb:9:in `strip_spaces'
42
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
43
+ changing in the next version of Rails. The new return value will reflect the behavior
44
+ of calling the method after `save` returned (e.g. the opposite of what it returns
45
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
46
+ callstack: app/models/host.rb:15:in `method_missing'
47
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
48
+ changing in the next version of Rails. The new return value will reflect the behavior
49
+ of calling the method after `save` returned (e.g. the opposite of what it returns
50
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
51
+ callstack: app/models/host/managed.rb:597:in `associate!'
52
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
53
+ changing in the next version of Rails. The new return value will reflect the behavior
54
+ of calling the method after `save` returned (e.g. the opposite of what it returns
55
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
56
+ callstack: app/models/host/managed.rb:603:in `disassociate!'
57
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
58
+ changing in the next version of Rails. The new return value will reflect the behavior
59
+ of calling the method after `save` returned (e.g. the opposite of what it returns
60
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
61
+ callstack: app/models/host/managed.rb:753:in `refresh_global_status!'
62
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
63
+ changing in the next version of Rails. The new return value will reflect the behavior
64
+ of calling the method after `save` returned (e.g. the opposite of what it returns
65
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
66
+ callstack: test/controllers/api/v2/audits_controller_test.rb:23:in `block in <class:AuditsControllerTest>'
67
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
68
+ changing in the next version of Rails. The new return value will reflect the behavior
69
+ of calling the method after `save` returned (e.g. the opposite of what it returns
70
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
71
+ callstack: test/controllers/environments_controller_test.rb:152:in `block (2 levels)
72
+ in <class:EnvironmentsControllerTest>'
73
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
74
+ changing in the next version of Rails. The new return value will reflect the behavior
75
+ of calling the method after `save` returned (e.g. the opposite of what it returns
76
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
77
+ callstack: test/controllers/hosts_controller_test.rb:308:in `block in setup_user_and_host'
78
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
79
+ changing in the next version of Rails. The new return value will reflect the behavior
80
+ of calling the method after `save` returned (e.g. the opposite of what it returns
81
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
82
+ callstack: test/controllers/hosts_controller_test.rb:338:in `block (2 levels) in
83
+ <class:HostsControllerTest>'
84
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
85
+ changing in the next version of Rails. The new return value will reflect the behavior
86
+ of calling the method after `save` returned (e.g. the opposite of what it returns
87
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
88
+ callstack: test/controllers/hosts_controller_test.rb:352:in `block (2 levels) in
89
+ <class:HostsControllerTest>'
90
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
91
+ changing in the next version of Rails. The new return value will reflect the behavior
92
+ of calling the method after `save` returned (e.g. the opposite of what it returns
93
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
94
+ callstack: test/factories/disable_auditing.rb:13:in `block (3 levels) in <top (required)>'
95
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
96
+ changing in the next version of Rails. The new return value will reflect the behavior
97
+ of calling the method after `save` returned (e.g. the opposite of what it returns
98
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
99
+ callstack: test/factories/disable_auditing.rb:13:in `block (3 levels) in <top (required)>'
100
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
101
+ changing in the next version of Rails. The new return value will reflect the behavior
102
+ of calling the method after `save` returned (e.g. the opposite of what it returns
103
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
104
+ callstack: test/factories/disable_auditing.rb:15:in `block (2 levels) in <top (required)>'
105
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
106
+ changing in the next version of Rails. The new return value will reflect the behavior
107
+ of calling the method after `save` returned (e.g. the opposite of what it returns
108
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
109
+ callstack: test/models/concerns/audit_extensions_test.rb:103:in `block (2 levels)
110
+ in <class:AuditExtensionsTest>'
111
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
112
+ changing in the next version of Rails. The new return value will reflect the behavior
113
+ of calling the method after `save` returned (e.g. the opposite of what it returns
114
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
115
+ callstack: test/models/domain_test.rb:65:in `block (2 levels) in <class:DomainTest>'
116
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
117
+ changing in the next version of Rails. The new return value will reflect the behavior
118
+ of calling the method after `save` returned (e.g. the opposite of what it returns
119
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
120
+ callstack: test/models/host_test.rb:1132:in `block (2 levels) in <class:HostTest>'
121
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
122
+ changing in the next version of Rails. The new return value will reflect the behavior
123
+ of calling the method after `save` returned (e.g. the opposite of what it returns
124
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
125
+ callstack: test/models/host_test.rb:1122:in `block (2 levels) in <class:HostTest>'
126
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
127
+ changing in the next version of Rails. The new return value will reflect the behavior
128
+ of calling the method after `save` returned (e.g. the opposite of what it returns
129
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
130
+ callstack: test/models/host_test.rb:116:in `block in <class:HostTest>'
131
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
132
+ changing in the next version of Rails. The new return value will reflect the behavior
133
+ of calling the method after `save` returned (e.g. the opposite of what it returns
134
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
135
+ callstack: test/models/host_test.rb:1176:in `block (2 levels) in <class:HostTest>'
136
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
137
+ changing in the next version of Rails. The new return value will reflect the behavior
138
+ of calling the method after `save` returned (e.g. the opposite of what it returns
139
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
140
+ callstack: test/models/host_test.rb:1186:in `block (2 levels) in <class:HostTest>'
141
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
142
+ changing in the next version of Rails. The new return value will reflect the behavior
143
+ of calling the method after `save` returned (e.g. the opposite of what it returns
144
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
145
+ callstack: test/models/host_test.rb:1195:in `block (2 levels) in <class:HostTest>'
146
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
147
+ changing in the next version of Rails. The new return value will reflect the behavior
148
+ of calling the method after `save` returned (e.g. the opposite of what it returns
149
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
150
+ callstack: test/models/host_test.rb:1224:in `block (2 levels) in <class:HostTest>'
151
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
152
+ changing in the next version of Rails. The new return value will reflect the behavior
153
+ of calling the method after `save` returned (e.g. the opposite of what it returns
154
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
155
+ callstack: test/models/host_test.rb:1237:in `block (2 levels) in <class:HostTest>'
156
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
157
+ changing in the next version of Rails. The new return value will reflect the behavior
158
+ of calling the method after `save` returned (e.g. the opposite of what it returns
159
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
160
+ callstack: test/models/host_test.rb:1258:in `block (2 levels) in <class:HostTest>'
161
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
162
+ changing in the next version of Rails. The new return value will reflect the behavior
163
+ of calling the method after `save` returned (e.g. the opposite of what it returns
164
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
165
+ callstack: test/models/host_test.rb:1918:in `block (3 levels) in <class:HostTest>'
166
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
167
+ changing in the next version of Rails. The new return value will reflect the behavior
168
+ of calling the method after `save` returned (e.g. the opposite of what it returns
169
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
170
+ callstack: test/models/host_test.rb:242:in `block (2 levels) in <class:HostTest>'
171
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
172
+ changing in the next version of Rails. The new return value will reflect the behavior
173
+ of calling the method after `save` returned (e.g. the opposite of what it returns
174
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
175
+ callstack: test/models/host_test.rb:2540:in `block in <class:HostTest>'
176
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
177
+ changing in the next version of Rails. The new return value will reflect the behavior
178
+ of calling the method after `save` returned (e.g. the opposite of what it returns
179
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
180
+ callstack: test/models/host_test.rb:255:in `block (2 levels) in <class:HostTest>'
181
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
182
+ changing in the next version of Rails. The new return value will reflect the behavior
183
+ of calling the method after `save` returned (e.g. the opposite of what it returns
184
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
185
+ callstack: test/models/host_test.rb:268:in `block (2 levels) in <class:HostTest>'
186
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
187
+ changing in the next version of Rails. The new return value will reflect the behavior
188
+ of calling the method after `save` returned (e.g. the opposite of what it returns
189
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
190
+ callstack: test/models/host_test.rb:2769:in `block in <class:HostTest>'
191
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
192
+ changing in the next version of Rails. The new return value will reflect the behavior
193
+ of calling the method after `save` returned (e.g. the opposite of what it returns
194
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
195
+ callstack: test/models/host_test.rb:2782:in `block in <class:HostTest>'
196
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
197
+ changing in the next version of Rails. The new return value will reflect the behavior
198
+ of calling the method after `save` returned (e.g. the opposite of what it returns
199
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
200
+ callstack: test/models/host_test.rb:2795:in `block in <class:HostTest>'
201
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
202
+ changing in the next version of Rails. The new return value will reflect the behavior
203
+ of calling the method after `save` returned (e.g. the opposite of what it returns
204
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
205
+ callstack: test/models/host_test.rb:283:in `block (2 levels) in <class:HostTest>'
206
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
207
+ changing in the next version of Rails. The new return value will reflect the behavior
208
+ of calling the method after `save` returned (e.g. the opposite of what it returns
209
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
210
+ callstack: test/models/host_test.rb:3022:in `block (2 levels) in <class:HostTest>'
211
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
212
+ changing in the next version of Rails. The new return value will reflect the behavior
213
+ of calling the method after `save` returned (e.g. the opposite of what it returns
214
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
215
+ callstack: test/models/host_test.rb:58:in `block in <class:HostTest>'
216
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
217
+ changing in the next version of Rails. The new return value will reflect the behavior
218
+ of calling the method after `save` returned (e.g. the opposite of what it returns
219
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
220
+ callstack: test/models/host_test.rb:690:in `block (2 levels) in <class:HostTest>'
221
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
222
+ changing in the next version of Rails. The new return value will reflect the behavior
223
+ of calling the method after `save` returned (e.g. the opposite of what it returns
224
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
225
+ callstack: test/models/host_test.rb:702:in `block (2 levels) in <class:HostTest>'
226
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
227
+ changing in the next version of Rails. The new return value will reflect the behavior
228
+ of calling the method after `save` returned (e.g. the opposite of what it returns
229
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
230
+ callstack: test/models/host_test.rb:708:in `block (2 levels) in <class:HostTest>'
231
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
232
+ changing in the next version of Rails. The new return value will reflect the behavior
233
+ of calling the method after `save` returned (e.g. the opposite of what it returns
234
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
235
+ callstack: test/models/host_test.rb:715:in `block (2 levels) in <class:HostTest>'
236
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
237
+ changing in the next version of Rails. The new return value will reflect the behavior
238
+ of calling the method after `save` returned (e.g. the opposite of what it returns
239
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
240
+ callstack: test/models/medium_test.rb:80:in `block in <class:MediumTest>'
241
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
242
+ changing in the next version of Rails. The new return value will reflect the behavior
243
+ of calling the method after `save` returned (e.g. the opposite of what it returns
244
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
245
+ callstack: test/models/medium_test.rb:97:in `block in <class:MediumTest>'
246
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
247
+ changing in the next version of Rails. The new return value will reflect the behavior
248
+ of calling the method after `save` returned (e.g. the opposite of what it returns
249
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
250
+ callstack: test/models/nic_test.rb:392:in `block (3 levels) in <class:NicTest>'
251
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
252
+ changing in the next version of Rails. The new return value will reflect the behavior
253
+ of calling the method after `save` returned (e.g. the opposite of what it returns
254
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
255
+ callstack: test/models/orchestration/dns_test.rb:108:in `block (2 levels) in <class:DnsOrchestrationTest>'
256
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
257
+ changing in the next version of Rails. The new return value will reflect the behavior
258
+ of calling the method after `save` returned (e.g. the opposite of what it returns
259
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
260
+ callstack: test/models/orchestration/dns_test.rb:117:in `block (2 levels) in <class:DnsOrchestrationTest>'
261
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
262
+ changing in the next version of Rails. The new return value will reflect the behavior
263
+ of calling the method after `save` returned (e.g. the opposite of what it returns
264
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
265
+ callstack: test/models/orchestration/dns_test.rb:126:in `block (2 levels) in <class:DnsOrchestrationTest>'
266
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
267
+ changing in the next version of Rails. The new return value will reflect the behavior
268
+ of calling the method after `save` returned (e.g. the opposite of what it returns
269
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
270
+ callstack: test/models/orchestration/dns_test.rb:139:in `block (2 levels) in <class:DnsOrchestrationTest>'
271
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
272
+ changing in the next version of Rails. The new return value will reflect the behavior
273
+ of calling the method after `save` returned (e.g. the opposite of what it returns
274
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
275
+ callstack: test/models/orchestration/dns_test.rb:153:in `block (2 levels) in <class:DnsOrchestrationTest>'
276
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
277
+ changing in the next version of Rails. The new return value will reflect the behavior
278
+ of calling the method after `save` returned (e.g. the opposite of what it returns
279
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
280
+ callstack: test/models/orchestration/dns_test.rb:192:in `block (3 levels) in <class:DnsOrchestrationTest>'
281
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
282
+ changing in the next version of Rails. The new return value will reflect the behavior
283
+ of calling the method after `save` returned (e.g. the opposite of what it returns
284
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
285
+ callstack: test/models/orchestration/dns_test.rb:226:in `block (2 levels) in <class:DnsOrchestrationTest>'
286
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
287
+ changing in the next version of Rails. The new return value will reflect the behavior
288
+ of calling the method after `save` returned (e.g. the opposite of what it returns
289
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
290
+ callstack: test/models/orchestration/dns_test.rb:239:in `block (2 levels) in <class:DnsOrchestrationTest>'
291
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
292
+ changing in the next version of Rails. The new return value will reflect the behavior
293
+ of calling the method after `save` returned (e.g. the opposite of what it returns
294
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
295
+ callstack: test/models/orchestration/dns_test.rb:308:in `block (2 levels) in <class:DnsOrchestrationTest>'
296
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
297
+ changing in the next version of Rails. The new return value will reflect the behavior
298
+ of calling the method after `save` returned (e.g. the opposite of what it returns
299
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
300
+ callstack: test/models/orchestration/dns_test.rb:323:in `block (2 levels) in <class:DnsOrchestrationTest>'
301
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
302
+ changing in the next version of Rails. The new return value will reflect the behavior
303
+ of calling the method after `save` returned (e.g. the opposite of what it returns
304
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
305
+ callstack: test/models/orchestration/dns_test.rb:51:in `block (2 levels) in <class:DnsOrchestrationTest>'
306
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
307
+ changing in the next version of Rails. The new return value will reflect the behavior
308
+ of calling the method after `save` returned (e.g. the opposite of what it returns
309
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
310
+ callstack: test/unit/compute_resource_host_associator_test.rb:16:in `block in <class:ComputeResourceHostAssociatorTest>'
311
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
312
+ changing in the next version of Rails. The new return value will reflect the behavior
313
+ of calling the method after `save` returned (e.g. the opposite of what it returns
314
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
315
+ callstack: test/unit/compute_resource_host_associator_test.rb:29:in `block in <class:ComputeResourceHostAssociatorTest>'
316
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
317
+ changing in the next version of Rails. The new return value will reflect the behavior
318
+ of calling the method after `save` returned (e.g. the opposite of what it returns
319
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
320
+ callstack: test/unit/facet_test.rb:123:in `block (2 levels) in <class:FacetTest>'
321
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
322
+ changing in the next version of Rails. The new return value will reflect the behavior
323
+ of calling the method after `save` returned (e.g. the opposite of what it returns
324
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
325
+ callstack: test/unit/has_many_common_test.rb:61:in `block in <class:HasManyCommonTest>'
326
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
327
+ changing in the next version of Rails. The new return value will reflect the behavior
328
+ of calling the method after `save` returned (e.g. the opposite of what it returns
329
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
330
+ callstack: test/unit/has_many_common_test.rb:81:in `block in <class:HasManyCommonTest>'
331
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
332
+ changing in the next version of Rails. The new return value will reflect the behavior
333
+ of calling the method after `save` returned (e.g. the opposite of what it returns
334
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
335
+ callstack: test/unit/host_token_test.rb:11:in `block (3 levels) in <class:HostTokenTest>'
336
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
337
+ changing in the next version of Rails. The new return value will reflect the behavior
338
+ of calling the method after `save` returned (e.g. the opposite of what it returns
339
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
340
+ callstack: test/unit/interface_cleaner_test.rb:17:in `block in <class:InterfaceCleanerTest>'
341
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
342
+ changing in the next version of Rails. The new return value will reflect the behavior
343
+ of calling the method after `save` returned (e.g. the opposite of what it returns
344
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
345
+ callstack: test/unit/interface_cleaner_test.rb:32:in `block in <class:InterfaceCleanerTest>'
346
+ - message: The behavior of `attribute_changed?` inside of after callbacks will be
347
+ changing in the next version of Rails. The new return value will reflect the behavior
348
+ of calling the method after `save` returned (e.g. the opposite of what it returns
349
+ now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
350
+ callstack: test/unit/interface_cleaner_test.rb:56:in `block in <class:InterfaceCleanerTest>'
351
+ - message: The behavior of `changed?` inside of after callbacks will be changing in
352
+ the next version of Rails. The new return value will reflect the behavior of calling
353
+ the method after `save` returned (e.g. the opposite of what it returns now). To
354
+ maintain the current behavior, use `saved_changes?` instead.
355
+ callstack: app/models/host/managed.rb:255:in `block in <class:Managed>'
356
+ - message: The behavior of `changed_attributes` inside of after callbacks will be
357
+ changing in the next version of Rails. The new return value will reflect the behavior
358
+ of calling the method after `save` returned (e.g. the opposite of what it returns
359
+ now). To maintain the current behavior, use `saved_changes.transform_values(&:first)`
360
+ instead.
361
+ callstack: app/models/concerns/interface_cloning.rb:13:in `setup_object_clone'
362
+ - message: The behavior of `changed_attributes` inside of after callbacks will be
363
+ changing in the next version of Rails. The new return value will reflect the behavior
364
+ of calling the method after `save` returned (e.g. the opposite of what it returns
365
+ now). To maintain the current behavior, use `saved_changes.transform_values(&:first)`
366
+ instead.
367
+ callstack: app/models/concerns/strip_whitespace.rb:9:in `strip_spaces'
368
+ - message: The behavior of `changed_attributes` inside of after callbacks will be
369
+ changing in the next version of Rails. The new return value will reflect the behavior
370
+ of calling the method after `save` returned (e.g. the opposite of what it returns
371
+ now). To maintain the current behavior, use `saved_changes.transform_values(&:first)`
372
+ instead.
373
+ callstack: app/models/host/managed.rb:255:in `block in <class:Managed>'
374
+ - message: The behavior of `changed` inside of after callbacks will be changing in
375
+ the next version of Rails. The new return value will reflect the behavior of calling
376
+ the method after `save` returned (e.g. the opposite of what it returns now). To
377
+ maintain the current behavior, use `saved_changes.keys` instead.
378
+ callstack: app/models/concerns/strip_whitespace.rb:9:in `strip_spaces'
379
+ - message: The behavior of `changes` inside of after callbacks will be changing in
380
+ the next version of Rails. The new return value will reflect the behavior of calling
381
+ the method after `save` returned (e.g. the opposite of what it returns now). To
382
+ maintain the current behavior, use `saved_changes` instead.
383
+ callstack: app/models/concerns/strip_whitespace.rb:9:in `strip_spaces'
384
+ - message: Using a dynamic :controller segment in a route is deprecated and will be
385
+ removed in Rails 5.2.
386
+ callstack: config/routes.rb:17:in `block in <top (required)>'
387
+ - message: You are using a deprecated behavior, it will be removed in version 1.18,
388
+ please migrate notice() to success() or info()
389
+ callstack: app/controllers/concerns/application_shared.rb:15:in `set_timezone'
390
+ - message: You didn't set `secret_key_base`. Read the upgrade documentation to learn
391
+ more about this new config option.
392
+ callstack:
393
+ - message: You didn't set `secret_key_base`. Read the upgrade documentation to learn
394
+ more about this new config option.
395
+ callstack: test/test_helper.rb:36:in `before_setup'