fog-vsphere 3.6.4 → 3.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fog/vsphere/compute.rb +12 -0
- data/lib/fog/vsphere/models/compute/nvmecontroller.rb +24 -0
- data/lib/fog/vsphere/models/compute/scsicontroller.rb +5 -1
- data/lib/fog/vsphere/models/compute/server.rb +33 -18
- data/lib/fog/vsphere/models/compute/volume.rb +1 -2
- data/lib/fog/vsphere/requests/compute/create_vm.rb +16 -6
- data/lib/fog/vsphere/requests/compute/get_vm_first_nvme_controller.rb +21 -0
- data/lib/fog/vsphere/requests/compute/list_vm_nvme_controllers.rb +29 -0
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +1 -1
- data/lib/fog/vsphere/version.rb +1 -1
- data/tests/class_from_string_tests.rb +33 -0
- data/tests/compute_tests.rb +53 -0
- data/tests/fixtures/vcr_cassettes/6_7/create_folder.yml +609 -0
- data/tests/fixtures/vcr_cassettes/6_7/folder_destroy.yml +823 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_cluster.yml +663 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_compute_resource.yml +1046 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_datacenter.yml +498 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_folder.yml +2038 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_host.yml +386 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_network.yml +932 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_storage_pod.yml +225 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_template.yml +329 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_virtual_machine.yml +329 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_vm_first_nvme_controller.yml +105 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_vm_first_sata_controller.yml +209 -0
- data/tests/fixtures/vcr_cassettes/6_7/get_vm_first_scsi_controller.yml +111 -0
- data/tests/fixtures/vcr_cassettes/6_7/shared.yml +164 -0
- data/tests/helper.rb +6 -0
- data/tests/helpers/mock_helper.rb +9 -0
- data/tests/models/compute/cluster_tests.rb +18 -0
- data/tests/models/compute/hosts_tests.rb +11 -0
- data/tests/models/compute/rules_tests.rb +28 -0
- data/tests/models/compute/server_tests.rb +74 -0
- data/tests/models/compute/server_unit_tests.rb +13 -0
- data/tests/models/compute/servers_tests.rb +14 -0
- data/tests/models/compute/ticket_tests.rb +12 -0
- data/tests/models/compute/tickets_tests.rb +8 -0
- data/tests/requests/compute/create_folder_tests.rb +19 -0
- data/tests/requests/compute/current_time_tests.rb +10 -0
- data/tests/requests/compute/folder_destroy_tests.rb +39 -0
- data/tests/requests/compute/get_cluster_tests.rb +19 -0
- data/tests/requests/compute/get_compute_resource_tests.rb +19 -0
- data/tests/requests/compute/get_datacenter_tests.rb +19 -0
- data/tests/requests/compute/get_folder_tests.rb +28 -0
- data/tests/requests/compute/get_host_tests.rb +19 -0
- data/tests/requests/compute/get_network_tests.rb +78 -0
- data/tests/requests/compute/get_storage_pod_tests.rb +19 -0
- data/tests/requests/compute/get_template_tests.rb +19 -0
- data/tests/requests/compute/get_virtual_machine_tests.rb +19 -0
- data/tests/requests/compute/get_vm_first_nvme_controller_tests.rb +19 -0
- data/tests/requests/compute/get_vm_first_sata_controller_tests.rb +19 -0
- data/tests/requests/compute/get_vm_first_scsi_controller_tests.rb +19 -0
- data/tests/requests/compute/list_child_snapshots_tests.rb +9 -0
- data/tests/requests/compute/list_clusters_tests.rb +10 -0
- data/tests/requests/compute/list_datastores_tests.rb +17 -0
- data/tests/requests/compute/list_hosts_tests.rb +10 -0
- data/tests/requests/compute/list_networks_tests.rb +17 -0
- data/tests/requests/compute/list_storage_pods_test.rb +9 -0
- data/tests/requests/compute/list_virtual_machines_tests.rb +34 -0
- data/tests/requests/compute/list_vm_cdroms_tests.rb +9 -0
- data/tests/requests/compute/list_vm_snapshots_tests.rb +9 -0
- data/tests/requests/compute/modify_vm_cdrom_tests.rb +20 -0
- data/tests/requests/compute/revert_to_snapshot_tests.rb +13 -0
- data/tests/requests/compute/set_vm_customvalue_tests.rb +18 -0
- data/tests/requests/compute/update_vm_tests.rb +13 -0
- data/tests/requests/compute/vm_clone_tests.rb +55 -0
- data/tests/requests/compute/vm_config_vnc_tests.rb +18 -0
- data/tests/requests/compute/vm_destroy_tests.rb +14 -0
- data/tests/requests/compute/vm_migrate_tests.rb +15 -0
- data/tests/requests/compute/vm_power_off_tests.rb +24 -0
- data/tests/requests/compute/vm_power_on_tests.rb +15 -0
- data/tests/requests/compute/vm_reboot_tests.rb +24 -0
- data/tests/requests/compute/vm_reconfig_cdrom_tests.rb +14 -0
- data/tests/requests/compute/vm_reconfig_cpus_tests.rb +17 -0
- data/tests/requests/compute/vm_reconfig_hardware_tests.rb +17 -0
- data/tests/requests/compute/vm_reconfig_memory_tests.rb +17 -0
- data/tests/requests/compute/vm_suspend_tests.rb +23 -0
- data/tests/requests/compute/vm_take_snapshot_tests.rb +17 -0
- data/tests/test_helper.rb +74 -0
- metadata +152 -19
- data/.github/workflows/ruby.yml +0 -42
- data/.gitignore +0 -25
- data/.rubocop.yml +0 -44
- data/.rubocop_todo.yml +0 -614
- data/CONTRIBUTING.md +0 -55
- data/Gemfile +0 -5
- data/Jenkinsfile +0 -10
- data/fog-vsphere.gemspec +0 -39
data/.rubocop_todo.yml
DELETED
@@ -1,614 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2022-11-18 13:06:52 UTC using RuboCop version 1.39.0.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 1
|
10
|
-
# This cop supports safe autocorrection (--autocorrect).
|
11
|
-
# Configuration parameters: Include.
|
12
|
-
# Include: **/*.gemspec
|
13
|
-
Gemspec/DeprecatedAttributeAssignment:
|
14
|
-
Exclude:
|
15
|
-
- 'fog-vsphere.gemspec'
|
16
|
-
|
17
|
-
# Offense count: 3
|
18
|
-
# This cop supports safe autocorrection (--autocorrect).
|
19
|
-
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
20
|
-
# Include: **/*.gemspec
|
21
|
-
Gemspec/OrderedDependencies:
|
22
|
-
Exclude:
|
23
|
-
- 'fog-vsphere.gemspec'
|
24
|
-
|
25
|
-
# Offense count: 1
|
26
|
-
# This cop supports safe autocorrection (--autocorrect).
|
27
|
-
# Configuration parameters: Include.
|
28
|
-
# Include: **/*.gemspec
|
29
|
-
Gemspec/RequireMFA:
|
30
|
-
Exclude:
|
31
|
-
- 'fog-vsphere.gemspec'
|
32
|
-
|
33
|
-
# Offense count: 12
|
34
|
-
# This cop supports safe autocorrection (--autocorrect).
|
35
|
-
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
36
|
-
# SupportedStylesAlignWith: start_of_line, begin
|
37
|
-
Layout/BeginEndAlignment:
|
38
|
-
Exclude:
|
39
|
-
- 'lib/fog/vsphere/compute.rb'
|
40
|
-
- 'lib/fog/vsphere/requests/compute/list_hosts.rb'
|
41
|
-
- 'lib/fog/vsphere/requests/compute/list_vm_cdroms.rb'
|
42
|
-
- 'lib/fog/vsphere/requests/compute/list_vm_volumes.rb'
|
43
|
-
|
44
|
-
# Offense count: 105
|
45
|
-
# This cop supports safe autocorrection (--autocorrect).
|
46
|
-
Layout/EmptyLineAfterGuardClause:
|
47
|
-
Enabled: false
|
48
|
-
|
49
|
-
# Offense count: 22
|
50
|
-
# This cop supports safe autocorrection (--autocorrect).
|
51
|
-
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
52
|
-
Layout/EmptyLineBetweenDefs:
|
53
|
-
Enabled: false
|
54
|
-
|
55
|
-
# Offense count: 7
|
56
|
-
# This cop supports safe autocorrection (--autocorrect).
|
57
|
-
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
58
|
-
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
59
|
-
Layout/EndAlignment:
|
60
|
-
Exclude:
|
61
|
-
- 'lib/fog/vsphere/models/compute/customfields.rb'
|
62
|
-
- 'lib/fog/vsphere/models/compute/customvalues.rb'
|
63
|
-
- 'lib/fog/vsphere/models/compute/tickets.rb'
|
64
|
-
- 'lib/fog/vsphere/models/compute/volumes.rb'
|
65
|
-
- 'lib/fog/vsphere/requests/compute/create_vm.rb'
|
66
|
-
- 'lib/fog/vsphere/requests/compute/host_start_maintenance.rb'
|
67
|
-
|
68
|
-
# Offense count: 137
|
69
|
-
# This cop supports safe autocorrection (--autocorrect).
|
70
|
-
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
71
|
-
# SupportedHashRocketStyles: key, separator, table
|
72
|
-
# SupportedColonStyles: key, separator, table
|
73
|
-
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
74
|
-
Layout/HashAlignment:
|
75
|
-
Exclude:
|
76
|
-
- 'lib/fog/vsphere/compute.rb'
|
77
|
-
- 'lib/fog/vsphere/requests/compute/create_folder.rb'
|
78
|
-
- 'lib/fog/vsphere/requests/compute/create_vm.rb'
|
79
|
-
- 'lib/fog/vsphere/requests/compute/list_child_snapshots.rb'
|
80
|
-
- 'lib/fog/vsphere/requests/compute/list_hosts.rb'
|
81
|
-
- 'lib/fog/vsphere/requests/compute/vm_clone.rb'
|
82
|
-
- 'lib/fog/vsphere/requests/compute/vm_power_off.rb'
|
83
|
-
- 'lib/fog/vsphere/requests/compute/vm_suspend.rb'
|
84
|
-
|
85
|
-
# Offense count: 2
|
86
|
-
# This cop supports safe autocorrection (--autocorrect).
|
87
|
-
Layout/LeadingEmptyLines:
|
88
|
-
Exclude:
|
89
|
-
- 'fog-vsphere.gemspec'
|
90
|
-
- 'lib/fog/vsphere/requests/compute/get_vm_first_scsi_controller.rb'
|
91
|
-
|
92
|
-
# Offense count: 12
|
93
|
-
# This cop supports safe autocorrection (--autocorrect).
|
94
|
-
Layout/RescueEnsureAlignment:
|
95
|
-
Exclude:
|
96
|
-
- 'lib/fog/vsphere/compute.rb'
|
97
|
-
- 'lib/fog/vsphere/requests/compute/list_hosts.rb'
|
98
|
-
- 'lib/fog/vsphere/requests/compute/list_vm_cdroms.rb'
|
99
|
-
- 'lib/fog/vsphere/requests/compute/list_vm_volumes.rb'
|
100
|
-
|
101
|
-
# Offense count: 2
|
102
|
-
# This cop supports safe autocorrection (--autocorrect).
|
103
|
-
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
104
|
-
# SupportedStylesForExponentOperator: space, no_space
|
105
|
-
Layout/SpaceAroundOperators:
|
106
|
-
Exclude:
|
107
|
-
- 'lib/fog/vsphere/compute.rb'
|
108
|
-
- 'lib/fog/vsphere/requests/compute/vm_clone.rb'
|
109
|
-
|
110
|
-
# Offense count: 2
|
111
|
-
# Configuration parameters: AllowSafeAssignment.
|
112
|
-
Lint/AssignmentInCondition:
|
113
|
-
Exclude:
|
114
|
-
- 'lib/fog/vsphere/requests/compute/create_vm.rb'
|
115
|
-
- 'lib/fog/vsphere/requests/compute/vm_clone.rb'
|
116
|
-
|
117
|
-
# Offense count: 1
|
118
|
-
# Configuration parameters: AllowedMethods.
|
119
|
-
# AllowedMethods: enums
|
120
|
-
Lint/ConstantDefinitionInBlock:
|
121
|
-
Exclude:
|
122
|
-
- 'tests/compute_tests.rb'
|
123
|
-
|
124
|
-
# Offense count: 1
|
125
|
-
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
|
126
|
-
Lint/DuplicateBranch:
|
127
|
-
Exclude:
|
128
|
-
- 'lib/fog/vsphere/requests/compute/create_vm.rb'
|
129
|
-
|
130
|
-
# Offense count: 1
|
131
|
-
# Configuration parameters: AllowComments.
|
132
|
-
Lint/EmptyClass:
|
133
|
-
Exclude:
|
134
|
-
- 'tests/class_from_string_tests.rb'
|
135
|
-
|
136
|
-
# Offense count: 7
|
137
|
-
# Configuration parameters: MaximumRangeSize.
|
138
|
-
Lint/MissingCopEnableDirective:
|
139
|
-
Exclude:
|
140
|
-
- 'lib/fog/vsphere/compute.rb'
|
141
|
-
- 'lib/fog/vsphere/requests/compute/create_vm.rb'
|
142
|
-
- 'lib/fog/vsphere/requests/compute/list_hosts.rb'
|
143
|
-
- 'lib/fog/vsphere/requests/compute/list_vm_cdroms.rb'
|
144
|
-
- 'lib/fog/vsphere/requests/compute/list_vm_volumes.rb'
|
145
|
-
- 'tests/compute_tests.rb'
|
146
|
-
|
147
|
-
# Offense count: 4
|
148
|
-
# This cop supports safe autocorrection (--autocorrect).
|
149
|
-
Lint/RedundantCopDisableDirective:
|
150
|
-
Exclude:
|
151
|
-
- 'lib/fog/vsphere/compute.rb'
|
152
|
-
- 'lib/fog/vsphere/requests/compute/list_hosts.rb'
|
153
|
-
- 'lib/fog/vsphere/requests/compute/list_vm_cdroms.rb'
|
154
|
-
- 'lib/fog/vsphere/requests/compute/list_vm_volumes.rb'
|
155
|
-
|
156
|
-
# Offense count: 1
|
157
|
-
# This cop supports safe autocorrection (--autocorrect).
|
158
|
-
Lint/RedundantCopEnableDirective:
|
159
|
-
Exclude:
|
160
|
-
- 'lib/fog/vsphere/requests/compute/list_vm_interfaces.rb'
|
161
|
-
|
162
|
-
# Offense count: 2
|
163
|
-
# This cop supports safe autocorrection (--autocorrect).
|
164
|
-
Lint/SendWithMixinArgument:
|
165
|
-
Exclude:
|
166
|
-
- 'tests/helper.rb'
|
167
|
-
- 'tests/test_helper.rb'
|
168
|
-
|
169
|
-
# Offense count: 3
|
170
|
-
Lint/ShadowingOuterLocalVariable:
|
171
|
-
Exclude:
|
172
|
-
- 'lib/fog/vsphere/requests/compute/create_vm.rb'
|
173
|
-
- 'lib/fog/vsphere/requests/compute/destroy_rule.rb'
|
174
|
-
- 'lib/fog/vsphere/requests/compute/get_vm_first_scsi_controller.rb'
|
175
|
-
|
176
|
-
# Offense count: 8
|
177
|
-
Lint/UselessAssignment:
|
178
|
-
Exclude:
|
179
|
-
- 'lib/fog/vsphere/compute.rb'
|
180
|
-
- 'lib/fog/vsphere/models/compute/interfaces.rb'
|
181
|
-
- 'lib/fog/vsphere/models/compute/volumes.rb'
|
182
|
-
- 'lib/fog/vsphere/requests/compute/create_rule.rb'
|
183
|
-
- 'lib/fog/vsphere/requests/compute/create_vm.rb'
|
184
|
-
- 'lib/fog/vsphere/requests/compute/get_interface_type.rb'
|
185
|
-
- 'lib/fog/vsphere/requests/compute/vm_migrate.rb'
|
186
|
-
- 'tests/requests/compute/vm_clone_tests.rb'
|
187
|
-
|
188
|
-
# Offense count: 12
|
189
|
-
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
190
|
-
# AllowedMethods: refine
|
191
|
-
Metrics/BlockLength:
|
192
|
-
Max: 264
|
193
|
-
|
194
|
-
# Offense count: 21
|
195
|
-
# Configuration parameters: CountBlocks.
|
196
|
-
Metrics/BlockNesting:
|
197
|
-
Max: 5
|
198
|
-
|
199
|
-
# Offense count: 6
|
200
|
-
# Configuration parameters: CountComments, CountAsOne.
|
201
|
-
Metrics/ClassLength:
|
202
|
-
Max: 284
|
203
|
-
|
204
|
-
# Offense count: 1
|
205
|
-
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
206
|
-
Metrics/ParameterLists:
|
207
|
-
Max: 6
|
208
|
-
|
209
|
-
# Offense count: 2
|
210
|
-
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
211
|
-
Naming/BlockParameterName:
|
212
|
-
Exclude:
|
213
|
-
- 'lib/fog/vsphere/requests/compute/list_datacenters.rb'
|
214
|
-
- 'lib/fog/vsphere/requests/compute/list_resource_pools.rb'
|
215
|
-
|
216
|
-
# Offense count: 1
|
217
|
-
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
218
|
-
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
|
219
|
-
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
220
|
-
Naming/FileName:
|
221
|
-
Exclude:
|
222
|
-
- 'lib/fog-vsphere.rb'
|
223
|
-
|
224
|
-
# Offense count: 1
|
225
|
-
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
226
|
-
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
227
|
-
Naming/MemoizedInstanceVariableName:
|
228
|
-
Exclude:
|
229
|
-
- 'tests/test_helper.rb'
|
230
|
-
|
231
|
-
# Offense count: 11
|
232
|
-
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
233
|
-
# AllowedNames: as, at, by, db, id, if, in, io, ip, of, on, os, pp, to
|
234
|
-
Naming/MethodParameterName:
|
235
|
-
Exclude:
|
236
|
-
- 'lib/fog/vsphere/compute.rb'
|
237
|
-
- 'lib/fog/vsphere/models/compute/volume.rb'
|
238
|
-
- 'lib/fog/vsphere/requests/compute/create_vm.rb'
|
239
|
-
- 'lib/fog/vsphere/requests/compute/get_virtual_machine.rb'
|
240
|
-
- 'lib/fog/vsphere/requests/compute/list_datacenters.rb'
|
241
|
-
- 'lib/fog/vsphere/requests/compute/list_resource_pools.rb'
|
242
|
-
- 'lib/fog/vsphere/requests/compute/vm_suspend.rb'
|
243
|
-
- 'tests/compute_tests.rb'
|
244
|
-
|
245
|
-
# Offense count: 1
|
246
|
-
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
|
247
|
-
# NamePrefix: is_, has_, have_
|
248
|
-
# ForbiddenPrefixes: is_, has_, have_
|
249
|
-
# AllowedMethods: is_a?
|
250
|
-
# MethodDefinitionMacros: define_method, define_singleton_method
|
251
|
-
Naming/PredicateName:
|
252
|
-
Exclude:
|
253
|
-
- 'spec/**/*'
|
254
|
-
- 'lib/fog/vsphere/compute.rb'
|
255
|
-
|
256
|
-
# Offense count: 41
|
257
|
-
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
|
258
|
-
# SupportedStyles: snake_case, camelCase
|
259
|
-
Naming/VariableName:
|
260
|
-
Exclude:
|
261
|
-
- 'lib/fog/vsphere/requests/compute/create_vm.rb'
|
262
|
-
- 'lib/fog/vsphere/requests/compute/list_datacenters.rb'
|
263
|
-
- 'lib/fog/vsphere/requests/compute/list_resource_pools.rb'
|
264
|
-
- 'lib/fog/vsphere/requests/compute/list_server_types.rb'
|
265
|
-
- 'lib/fog/vsphere/requests/compute/vm_clone.rb'
|
266
|
-
|
267
|
-
# Offense count: 3
|
268
|
-
# Configuration parameters: MinSize.
|
269
|
-
Performance/CollectionLiteralInLoop:
|
270
|
-
Exclude:
|
271
|
-
- 'lib/fog/vsphere/requests/compute/vm_clone.rb'
|
272
|
-
|
273
|
-
# Offense count: 2
|
274
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
275
|
-
Performance/Detect:
|
276
|
-
Exclude:
|
277
|
-
- 'lib/fog/vsphere/requests/compute/get_server_type.rb'
|
278
|
-
- 'lib/fog/vsphere/requests/compute/get_vm_first_scsi_controller.rb'
|
279
|
-
|
280
|
-
# Offense count: 10
|
281
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
282
|
-
Performance/MapCompact:
|
283
|
-
Exclude:
|
284
|
-
- 'lib/fog/vsphere/compute.rb'
|
285
|
-
- 'lib/fog/vsphere/requests/compute/get_virtual_machine.rb'
|
286
|
-
- 'lib/fog/vsphere/requests/compute/list_clusters.rb'
|
287
|
-
- 'lib/fog/vsphere/requests/compute/list_compute_resources.rb'
|
288
|
-
- 'lib/fog/vsphere/requests/compute/list_datastores.rb'
|
289
|
-
- 'lib/fog/vsphere/requests/compute/list_folders.rb'
|
290
|
-
- 'lib/fog/vsphere/requests/compute/list_interface_types.rb'
|
291
|
-
- 'lib/fog/vsphere/requests/compute/list_networks.rb'
|
292
|
-
- 'lib/fog/vsphere/requests/compute/list_server_types.rb'
|
293
|
-
- 'lib/fog/vsphere/requests/compute/vm_config_vnc.rb'
|
294
|
-
|
295
|
-
# Offense count: 4
|
296
|
-
Performance/MethodObjectAsBlock:
|
297
|
-
Exclude:
|
298
|
-
- 'lib/fog/vsphere/requests/compute/list_folders.rb'
|
299
|
-
- 'lib/fog/vsphere/requests/compute/list_templates.rb'
|
300
|
-
- 'lib/fog/vsphere/requests/compute/list_virtual_machines.rb'
|
301
|
-
|
302
|
-
# Offense count: 8
|
303
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
304
|
-
Performance/RedundantEqualityComparisonBlock:
|
305
|
-
Exclude:
|
306
|
-
- 'tests/requests/compute/list_child_snapshots_tests.rb'
|
307
|
-
- 'tests/requests/compute/list_datastores_tests.rb'
|
308
|
-
- 'tests/requests/compute/list_hosts_tests.rb'
|
309
|
-
- 'tests/requests/compute/list_networks_tests.rb'
|
310
|
-
- 'tests/requests/compute/list_vm_cdroms_tests.rb'
|
311
|
-
- 'tests/requests/compute/list_vm_snapshots_tests.rb'
|
312
|
-
|
313
|
-
# Offense count: 7
|
314
|
-
# This cop supports safe autocorrection (--autocorrect).
|
315
|
-
Performance/StringIdentifierArgument:
|
316
|
-
Exclude:
|
317
|
-
- 'tests/models/compute/server_tests.rb'
|
318
|
-
|
319
|
-
# Offense count: 1
|
320
|
-
# This cop supports safe autocorrection (--autocorrect).
|
321
|
-
Rake/Desc:
|
322
|
-
Exclude:
|
323
|
-
- 'Rakefile'
|
324
|
-
|
325
|
-
# Offense count: 12
|
326
|
-
# This cop supports safe autocorrection (--autocorrect).
|
327
|
-
# Configuration parameters: EnforcedStyle.
|
328
|
-
# SupportedStyles: separated, grouped
|
329
|
-
Style/AccessorGrouping:
|
330
|
-
Exclude:
|
331
|
-
- 'lib/fog/vsphere/compute.rb'
|
332
|
-
- 'lib/fog/vsphere/models/compute/interfacetypes.rb'
|
333
|
-
- 'lib/fog/vsphere/models/compute/servers.rb'
|
334
|
-
|
335
|
-
# Offense count: 10
|
336
|
-
# This cop supports safe autocorrection (--autocorrect).
|
337
|
-
# Configuration parameters: AllowOnConstant, AllowOnSelfClass.
|
338
|
-
Style/CaseEquality:
|
339
|
-
Exclude:
|
340
|
-
- 'lib/fog/vsphere/requests/compute/list_child_snapshots.rb'
|
341
|
-
- 'lib/fog/vsphere/requests/compute/revert_to_snapshot.rb'
|
342
|
-
- 'tests/requests/compute/list_child_snapshots_tests.rb'
|
343
|
-
- 'tests/requests/compute/list_datastores_tests.rb'
|
344
|
-
- 'tests/requests/compute/list_hosts_tests.rb'
|
345
|
-
- 'tests/requests/compute/list_networks_tests.rb'
|
346
|
-
- 'tests/requests/compute/list_vm_cdroms_tests.rb'
|
347
|
-
- 'tests/requests/compute/list_vm_snapshots_tests.rb'
|
348
|
-
|
349
|
-
# Offense count: 8
|
350
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
351
|
-
Style/CaseLikeIf:
|
352
|
-
Exclude:
|
353
|
-
- 'lib/fog/vsphere/requests/compute/create_group.rb'
|
354
|
-
- 'lib/fog/vsphere/requests/compute/create_rule.rb'
|
355
|
-
- 'lib/fog/vsphere/requests/compute/create_vm.rb'
|
356
|
-
- 'lib/fog/vsphere/requests/compute/list_clusters.rb'
|
357
|
-
- 'lib/fog/vsphere/requests/compute/list_datacenters.rb'
|
358
|
-
- 'lib/fog/vsphere/requests/compute/list_networks.rb'
|
359
|
-
- 'lib/fog/vsphere/requests/compute/list_rules.rb'
|
360
|
-
|
361
|
-
# Offense count: 3
|
362
|
-
# This cop supports safe autocorrection (--autocorrect).
|
363
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
364
|
-
# AllowedMethods: ==, equal?, eql?
|
365
|
-
Style/ClassEqualityComparison:
|
366
|
-
Exclude:
|
367
|
-
- 'lib/fog/vsphere/requests/compute/create_folder.rb'
|
368
|
-
- 'lib/fog/vsphere/requests/compute/list_vm_cdroms.rb'
|
369
|
-
- 'lib/fog/vsphere/requests/compute/vm_clone.rb'
|
370
|
-
|
371
|
-
# Offense count: 1
|
372
|
-
Style/ClassVars:
|
373
|
-
Exclude:
|
374
|
-
- 'lib/fog/bin/vsphere.rb'
|
375
|
-
|
376
|
-
# Offense count: 2
|
377
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
378
|
-
Style/CollectionCompact:
|
379
|
-
Exclude:
|
380
|
-
- 'lib/fog/vsphere/requests/compute/list_folders.rb'
|
381
|
-
- 'lib/fog/vsphere/requests/compute/list_virtual_machines.rb'
|
382
|
-
|
383
|
-
# Offense count: 3
|
384
|
-
# This cop supports safe autocorrection (--autocorrect).
|
385
|
-
Style/ExpandPathArguments:
|
386
|
-
Exclude:
|
387
|
-
- 'fog-vsphere.gemspec'
|
388
|
-
- 'lib/fog/vsphere.rb'
|
389
|
-
- 'tests/helper.rb'
|
390
|
-
|
391
|
-
# Offense count: 185
|
392
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
393
|
-
# Configuration parameters: EnforcedStyle.
|
394
|
-
# SupportedStyles: always, always_true, never
|
395
|
-
Style/FrozenStringLiteralComment:
|
396
|
-
Enabled: false
|
397
|
-
|
398
|
-
# Offense count: 2
|
399
|
-
# This cop supports safe autocorrection (--autocorrect).
|
400
|
-
# Configuration parameters: AllowSplatArgument.
|
401
|
-
Style/HashConversion:
|
402
|
-
Exclude:
|
403
|
-
- 'lib/fog/vsphere/compute.rb'
|
404
|
-
- 'lib/fog/vsphere/requests/compute/vm_config_vnc.rb'
|
405
|
-
|
406
|
-
# Offense count: 2
|
407
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
408
|
-
Style/HashTransformKeys:
|
409
|
-
Exclude:
|
410
|
-
- 'lib/fog/vsphere/models/compute/server.rb'
|
411
|
-
|
412
|
-
# Offense count: 1
|
413
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
414
|
-
Style/HashTransformValues:
|
415
|
-
Exclude:
|
416
|
-
- 'lib/fog/vsphere/requests/compute/list_hosts.rb'
|
417
|
-
|
418
|
-
# Offense count: 2
|
419
|
-
# This cop supports safe autocorrection (--autocorrect).
|
420
|
-
# Configuration parameters: AllowIfModifier.
|
421
|
-
Style/IfInsideElse:
|
422
|
-
Exclude:
|
423
|
-
- 'lib/fog/vsphere/models/compute/cdrom.rb'
|
424
|
-
- 'lib/fog/vsphere/models/compute/volume.rb'
|
425
|
-
|
426
|
-
# Offense count: 27
|
427
|
-
# This cop supports safe autocorrection (--autocorrect).
|
428
|
-
Style/IfUnlessModifier:
|
429
|
-
Exclude:
|
430
|
-
- 'lib/fog/vsphere/models/compute/cdrom.rb'
|
431
|
-
- 'lib/fog/vsphere/models/compute/interface.rb'
|
432
|
-
- 'lib/fog/vsphere/models/compute/interfaces.rb'
|
433
|
-
- 'lib/fog/vsphere/models/compute/rule.rb'
|
434
|
-
- 'lib/fog/vsphere/models/compute/volume.rb'
|
435
|
-
- 'lib/fog/vsphere/requests/compute/create_group.rb'
|
436
|
-
- 'lib/fog/vsphere/requests/compute/create_rule.rb'
|
437
|
-
- 'lib/fog/vsphere/requests/compute/create_vm.rb'
|
438
|
-
- 'lib/fog/vsphere/requests/compute/folder_destroy.rb'
|
439
|
-
- 'lib/fog/vsphere/requests/compute/list_groups.rb'
|
440
|
-
- 'lib/fog/vsphere/requests/compute/list_resource_pools.rb'
|
441
|
-
- 'lib/fog/vsphere/requests/compute/list_server_types.rb'
|
442
|
-
- 'lib/fog/vsphere/requests/compute/revert_to_snapshot.rb'
|
443
|
-
- 'lib/fog/vsphere/requests/compute/vm_clone.rb'
|
444
|
-
- 'lib/fog/vsphere/requests/compute/vm_config_vnc.rb'
|
445
|
-
|
446
|
-
# Offense count: 1
|
447
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
448
|
-
Style/MapToHash:
|
449
|
-
Exclude:
|
450
|
-
- 'lib/fog/vsphere/compute.rb'
|
451
|
-
|
452
|
-
# Offense count: 2
|
453
|
-
Style/MultilineBlockChain:
|
454
|
-
Exclude:
|
455
|
-
- 'lib/fog/vsphere/requests/compute/vm_clone.rb'
|
456
|
-
|
457
|
-
# Offense count: 4
|
458
|
-
# This cop supports safe autocorrection (--autocorrect).
|
459
|
-
Style/MultilineTernaryOperator:
|
460
|
-
Exclude:
|
461
|
-
- 'lib/fog/vsphere/models/compute/cluster.rb'
|
462
|
-
- 'lib/fog/vsphere/requests/compute/list_child_snapshots.rb'
|
463
|
-
|
464
|
-
# Offense count: 2
|
465
|
-
# This cop supports safe autocorrection (--autocorrect).
|
466
|
-
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
|
467
|
-
Style/NumericLiterals:
|
468
|
-
MinDigits: 6
|
469
|
-
|
470
|
-
# Offense count: 4
|
471
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
472
|
-
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
473
|
-
# SupportedStyles: predicate, comparison
|
474
|
-
Style/NumericPredicate:
|
475
|
-
Exclude:
|
476
|
-
- 'spec/**/*'
|
477
|
-
- 'lib/fog/vsphere/requests/compute/list_compute_resources.rb'
|
478
|
-
- 'lib/fog/vsphere/requests/compute/modify_vm_interface.rb'
|
479
|
-
- 'tests/models/compute/rules_tests.rb'
|
480
|
-
|
481
|
-
# Offense count: 3
|
482
|
-
Style/OpenStructUse:
|
483
|
-
Exclude:
|
484
|
-
- 'tests/requests/compute/get_network_tests.rb'
|
485
|
-
|
486
|
-
# Offense count: 7
|
487
|
-
# Configuration parameters: AllowedMethods.
|
488
|
-
# AllowedMethods: respond_to_missing?
|
489
|
-
Style/OptionalBooleanParameter:
|
490
|
-
Exclude:
|
491
|
-
- 'lib/fog/vsphere/models/compute/snapshot.rb'
|
492
|
-
- 'lib/fog/vsphere/requests/compute/get_virtual_machine.rb'
|
493
|
-
- 'lib/fog/vsphere/requests/compute/host_shutdown.rb'
|
494
|
-
- 'lib/fog/vsphere/requests/compute/host_start_maintenance.rb'
|
495
|
-
- 'lib/fog/vsphere/requests/compute/vm_remove_snapshot.rb'
|
496
|
-
|
497
|
-
# Offense count: 1
|
498
|
-
# This cop supports safe autocorrection (--autocorrect).
|
499
|
-
# Configuration parameters: PreferredDelimiters.
|
500
|
-
Style/PercentLiteralDelimiters:
|
501
|
-
Exclude:
|
502
|
-
- 'Rakefile'
|
503
|
-
|
504
|
-
# Offense count: 1
|
505
|
-
# This cop supports safe autocorrection (--autocorrect).
|
506
|
-
Style/RedundantAssignment:
|
507
|
-
Exclude:
|
508
|
-
- 'lib/fog/vsphere/requests/compute/vm_clone.rb'
|
509
|
-
|
510
|
-
# Offense count: 6
|
511
|
-
# This cop supports safe autocorrection (--autocorrect).
|
512
|
-
Style/RedundantBegin:
|
513
|
-
Exclude:
|
514
|
-
- 'lib/fog/vsphere/compute.rb'
|
515
|
-
- 'lib/fog/vsphere/requests/compute/get_virtual_machine.rb'
|
516
|
-
- 'lib/fog/vsphere/requests/compute/list_hosts.rb'
|
517
|
-
- 'lib/fog/vsphere/requests/compute/vm_clone.rb'
|
518
|
-
|
519
|
-
# Offense count: 3
|
520
|
-
# This cop supports safe autocorrection (--autocorrect).
|
521
|
-
Style/RedundantCondition:
|
522
|
-
Exclude:
|
523
|
-
- 'lib/fog/vsphere/requests/compute/create_vm.rb'
|
524
|
-
- 'lib/fog/vsphere/requests/compute/get_virtual_machine.rb'
|
525
|
-
|
526
|
-
# Offense count: 2
|
527
|
-
# This cop supports safe autocorrection (--autocorrect).
|
528
|
-
Style/RedundantRegexpEscape:
|
529
|
-
Exclude:
|
530
|
-
- 'fog-vsphere.gemspec'
|
531
|
-
- 'lib/fog/vsphere/requests/compute/list_clusters.rb'
|
532
|
-
|
533
|
-
# Offense count: 2
|
534
|
-
# This cop supports safe autocorrection (--autocorrect).
|
535
|
-
# Configuration parameters: AllowMultipleReturnValues.
|
536
|
-
Style/RedundantReturn:
|
537
|
-
Exclude:
|
538
|
-
- 'lib/fog/vsphere/requests/compute/create_group.rb'
|
539
|
-
- 'lib/fog/vsphere/requests/compute/create_rule.rb'
|
540
|
-
|
541
|
-
# Offense count: 2
|
542
|
-
# This cop supports safe autocorrection (--autocorrect).
|
543
|
-
Style/RedundantSelf:
|
544
|
-
Exclude:
|
545
|
-
- 'lib/fog/vsphere/models/compute/volume.rb'
|
546
|
-
|
547
|
-
# Offense count: 1
|
548
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
549
|
-
Style/RedundantSort:
|
550
|
-
Exclude:
|
551
|
-
- 'lib/fog/vsphere/models/compute/interface.rb'
|
552
|
-
|
553
|
-
# Offense count: 3
|
554
|
-
# This cop supports safe autocorrection (--autocorrect).
|
555
|
-
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
556
|
-
# SupportedStyles: slashes, percent_r, mixed
|
557
|
-
Style/RegexpLiteral:
|
558
|
-
Exclude:
|
559
|
-
- 'lib/fog/vsphere/requests/compute/create_folder.rb'
|
560
|
-
- 'lib/fog/vsphere/requests/compute/get_folder.rb'
|
561
|
-
- 'lib/fog/vsphere/requests/compute/list_resource_pools.rb'
|
562
|
-
|
563
|
-
# Offense count: 14
|
564
|
-
# This cop supports safe autocorrection (--autocorrect).
|
565
|
-
# Configuration parameters: EnforcedStyle.
|
566
|
-
# SupportedStyles: implicit, explicit
|
567
|
-
Style/RescueStandardError:
|
568
|
-
Exclude:
|
569
|
-
- 'lib/fog/vsphere/compute.rb'
|
570
|
-
- 'lib/fog/vsphere/requests/compute/list_hosts.rb'
|
571
|
-
- 'lib/fog/vsphere/requests/compute/list_vm_cdroms.rb'
|
572
|
-
- 'lib/fog/vsphere/requests/compute/list_vm_volumes.rb'
|
573
|
-
|
574
|
-
# Offense count: 9
|
575
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
576
|
-
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
577
|
-
# AllowedMethods: present?, blank?, presence, try, try!
|
578
|
-
Style/SafeNavigation:
|
579
|
-
Exclude:
|
580
|
-
- 'lib/fog/vsphere/models/compute/server.rb'
|
581
|
-
- 'lib/fog/vsphere/requests/compute/create_vm.rb'
|
582
|
-
- 'lib/fog/vsphere/requests/compute/list_server_types.rb'
|
583
|
-
- 'lib/fog/vsphere/requests/compute/modify_vm_interface.rb'
|
584
|
-
|
585
|
-
# Offense count: 2
|
586
|
-
# This cop supports safe autocorrection (--autocorrect).
|
587
|
-
# Configuration parameters: AllowAsExpressionSeparator.
|
588
|
-
Style/Semicolon:
|
589
|
-
Exclude:
|
590
|
-
- 'tests/models/compute/rules_tests.rb'
|
591
|
-
|
592
|
-
# Offense count: 1
|
593
|
-
# This cop supports safe autocorrection (--autocorrect).
|
594
|
-
# Configuration parameters: AllowModifier.
|
595
|
-
Style/SoleNestedConditional:
|
596
|
-
Exclude:
|
597
|
-
- 'lib/fog/vsphere/requests/compute/vm_clone.rb'
|
598
|
-
|
599
|
-
# Offense count: 5
|
600
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
601
|
-
# Configuration parameters: Mode.
|
602
|
-
Style/StringConcatenation:
|
603
|
-
Exclude:
|
604
|
-
- 'lib/fog/vsphere/compute.rb'
|
605
|
-
- 'lib/fog/vsphere/requests/compute/get_folder.rb'
|
606
|
-
- 'lib/fog/vsphere/requests/compute/upload_iso.rb'
|
607
|
-
- 'lib/fog/vsphere/requests/compute/vm_clone.rb'
|
608
|
-
|
609
|
-
# Offense count: 174
|
610
|
-
# This cop supports safe autocorrection (--autocorrect).
|
611
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
|
612
|
-
# URISchemes: http, https
|
613
|
-
Layout/LineLength:
|
614
|
-
Max: 317
|
data/CONTRIBUTING.md
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
# Getting Involved
|
2
|
-
|
3
|
-
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
|
4
|
-
|
5
|
-
New contributors are always welcome, when it doubt please ask questions.
|
6
|
-
We strive to be an open and welcoming community. Please be nice to one another.
|
7
|
-
|
8
|
-
## Non-Coding
|
9
|
-
|
10
|
-
- Offer feedback on open [issues](https://github.com/fog/fog-vsphere/issues).
|
11
|
-
- Organize or volunteer at events.
|
12
|
-
|
13
|
-
## Coding
|
14
|
-
|
15
|
-
- Pick a task:
|
16
|
-
- Review open [issues](https://github.com/fog/fog-vsphere/issues) for things to help on.
|
17
|
-
- [Create an issue](https://github.com/fog/fog-vsphere/issues/new) to start a discussion on additions or features.
|
18
|
-
- Fork the project, add your changes and tests to cover them in a topic branch.
|
19
|
-
- Commit your changes and rebase against `fog/fog-vsphere` to ensure everything is up to date.
|
20
|
-
- [Submit a pull request](https://github.com/fog/fog-vsphere/compare/)
|
21
|
-
|
22
|
-
### Testing
|
23
|
-
|
24
|
-
We are in a process of a covering the functionality by integrational tests.
|
25
|
-
We would like to cover all the requests made towards the vSphere instance.
|
26
|
-
Doing so should give us more confidence and make the development easier.
|
27
|
-
We will appreciate if you are able to help. Following steps will guide you
|
28
|
-
through a process of covering new/changed funcionality.
|
29
|
-
|
30
|
-
1. First of all you will need vSphere instance.
|
31
|
-
2. You need to add your vSphere instance login info in `tests/vsphere_config.yml` file.
|
32
|
-
```yaml
|
33
|
-
server: example.com
|
34
|
-
username: '<UserName>'
|
35
|
-
password: '<password>'
|
36
|
-
rev: '6.7' # optional revision of the vsphere
|
37
|
-
expected_pubkey_hash: <expected_pubkey_hash>
|
38
|
-
```
|
39
|
-
*This file is gitignored to ensure you won't accidently commit it.*
|
40
|
-
*We are making sure, that the login request is not recorded, but you may want to reasure it in a newly written cassette.*
|
41
|
-
|
42
|
-
3. write your test like this:
|
43
|
-
```ruby
|
44
|
-
# tests/requests/compute/<your_request>
|
45
|
-
it 'parses the mocked request' do
|
46
|
-
recording_webmock_cassette('unique_mocked_request') do
|
47
|
-
#stuff I want to get tested
|
48
|
-
end
|
49
|
-
end
|
50
|
-
```
|
51
|
-
*But be aware, we do not mock the names of your datacenters and/or clusters, please be aware, you will need to take care not to commit any private server names/IP addresses.*
|
52
|
-
|
53
|
-
4. Run the test
|
54
|
-
5. Change the `recording_webmock_cassette` to a `with_webmock_cassette`
|
55
|
-
6. Commit, open a PR :tada:
|
data/Gemfile
DELETED
data/Jenkinsfile
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
pipeline {
|
2
|
-
agent any
|
3
|
-
stages {
|
4
|
-
stage('Start Ansible Job') {
|
5
|
-
steps {
|
6
|
-
ansibleTower(jobTemplate: '8', towerServer: 'Fog-Tower', jobType: 'run', inventory: 'Upstream-Fog', importTowerLogs: true, verbose: true, credential: 'Fog-SSH', throwExceptionWhenFail: true, importWorkflowChildLogs: true, templateType: 'job')
|
7
|
-
}
|
8
|
-
}
|
9
|
-
}
|
10
|
-
}
|