foreman_salt 11.0.0 → 11.0.1

Sign up to get free protection for your applications and to get access to all the features.
File without changes
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_salt 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2019-04-29 18:38+0000\n"
12
- "PO-Revision-Date: 2019-04-29 18:38+0000\n"
11
+ "POT-Creation-Date: 2019-07-22 19:13+0000\n"
12
+ "PO-Revision-Date: 2019-07-22 19:13+0000\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -163,6 +163,19 @@ msgstr ""
163
163
  msgid "Could not find salt environment with id %s"
164
164
  msgstr ""
165
165
 
166
+ #: ../app/controllers/foreman_salt/concerns/hosts_controller_extensions.rb:44
167
+ #: ../app/helpers/concerns/foreman_salt/hosts_helper_extensions.rb:38
168
+ msgid "Salt Master"
169
+ msgstr ""
170
+
171
+ #: ../app/controllers/foreman_salt/concerns/hosts_controller_extensions.rb:54
172
+ msgid "No salt environment selected!"
173
+ msgstr ""
174
+
175
+ #: ../app/controllers/foreman_salt/concerns/hosts_controller_extensions.rb:68
176
+ msgid "Updated hosts: changed salt environment"
177
+ msgstr ""
178
+
166
179
  #: ../app/controllers/foreman_salt/minions_controller.rb:24
167
180
  msgid "Unable to generate output, Check log files\\n"
168
181
  msgstr ""
@@ -213,19 +226,25 @@ msgstr ""
213
226
  msgid "Salt external nodes YAML dump"
214
227
  msgstr ""
215
228
 
216
- #: ../app/helpers/concerns/foreman_salt/hosts_helper_extensions.rb:16
229
+ #: ../app/helpers/concerns/foreman_salt/hosts_helper_extensions.rb:17
230
+ #: ../lib/foreman_salt/plugin.rb:156
217
231
  msgid "Run Salt"
218
232
  msgstr ""
219
233
 
220
- #: ../app/helpers/concerns/foreman_salt/hosts_helper_extensions.rb:17
234
+ #: ../app/helpers/concerns/foreman_salt/hosts_helper_extensions.rb:18
221
235
  msgid "Trigger a state.highstate run on a node"
222
236
  msgstr ""
223
237
 
224
- #: ../app/helpers/concerns/foreman_salt/hosts_helper_extensions.rb:27
225
- msgid "Salt Master"
238
+ #: ../app/helpers/concerns/foreman_salt/hosts_helper_extensions.rb:29
239
+ msgid "Change Salt Master"
226
240
  msgstr ""
227
241
 
228
- #: ../app/helpers/concerns/foreman_salt/hosts_helper_extensions.rb:28
242
+ #: ../app/helpers/concerns/foreman_salt/hosts_helper_extensions.rb:30
243
+ msgid "Change Salt Environment"
244
+ msgstr ""
245
+
246
+ #: ../app/helpers/concerns/foreman_salt/hosts_helper_extensions.rb:39
247
+ #: ../app/views/hosts/select_multiple_salt_environment.html.erb:7
229
248
  msgid "Salt Environment"
230
249
  msgstr ""
231
250
 
@@ -340,7 +359,11 @@ msgstr ""
340
359
  msgid "Namespace Foreman pillars under 'foreman' key"
341
360
  msgstr ""
342
361
 
343
- #: ../app/services/foreman_salt/report_importer.rb:7
362
+ #: ../app/models/setting/salt.rb:8
363
+ msgid "Hide the Run Salt state.highstate button on the host details page"
364
+ msgstr ""
365
+
366
+ #: ../app/services/foreman_salt/report_importer.rb:8
344
367
  msgid "Invalid report"
345
368
  msgstr ""
346
369
 
@@ -520,6 +543,18 @@ msgstr ""
520
543
  msgid "Edit"
521
544
  msgstr ""
522
545
 
546
+ #: ../app/views/hosts/select_multiple_salt_environment.html.erb:4
547
+ msgid "Select salt environment"
548
+ msgstr ""
549
+
550
+ #: ../app/views/hosts/select_multiple_salt_environment.html.erb:5
551
+ msgid "*Clear environment*"
552
+ msgstr ""
553
+
554
+ #: ../lib/foreman_salt/plugin.rb:152
555
+ msgid "Run Salt state.highstate"
556
+ msgstr ""
557
+
523
558
  #: action_names.rb:2
524
559
  msgid "Action with sub plans"
525
560
  msgstr ""
@@ -39,7 +39,7 @@ module ForemanSalt
39
39
  describe "hosts index salt multiple actions" do
40
40
  test 'change salt master action' do
41
41
  visit hosts_path
42
- page.find('#check_all').trigger('click')
42
+ check 'check_all'
43
43
 
44
44
  # Ensure and wait for all hosts to be checked, and that no unchecked hosts remain
45
45
  assert page.has_no_selector?('input.host_select_boxes:not(:checked)')
@@ -50,7 +50,7 @@ module ForemanSalt
50
50
  assert multiple_actions_div.find('ul').visible?
51
51
 
52
52
  # Hosts are added to cookie
53
- host_ids_on_cookie = JSON.parse(CGI.unescape(page.driver.cookies['_ForemanSelectedhosts'].value))
53
+ host_ids_on_cookie = JSON.parse(CGI.unescape(get_me_the_cookie('_ForemanSelectedhosts')&.fetch(:value)))
54
54
  assert(host_ids_on_cookie.include?(@host.id))
55
55
 
56
56
  within('#submit_multiple') do
@@ -63,12 +63,12 @@ module ForemanSalt
63
63
  # remove hosts cookie on submit
64
64
  index_modal.find('.btn-primary').click
65
65
  assert_current_path hosts_path
66
- assert_empty(page.driver.cookies['_ForemanSelectedhosts'])
66
+ assert_empty(get_me_the_cookie('_ForemanSelectedhosts'))
67
67
  end
68
68
 
69
69
  test 'change salt environment action' do
70
70
  visit hosts_path
71
- page.find('#check_all').trigger('click')
71
+ check 'check_all'
72
72
 
73
73
  # Ensure and wait for all hosts to be checked, and that no unchecked hosts remain
74
74
  assert page.has_no_selector?('input.host_select_boxes:not(:checked)')
@@ -79,7 +79,7 @@ module ForemanSalt
79
79
  assert multiple_actions_div.find('ul').visible?
80
80
 
81
81
  # Hosts are added to cookie
82
- host_ids_on_cookie = JSON.parse(CGI.unescape(page.driver.cookies['_ForemanSelectedhosts'].value))
82
+ host_ids_on_cookie = JSON.parse(CGI.unescape(get_me_the_cookie('_ForemanSelectedhosts')&.fetch(:value)))
83
83
  assert(host_ids_on_cookie.include?(@host.id))
84
84
 
85
85
  within('#submit_multiple') do
@@ -92,7 +92,7 @@ module ForemanSalt
92
92
  # remove hosts cookie on submit
93
93
  index_modal.find('.btn-primary').click
94
94
  assert_current_path hosts_path
95
- assert_empty(page.driver.cookies['_ForemanSelectedhosts'])
95
+ assert_empty(get_me_the_cookie('_ForemanSelectedhosts'))
96
96
  end
97
97
  end
98
98
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_salt
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.0.0
4
+ version: 11.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Benjamin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-20 00:00:00.000000000 Z
11
+ date: 2019-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.8'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.71.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.71.0
41
55
  description: Foreman Plug-in for Salt
42
56
  email:
43
57
  - stephen@redhat.com
@@ -153,9 +167,14 @@ files:
153
167
  - lib/tasks/foreman_salt_tasks.rake
154
168
  - locale/Makefile
155
169
  - locale/action_names.rb
170
+ - locale/de/LC_MESSAGES/foreman_salt.mo
156
171
  - locale/de/foreman_salt.edit.po
157
172
  - locale/de/foreman_salt.po
173
+ - locale/de/foreman_salt.po.time_stamp
174
+ - locale/en/LC_MESSAGES/foreman_salt.mo
175
+ - locale/en/foreman_salt.edit.po
158
176
  - locale/en/foreman_salt.po
177
+ - locale/en/foreman_salt.po.time_stamp
159
178
  - locale/foreman_salt.pot
160
179
  - test/factories/foreman_salt_factories.rb
161
180
  - test/functional/api/v2/salt_autosign_controller_test.rb