foreman_google 2.0.1 → 3.0.0

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: 0a0e9df162752f37213facd428893c59d9f4f75beb56663eef1a998f83398ad2
4
- data.tar.gz: a7cf59fad8b5e17698f8cc8e580f7156d2e4aae6d307159c29514a26a3facec7
3
+ metadata.gz: 275fd6ec51918dfac05b481a558b8399db13bca820b47ae87b5188050b168161
4
+ data.tar.gz: bc6ca9f5b2461617645a4f8106e6188b001fb82447786d40bc11f39dae678a31
5
5
  SHA512:
6
- metadata.gz: 03a51b6b2523b8e6912e91235266edb5278cc098543967c2dd21323bac31bbe2aa36c407a4df7288d37e2b882647ac4d59c01d95270d57eac10c7c202a68d1e7
7
- data.tar.gz: d57c86499fd851ff0a25c2317c3818603001816f26114a01613ecc25e14c3eed4d44c86ee1f324f9a71a6642cb03352d6ca8239d9870aa380957a85d3c9d5461
6
+ metadata.gz: 0ea3c0b355f8d820891b6d284e82b64996f4e5648801454207e9c9631cf68ca54f2fce64677cfecc5c9e29ee0869b5899d100069b14df521efefd62d16ae8460
7
+ data.tar.gz: 4b54b348e3556196d50e3fac3b3851358f3ee6f8c88709d2efc0bf8c647e93bdc8485a7002da9df2bf584dbfbd1a230f157650a884cbf71280b6fa5ef2142774
@@ -91,9 +91,9 @@ module ForemanGoogle
91
91
  instance = instance(zone, instance_identity)
92
92
  instance.disks.each do |disk|
93
93
  manage_instance :set_disk_auto_delete, zone: zone,
94
- device_name: disk.device_name,
95
- instance: instance_identity,
96
- auto_delete: true
94
+ device_name: disk.device_name,
95
+ instance: instance_identity,
96
+ auto_delete: true
97
97
  end
98
98
  end
99
99
 
@@ -1,5 +1,3 @@
1
- require 'foreman_google/google_compute_adapter'
2
-
3
1
  # rubocop:disable Rails/InverseOf, Metrics/ClassLength
4
2
  module ForemanGoogle
5
3
  class GCE < ::ComputeResource
@@ -1,5 +1,5 @@
1
1
  # rubocop:disable Metrics/MethodLength
2
- class ForemanGceToForemanGoogleGce < ActiveRecord::Migration[6.0]
2
+ class ForemanGCEToForemanGoogleGCE < ActiveRecord::Migration[6.0]
3
3
  def up
4
4
  User.without_auditing do
5
5
  original_type = 'Foreman::Model::GCE'
@@ -10,7 +10,7 @@ class ForemanGceToForemanGoogleGce < ActiveRecord::Migration[6.0]
10
10
  # mechanism failed to locate the subclass: 'Foreman::Model::GCE'
11
11
  ComputeResource.unscoped.where(type: original_type).update_all(type: new_type)
12
12
 
13
- ComputeResource.unscoped.where(type: new_type).each do |cr|
13
+ ComputeResource.unscoped.where(type: new_type).find_each do |cr|
14
14
  unless cr.attrs[:key_path]
15
15
  say("Compute resource [#{cr.name}] is missing path to JSON key file, can't load the data. Please update the resource manually.")
16
16
  next
@@ -12,7 +12,7 @@ module ForemanGoogle
12
12
 
13
13
  initializer 'foreman_google.register_plugin', before: :finisher_hook do |_app|
14
14
  Foreman::Plugin.register :foreman_google do
15
- requires_foreman '>= 3.7.0'
15
+ requires_foreman '>= 3.13.0'
16
16
  register_global_js_file 'global'
17
17
  register_gettext
18
18
 
@@ -1,3 +1,3 @@
1
1
  module ForemanGoogle
2
- VERSION = '2.0.1'.freeze
2
+ VERSION = '3.0.0'.freeze
3
3
  end
@@ -16,7 +16,7 @@ class GoogleTestCase < ActiveSupport::TestCase
16
16
  let(:google_access_token) { 'ya29.c.stubbed_token' }
17
17
  let(:gce_cr) { FactoryBot.create(:compute_resource, :google_gce) }
18
18
  let(:google_project_id) { gce_cr.google_project_id }
19
- let(:gauth_json) { (ENV['VCR'] == '1' ? ENV['GCE_AUTH'] : nil) || gce_cr.password }
19
+ let(:gauth_json) { ((ENV['VCR'] == '1') ? ENV['GCE_AUTH'] : nil) || gce_cr.password }
20
20
 
21
21
  setup do
22
22
  ::Signet::OAuth2::Client.any_instance.stubs(fetch_access_token!: google_access_token) unless ENV['VCR'] == '1'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_google
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Foreman Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-25 00:00:00.000000000 Z
11
+ date: 2024-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-compute_v1
@@ -111,9 +111,7 @@ files:
111
111
  - locale/el/LC_MESSAGES/foreman_google.mo
112
112
  - locale/el/foreman_google.po
113
113
  - locale/en/LC_MESSAGES/foreman_google.mo
114
- - locale/en/foreman_google.edit.po
115
114
  - locale/en/foreman_google.po
116
- - locale/en/foreman_google.po.time_stamp
117
115
  - locale/en_GB/LC_MESSAGES/foreman_google.mo
118
116
  - locale/en_GB/foreman_google.po
119
117
  - locale/es/LC_MESSAGES/foreman_google.mo
@@ -189,18 +187,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
189
187
  requirements:
190
188
  - - ">="
191
189
  - !ruby/object:Gem::Version
192
- version: '2.5'
190
+ version: '2.7'
191
+ - - "<"
192
+ - !ruby/object:Gem::Version
193
+ version: '4'
193
194
  required_rubygems_version: !ruby/object:Gem::Requirement
194
195
  requirements:
195
196
  - - ">="
196
197
  - !ruby/object:Gem::Version
197
198
  version: '0'
198
199
  requirements: []
199
- rubygems_version: 3.1.6
200
+ rubygems_version: 3.2.33
200
201
  signing_key:
201
202
  specification_version: 4
202
203
  summary: Google Compute Engine plugin for the Foreman
203
204
  test_files:
205
+ - test/factories/gce.rb
204
206
  - test/fixtures/disks_delete.json
205
207
  - test/fixtures/disks_get.json
206
208
  - test/fixtures/disks_insert.json
@@ -215,13 +217,12 @@ test_files:
215
217
  - test/fixtures/instance_start.json
216
218
  - test/fixtures/instance_stop.json
217
219
  - test/fixtures/machine_types.json
220
+ - test/fixtures/networks.json
218
221
  - test/fixtures/operation_error.json
219
222
  - test/fixtures/operation_get.json
220
223
  - test/fixtures/zones.json
221
- - test/fixtures/networks.json
222
- - test/factories/gce.rb
223
- - test/unit/foreman_google/google_compute_adapter_test.rb
224
- - test/unit/google_extensions/attached_disk_test.rb
225
224
  - test/models/foreman_google/gce_test.rb
226
225
  - test/models/foreman_google/google_compute_test.rb
227
226
  - test/test_google_helper.rb
227
+ - test/unit/foreman_google/google_compute_adapter_test.rb
228
+ - test/unit/google_extensions/attached_disk_test.rb
@@ -1,116 +0,0 @@
1
- # foreman_google
2
- #
3
- # This file is distributed under the same license as foreman_google.
4
- #
5
- msgid ""
6
- msgstr ""
7
- "Project-Id-Version: version 0.0.1\n"
8
- "Report-Msgid-Bugs-To: \n"
9
- "PO-Revision-Date: 2014-08-20 08:54+0100\n"
10
- "Last-Translator: Foreman Team <foreman-dev@googlegroups.com>\n"
11
- "Language-Team: Foreman Team <foreman-dev@googlegroups.com>\n"
12
- "Language: \n"
13
- "MIME-Version: 1.0\n"
14
- "Content-Type: text/plain; charset=UTF-8\n"
15
- "Content-Transfer-Encoding: 8bit\n"
16
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
-
18
- #: ../app/models/foreman_google/gce.rb:126
19
- msgid "console is not available at this time because the instance is powered off"
20
- msgstr ""
21
-
22
- #: ../app/models/foreman_google/gce.rb:170
23
- msgid "Missing an image for operating system!"
24
- msgstr ""
25
-
26
- #: ../app/views/compute_resources/form/_gce.html.erb:3
27
- msgid "JSON key"
28
- msgstr ""
29
-
30
- #: ../app/views/compute_resources/form/_gce.html.erb:9 ../app/views/compute_resources_vms/show/_gce.html.erb:11
31
- msgid "Zone"
32
- msgstr ""
33
-
34
- #: ../app/views/compute_resources/form/_gce.html.erb:10
35
- msgid "Load Zones"
36
- msgstr ""
37
-
38
- #: ../app/views/compute_resources_vms/form/gce/_base.html.erb:3
39
- msgid "Machine type"
40
- msgstr ""
41
-
42
- #: ../app/views/compute_resources_vms/form/gce/_base.html.erb:12
43
- msgid "Please select an image"
44
- msgstr ""
45
-
46
- #: ../app/views/compute_resources_vms/form/gce/_base.html.erb:13 ../app/views/compute_resources_vms/show/_gce.html.erb:18
47
- msgid "Image"
48
- msgstr ""
49
-
50
- #: ../app/views/compute_resources_vms/form/gce/_base.html.erb:17
51
- msgid "Network"
52
- msgstr ""
53
-
54
- #: ../app/views/compute_resources_vms/form/gce/_base.html.erb:18
55
- msgid "Associate Ephemeral External IP"
56
- msgstr ""
57
-
58
- #: ../app/views/compute_resources_vms/form/gce/_volume.html.erb:5
59
- msgid "Size (GB)"
60
- msgstr ""
61
-
62
- #: ../app/views/compute_resources_vms/index/_gce.html.erb:3
63
- msgid "Name"
64
- msgstr ""
65
-
66
- #: ../app/views/compute_resources_vms/index/_gce.html.erb:4
67
- msgid "Type"
68
- msgstr ""
69
-
70
- #: ../app/views/compute_resources_vms/index/_gce.html.erb:5
71
- msgid "State"
72
- msgstr ""
73
-
74
- #: ../app/views/compute_resources_vms/index/_gce.html.erb:6
75
- msgid "Actions"
76
- msgstr ""
77
-
78
- #: ../app/views/compute_resources_vms/show/_gce.html.erb:6
79
- msgid "Properties"
80
- msgstr ""
81
-
82
- #: ../app/views/compute_resources_vms/show/_gce.html.erb:10
83
- msgid "Machine Type"
84
- msgstr ""
85
-
86
- #: ../app/views/images/form/_gce.html.erb:1
87
- msgid "The user that is used to ssh into the instance, normally cloud-user, ec2-user, ubuntu, etc. Note: Google engine doesn't support SSH for the root user."
88
- msgstr ""
89
-
90
- #: ../app/views/images/form/_gce.html.erb:3
91
- msgid "Does this image support user data input (e.g. via cloud-init)?"
92
- msgstr ""
93
-
94
- #: action_names.rb:2
95
- msgid "Preupgrade job"
96
- msgstr ""
97
-
98
- #: action_names.rb:3
99
- msgid "Action with sub plans"
100
- msgstr ""
101
-
102
- #: action_names.rb:4
103
- msgid "Import facts"
104
- msgstr ""
105
-
106
- #: action_names.rb:5
107
- msgid "Import Puppet classes"
108
- msgstr ""
109
-
110
- #: action_names.rb:6
111
- msgid "Remote action:"
112
- msgstr ""
113
-
114
- #: gemspec.rb:2
115
- msgid "Google Compute Engine plugin for the Foreman."
116
- msgstr ""
File without changes