foreman_rh_cloud 3.0.15 → 3.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (19) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/foreman_inventory_upload/accounts_controller.rb +8 -0
  3. data/app/controllers/foreman_inventory_upload/uploads_controller.rb +0 -6
  4. data/app/services/foreman_rh_cloud/cloud_connector.rb +2 -1
  5. data/config/Gemfile.lock.gh_test +81 -66
  6. data/config/package-lock.json.gh_test +1261 -1455
  7. data/config/routes.rb +0 -1
  8. data/lib/foreman_rh_cloud/version.rb +1 -1
  9. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js +6 -0
  10. data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js +2 -0
  11. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListActions.test.js.snap +6 -0
  12. data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListReducer.test.js.snap +6 -0
  13. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorActions.js +1 -7
  14. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorButton.js +16 -8
  15. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorSelectors.js +16 -11
  16. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/__snapshots__/CloudConnectorButton.test.js.snap +20 -12
  17. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/index.js +2 -8
  18. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss +4 -0
  19. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 677c042a9d55631df79a60651ca098544507487b346ca82645fbf3496f784a9d
4
- data.tar.gz: e7b272141151275e15583433d7014d46b97af88d215da7aff3ce068792887373
3
+ metadata.gz: 40911c61287fcace17eb79713f616515ca463a0c671f2a663b5dca8c4587c0ca
4
+ data.tar.gz: 5db731e3f022086fc55b9f6dded6917ff4d459c0565aa48fb4742cdcb2adbb0a
5
5
  SHA512:
6
- metadata.gz: 30697a4e16332a59135af135387de01398c1d992cb83139a49c20b0708b91b4f780009b1899727079e67b07eb43d5e3c85076f4b5f34a4c1184013b53b262a4a
7
- data.tar.gz: d1600cfbfc51b6026d672d0f8a38a3523dffc0cd8eba082afdf32d7faf6c4496c07becceac6fbd3489dc341cd0d4a670e5e79260068b54891987112063a691b6
6
+ metadata.gz: 06c1ac8778b2c119f3594cfec3afec6662b4ab6925a7b591d88cfa3fb80b76f390d38e5e152249f253095a71ca7484e8fe715906294729d71045bcc5d35022d0
7
+ data.tar.gz: c629a9b8b860600b1c0a180ebf2d057cc3201a3596fa32bbcf650661e4612fdd5612dba787b32ba70cf8b546662af68d49e98e4edd4e77f49deb22b9d681a408
@@ -27,11 +27,19 @@ module ForemanInventoryUpload
27
27
  cloudToken: Setting[:rh_cloud_token],
28
28
  excludePackages: Setting[:exclude_installed_packages],
29
29
  accounts: accounts,
30
+ CloudConnectorStatus: cloud_connector_status,
30
31
  }, status: :ok
31
32
  end
32
33
 
33
34
  private
34
35
 
36
+ def cloud_connector_status
37
+ cloud_connector = ForemanRhCloud::CloudConnector.new
38
+ job = cloud_connector&.latest_job
39
+ return nil unless job
40
+ { id: job.id, task: ForemanTasks::Task.where(:id => job.task_id).first }
41
+ end
42
+
35
43
  def status_for(label, job_class)
36
44
  label = job_class.output_label(label)
37
45
  ForemanInventoryUpload::Async::ProgressOutput.get(label)&.status
@@ -29,12 +29,6 @@ module ForemanInventoryUpload
29
29
  render json: cloud_connector.install.to_json
30
30
  end
31
31
 
32
- def cloud_connector_status
33
- cloud_connector = ForemanRhCloud::CloudConnector.new
34
- task_id = cloud_connector.latest_job&.task_id
35
- render json: ForemanTasks::Task.where(:id => task_id).first
36
- end
37
-
38
32
  def auto_upload
39
33
  Setting[:allow_auto_inventory_upload] = auto_upload_params
40
34
  render_setting(:autoUploadEnabled, :allow_auto_inventory_upload)
@@ -20,7 +20,8 @@ module ForemanRhCloud
20
20
  end
21
21
 
22
22
  def latest_job
23
- feature_id = RemoteExecutionFeature.find_by_label(CLOUD_CONNECTOR_FEATURE).id
23
+ feature_id = RemoteExecutionFeature.find_by_label(CLOUD_CONNECTOR_FEATURE)&.id
24
+ return nil unless feature_id
24
25
  JobInvocation.where(:remote_execution_feature_id => feature_id).includes(:task).reorder('foreman_tasks_tasks.started_at DESC').first
25
26
  end
26
27
 
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: ../foreman_rh_cloud
3
3
  specs:
4
- foreman_rh_cloud (3.0.14)
4
+ foreman_rh_cloud (3.0.15)
5
+ foreman_ansible
5
6
  katello
6
7
  redhat_access
7
8
 
@@ -86,8 +87,8 @@ GEM
86
87
  activesupport (= 6.0.3.4)
87
88
  activerecord-import (1.0.7)
88
89
  activerecord (>= 3.2)
89
- activerecord-nulldb-adapter (0.5.1)
90
- activerecord (>= 5.2.0)
90
+ activerecord-nulldb-adapter (0.7.0)
91
+ activerecord (>= 5.2.0, < 6.3)
91
92
  activerecord-session_store (1.1.3)
92
93
  actionpack (>= 4.0)
93
94
  activerecord (>= 4.0)
@@ -126,22 +127,22 @@ GEM
126
127
  as_deprecation_tracker (1.5.0)
127
128
  activesupport (>= 4.2)
128
129
  railties (>= 4.2)
129
- ast (2.4.1)
130
- audited (4.9.0)
131
- activerecord (>= 4.2, < 6.1)
132
- autoprefixer-rails (10.0.3.0)
130
+ ast (2.4.2)
131
+ audited (4.10.0)
132
+ activerecord (>= 4.2, < 6.2)
133
+ autoprefixer-rails (10.2.4.0)
133
134
  execjs
134
135
  bcrypt (3.1.16)
135
- benchmark-ips (2.8.3)
136
- binding_of_caller (0.8.0)
136
+ benchmark-ips (2.8.4)
137
+ binding_of_caller (1.0.0)
137
138
  debug_inspector (>= 0.0.1)
138
- bootsnap (1.5.1)
139
+ bootsnap (1.7.1)
139
140
  msgpack (~> 1.0)
140
141
  bootstrap-sass (3.4.1)
141
142
  autoprefixer-rails (>= 5.2.1)
142
143
  sassc (>= 2.0.0)
143
144
  builder (3.2.4)
144
- bullet (6.1.0)
145
+ bullet (6.1.3)
145
146
  activesupport (>= 3.0.0)
146
147
  uniform_notifier (~> 1.11)
147
148
  byebug (11.1.3)
@@ -167,28 +168,29 @@ GEM
167
168
  coffee-script-source
168
169
  execjs
169
170
  coffee-script-source (1.12.2)
170
- concurrent-ruby (1.1.7)
171
+ concurrent-ruby (1.1.8)
171
172
  concurrent-ruby-edge (0.6.0)
172
173
  concurrent-ruby (~> 1.1.6)
173
174
  connection_pool (2.2.3)
174
- crack (0.4.4)
175
+ crack (0.4.5)
176
+ rexml
175
177
  crass (1.0.6)
176
- css_parser (1.7.1)
178
+ css_parser (1.9.0)
177
179
  addressable
178
180
  daemons (1.3.1)
179
- database_cleaner (1.8.5)
181
+ database_cleaner (1.99.0)
180
182
  deacon (1.0.0)
181
- debug_inspector (0.0.3)
183
+ debug_inspector (1.0.0)
182
184
  declarative (0.0.20)
183
185
  declarative-option (0.1.0)
184
186
  deep_cloneable (3.0.0)
185
187
  activerecord (>= 3.1.0, < 7)
186
- deface (1.5.3)
188
+ deface (1.6.1)
187
189
  nokogiri (>= 1.6)
188
190
  polyglot
189
- rails (>= 4.1)
191
+ rails (>= 5.2)
190
192
  rainbow (>= 2.1.0)
191
- docile (1.3.2)
193
+ docile (1.3.5)
192
194
  domain_name (0.5.20190701)
193
195
  unf (>= 0.0.5, < 1.0.0)
194
196
  dynflow (1.4.7)
@@ -199,9 +201,9 @@ GEM
199
201
  multi_json
200
202
  sequel (>= 4.0.0)
201
203
  erubi (1.10.0)
202
- excon (0.78.0)
204
+ excon (0.79.0)
203
205
  execjs (2.7.0)
204
- facter (4.0.46)
206
+ facter (4.0.50)
205
207
  hocon (~> 1.3)
206
208
  thor (>= 1.0.1, < 2.0)
207
209
  factory_bot (5.2.0)
@@ -209,12 +211,14 @@ GEM
209
211
  factory_bot_rails (5.2.0)
210
212
  factory_bot (~> 5.2.0)
211
213
  railties (>= 4.2.0)
212
- faraday (1.1.0)
214
+ faraday (1.3.0)
215
+ faraday-net_http (~> 1.0)
213
216
  multipart-post (>= 1.2, < 3)
214
217
  ruby2_keywords
218
+ faraday-net_http (1.0.1)
215
219
  fast_gettext (1.8.0)
216
- ffi (1.13.1)
217
- fog-aws (3.7.0)
220
+ ffi (1.14.2)
221
+ fog-aws (3.8.0)
218
222
  fog-core (~> 2.1)
219
223
  fog-json (~> 1.1)
220
224
  fog-xml (~> 0.1)
@@ -233,7 +237,7 @@ GEM
233
237
  fog-json (1.2.0)
234
238
  fog-core
235
239
  multi_json (~> 1.10)
236
- fog-libvirt (0.7.0)
240
+ fog-libvirt (0.8.0)
237
241
  fog-core (>= 1.27.4)
238
242
  fog-json
239
243
  fog-xml (~> 0.1.1)
@@ -249,7 +253,7 @@ GEM
249
253
  fog-xml
250
254
  ovirt-engine-sdk (>= 4.1.3)
251
255
  rbovirt (~> 0.1.5)
252
- fog-vsphere (3.4.0)
256
+ fog-vsphere (3.5.0)
253
257
  fog-core
254
258
  rbvmomi (>= 1.9, < 3)
255
259
  fog-xml (0.1.3)
@@ -258,7 +262,7 @@ GEM
258
262
  font-awesome-sass (4.6.2)
259
263
  sass (>= 3.2)
260
264
  foreman (0.87.2)
261
- foreman-tasks (3.0.2)
265
+ foreman-tasks (3.0.3)
262
266
  dynflow (>= 1.2.3)
263
267
  foreman-tasks-core
264
268
  get_process_mem
@@ -266,7 +270,15 @@ GEM
266
270
  sinatra
267
271
  foreman-tasks-core (0.3.4)
268
272
  dynflow (>= 1.2.0)
269
- foreman_remote_execution (4.2.1)
273
+ foreman_ansible (6.1.1)
274
+ deface (< 2.0)
275
+ foreman_remote_execution (>= 4.2.0)
276
+ ipaddress (>= 0.8.0, < 1.0)
277
+ foreman_ansible_core (4.0.0)
278
+ foreman-tasks-core (~> 0.3.2)
279
+ foreman_remote_execution_core (~> 1.1)
280
+ net-ssh
281
+ foreman_remote_execution (4.2.2)
270
282
  deface
271
283
  dynflow (>= 1.0.2, < 2.0.0)
272
284
  foreman-tasks (>= 0.15.1)
@@ -277,12 +289,12 @@ GEM
277
289
  formatador (0.2.5)
278
290
  friendly_id (5.3.0)
279
291
  activerecord (>= 4.0.0)
280
- fx (0.6.0)
292
+ fx (0.6.2)
281
293
  activerecord (>= 4.0.0)
282
294
  railties (>= 4.0.0)
283
295
  get_process_mem (0.2.7)
284
296
  ffi (~> 1.0)
285
- gettext (3.3.6)
297
+ gettext (3.3.7)
286
298
  locale (>= 2.0.5)
287
299
  text (>= 1.3.0)
288
300
  gettext_i18n_rails (1.8.1)
@@ -306,7 +318,7 @@ GEM
306
318
  signet (~> 0.12)
307
319
  google-cloud-env (1.4.0)
308
320
  faraday (>= 0.17.3, < 2.0)
309
- googleauth (0.14.0)
321
+ googleauth (0.15.0)
310
322
  faraday (>= 0.17.3, < 2.0)
311
323
  jwt (>= 1.4, < 3.0)
312
324
  memoist (~> 0.16)
@@ -326,7 +338,7 @@ GEM
326
338
  http-cookie (1.0.3)
327
339
  domain_name (~> 0.5)
328
340
  httpclient (2.8.3)
329
- i18n (1.8.5)
341
+ i18n (1.8.8)
330
342
  concurrent-ruby (~> 1.0)
331
343
  immigrant (0.3.6)
332
344
  activerecord (>= 3.0)
@@ -337,13 +349,13 @@ GEM
337
349
  journald-native (1.0.12)
338
350
  jquery-ui-rails (6.0.1)
339
351
  railties (>= 3.2.16)
340
- json (2.3.1)
352
+ json (2.5.1)
341
353
  jwt (2.2.2)
342
354
  launchy (2.5.0)
343
355
  addressable (~> 2.7)
344
- ldap_fluff (0.4.7)
356
+ ldap_fluff (0.5.0)
345
357
  activesupport
346
- net-ldap (>= 0.3.1)
358
+ net-ldap (>= 0.11)
347
359
  little-plugger (1.1.4)
348
360
  locale (2.1.3)
349
361
  logging (2.3.0)
@@ -352,7 +364,7 @@ GEM
352
364
  logging-journald (2.1.0)
353
365
  journald-logger (~> 3.0)
354
366
  logging
355
- loofah (2.8.0)
367
+ loofah (2.9.0)
356
368
  crass (~> 1.0.2)
357
369
  nokogiri (>= 1.5.9)
358
370
  mail (2.7.1)
@@ -367,9 +379,9 @@ GEM
367
379
  mime-types-data (3.2020.1104)
368
380
  mimemagic (0.3.5)
369
381
  mini_mime (1.0.2)
370
- mini_portile2 (2.4.0)
382
+ mini_portile2 (2.5.0)
371
383
  minitest (5.10.3)
372
- minitest-reporters (1.4.2)
384
+ minitest-reporters (1.4.3)
373
385
  ansi
374
386
  builder
375
387
  minitest (>= 5.0)
@@ -380,8 +392,8 @@ GEM
380
392
  minitest (>= 5.0)
381
393
  railties (>= 4.1)
382
394
  minitest-tags (0.0.5)
383
- mocha (1.11.2)
384
- msgpack (1.3.3)
395
+ mocha (1.12.0)
396
+ msgpack (1.4.2)
385
397
  multi_json (1.15.0)
386
398
  multipart-post (2.1.1)
387
399
  mustermann (1.1.1)
@@ -392,20 +404,21 @@ GEM
392
404
  net-ssh (>= 2.6.5, < 7.0.0)
393
405
  net-ssh (4.2.0)
394
406
  netrc (0.11.0)
395
- nio4r (2.5.4)
396
- nokogiri (1.10.10)
397
- mini_portile2 (~> 2.4.0)
398
- oauth (0.5.4)
407
+ nio4r (2.5.5)
408
+ nokogiri (1.11.1)
409
+ mini_portile2 (~> 2.5.0)
410
+ racc (~> 1.4)
411
+ oauth (0.5.5)
399
412
  optimist (3.0.1)
400
413
  os (1.1.1)
401
414
  ovirt-engine-sdk (4.4.0)
402
415
  json (>= 1, < 3)
403
- paint (2.2.0)
416
+ paint (2.2.1)
404
417
  parallel (1.20.1)
405
418
  parallel_tests (3.4.0)
406
419
  parallel
407
420
  parse-cron (0.1.4)
408
- parser (2.7.2.0)
421
+ parser (3.0.0.0)
409
422
  ast (~> 2.4.1)
410
423
  patternfly-sass (3.59.5)
411
424
  bootstrap-sass (~> 3.4.0)
@@ -431,8 +444,8 @@ GEM
431
444
  pry-remote (0.1.8)
432
445
  pry (~> 0.9)
433
446
  slop (~> 3.0)
434
- pry-stack_explorer (0.5.1)
435
- binding_of_caller (~> 0.7)
447
+ pry-stack_explorer (0.6.0)
448
+ binding_of_caller (~> 1.0)
436
449
  pry (~> 0.13)
437
450
  public_suffix (4.0.6)
438
451
  pulp_2to3_migration_client (0.5.1)
@@ -441,7 +454,7 @@ GEM
441
454
  pulp_ansible_client (0.4.3)
442
455
  faraday (>= 0.14.0)
443
456
  json (~> 2.1, >= 2.1.0)
444
- pulp_certguard_client (1.0.3)
457
+ pulp_certguard_client (1.1.0)
445
458
  faraday (>= 0.14.0)
446
459
  json (~> 2.1, >= 2.1.0)
447
460
  pulp_container_client (2.1.0)
@@ -466,6 +479,7 @@ GEM
466
479
  puma (>= 3.6, < 5)
467
480
  rabl (0.14.3)
468
481
  activesupport (>= 2.3.14)
482
+ racc (1.5.2)
469
483
  rack (2.2.3)
470
484
  rack-cors (1.0.6)
471
485
  rack (>= 1.6.0)
@@ -512,7 +526,7 @@ GEM
512
526
  rake (>= 0.8.7)
513
527
  thor (>= 0.20.3, < 2.0)
514
528
  rainbow (3.0.0)
515
- rake (13.0.1)
529
+ rake (13.0.3)
516
530
  rb-fsevent (0.10.4)
517
531
  rb-inotify (0.10.1)
518
532
  ffi (~> 1.0)
@@ -524,7 +538,7 @@ GEM
524
538
  json (>= 1.8)
525
539
  nokogiri (~> 1.5)
526
540
  optimist (~> 3.0)
527
- rdoc (6.2.1)
541
+ rdoc (6.3.0)
528
542
  record_tag_helper (1.0.1)
529
543
  actionview (>= 5)
530
544
  redhat_access (2.2.18)
@@ -554,8 +568,8 @@ GEM
554
568
  roadie (4.0.0)
555
569
  css_parser (~> 1.4)
556
570
  nokogiri (~> 1.8)
557
- roadie-rails (2.1.1)
558
- railties (>= 5.1, < 6.1)
571
+ roadie-rails (2.2.0)
572
+ railties (>= 5.1, < 6.2)
559
573
  roadie (>= 3.1, < 5.0)
560
574
  robotex (1.0.0)
561
575
  robottelo_reporter (0.1.1)
@@ -579,12 +593,12 @@ GEM
579
593
  rubocop (>= 0.72.0)
580
594
  ruby-libvirt (0.7.1)
581
595
  ruby-openid (2.9.2)
582
- ruby-progressbar (1.10.1)
583
- ruby2_keywords (0.0.2)
596
+ ruby-progressbar (1.11.0)
597
+ ruby2_keywords (0.0.4)
584
598
  ruby2ruby (2.4.4)
585
599
  ruby_parser (~> 3.1)
586
600
  sexp_processor (~> 4.6)
587
- ruby_parser (3.15.0)
601
+ ruby_parser (3.15.1)
588
602
  sexp_processor (~> 4.9)
589
603
  rubyzip (2.3.0)
590
604
  runcible (2.13.1)
@@ -619,8 +633,8 @@ GEM
619
633
  selenium-webdriver (3.142.7)
620
634
  childprocess (>= 0.5, < 4.0)
621
635
  rubyzip (>= 1.2.2)
622
- sequel (5.39.0)
623
- sexp_processor (4.15.1)
636
+ sequel (5.41.0)
637
+ sexp_processor (4.15.2)
624
638
  shoulda-context (1.2.2)
625
639
  shoulda-matchers (4.3.0)
626
640
  activesupport (>= 4.2.0)
@@ -631,12 +645,12 @@ GEM
631
645
  rack (~> 2.0)
632
646
  rack-protection (>= 1.5.0)
633
647
  redis (>= 3.3.5, < 4.2)
634
- signet (0.14.0)
648
+ signet (0.14.1)
635
649
  addressable (~> 2.3)
636
650
  faraday (>= 0.17.3, < 2.0)
637
651
  jwt (>= 1.5, < 3.0)
638
652
  multi_json (~> 1.10)
639
- simplecov (0.20.0)
653
+ simplecov (0.21.2)
640
654
  docile (~> 1.1)
641
655
  simplecov-html (~> 0.11)
642
656
  simplecov_json_formatter (~> 0.1)
@@ -664,10 +678,10 @@ GEM
664
678
  statsd-instrument (2.9.2)
665
679
  stomp (1.4.10)
666
680
  text (1.3.1)
667
- thor (1.0.1)
681
+ thor (1.1.0)
668
682
  thread_safe (0.3.6)
669
683
  tilt (2.0.10)
670
- tzinfo (1.2.8)
684
+ tzinfo (1.2.9)
671
685
  thread_safe (~> 0.1)
672
686
  uber (0.1.0)
673
687
  uglifier (4.2.0)
@@ -676,11 +690,11 @@ GEM
676
690
  unf_ext
677
691
  unf_ext (0.0.7.7)
678
692
  unicode-display_width (1.6.1)
679
- uniform_notifier (1.13.0)
693
+ uniform_notifier (1.13.2)
680
694
  validates_lengths_from_database (0.8.0)
681
695
  activerecord (>= 4)
682
696
  vcr (3.0.3)
683
- webmock (3.10.0)
697
+ webmock (3.11.2)
684
698
  addressable (>= 2.3.6)
685
699
  crack (>= 0.3.2)
686
700
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -690,11 +704,11 @@ GEM
690
704
  websocket-extensions (>= 0.1.0)
691
705
  websocket-extensions (0.1.5)
692
706
  will_paginate (3.3.0)
693
- wirb (2.2.1)
707
+ wirb (2.2.2)
694
708
  paint (>= 0.9, < 3.0)
695
709
  xpath (3.2.0)
696
710
  nokogiri (~> 1.8)
697
- yard (0.9.25)
711
+ yard (0.9.26)
698
712
  zeitwerk (2.4.2)
699
713
 
700
714
  PLATFORMS
@@ -733,6 +747,7 @@ DEPENDENCIES
733
747
  fog-ovirt (~> 1.2.5)
734
748
  fog-vsphere (>= 3.3.1, < 4.0)
735
749
  foreman
750
+ foreman_ansible_core
736
751
  foreman_rh_cloud!
737
752
  friendly_id (>= 5.3.0, < 5.4)
738
753
  get_process_mem