vsphere-automation-vcenter 0.3.0 → 0.4.0
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/Gemfile.lock +11 -17
- data/README.md +1 -1
- data/lib/vsphere-automation-vcenter/version.rb +1 -1
- data/pkg/vsphere-automation-vcenter-0.4.0.gem +0 -0
- data/spec/api/certificate_management_vcenter_tls_api_spec.rb +0 -1
- data/spec/api/deployment_api_spec.rb +0 -1
- data/spec/api/deployment_import_history_api_spec.rb +0 -1
- data/spec/api/deployment_install_api_spec.rb +0 -1
- data/spec/api/deployment_install_psc_replicated_api_spec.rb +0 -1
- data/spec/api/deployment_install_psc_standalone_api_spec.rb +0 -1
- data/spec/api/deployment_install_remote_psc_api_spec.rb +0 -1
- data/spec/api/deployment_question_api_spec.rb +0 -1
- data/spec/api/deployment_upgrade_api_spec.rb +0 -1
- data/spec/api/inventory_datastore_api_spec.rb +0 -1
- data/spec/api/inventory_network_api_spec.rb +0 -1
- data/spec/api/iso_image_api_spec.rb +0 -2
- data/spec/api/ovf_library_item_api_spec.rb +0 -1
- data/spec/api/storage_policies_api_spec.rb +0 -1
- data/spec/api/topology_pscs_api_spec.rb +0 -1
- data/spec/api/vcha_cluster_active_api_spec.rb +0 -1
- data/spec/api/vcha_cluster_api_spec.rb +0 -1
- data/spec/api/vcha_cluster_mode_api_spec.rb +0 -1
- data/spec/api/vcha_cluster_passive_api_spec.rb +0 -1
- data/spec/api/vcha_cluster_witness_api_spec.rb +0 -1
- data/spec/api/vcha_vc_credentials_api_spec.rb +0 -1
- data/spec/api/vm_guest_power_api_spec.rb +0 -1
- data/spec/api/vm_storage_policy_compliance_api_spec.rb +0 -1
- data/spec/api/vm_template_library_items_api_spec.rb +0 -1
- data/spec/spec_helper.rb +3 -0
- data/vsphere-automation-vcenter.gemspec +2 -3
- metadata +7 -15
- data/lib/vsphere-automation-vcenter/api_client.rb +0 -390
- data/lib/vsphere-automation-vcenter/api_error.rb +0 -34
- data/lib/vsphere-automation-vcenter/configuration.rb +0 -212
- data/pkg/vsphere-automation-vcenter-0.2.1.gem +0 -0
- data/pkg/vsphere-automation-vcenter-0.2.2.gem +0 -0
- data/spec/api_client_spec.rb +0 -222
- data/spec/configuration_spec.rb +0 -38
data/spec/configuration_spec.rb
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
-
# SPDX-License-Identifier: MIT
|
3
|
-
|
4
|
-
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
5
|
-
|
6
|
-
# vcenter - VMware vCenter Server provides a centralized platform for managing your VMware vSphere environments
|
7
|
-
|
8
|
-
|
9
|
-
require 'spec_helper'
|
10
|
-
|
11
|
-
describe VSphereAutomation::Configuration do
|
12
|
-
let(:config) { VSphereAutomation::Configuration.default }
|
13
|
-
|
14
|
-
before(:each) do
|
15
|
-
# uncomment below to setup host and base_path
|
16
|
-
# require 'URI'
|
17
|
-
# uri = URI.parse("https://<vcenter>/rest")
|
18
|
-
# VSphereAutomation.configure do |c|
|
19
|
-
# c.host = uri.host
|
20
|
-
# c.base_path = uri.path
|
21
|
-
# end
|
22
|
-
end
|
23
|
-
|
24
|
-
describe '#base_url' do
|
25
|
-
it 'should have the default value' do
|
26
|
-
# uncomment below to test default value of the base path
|
27
|
-
# expect(config.base_url).to eq("https://<vcenter>/rest")
|
28
|
-
end
|
29
|
-
|
30
|
-
it 'should remove trailing slashes' do
|
31
|
-
[nil, '', '/', '//'].each do |base_path|
|
32
|
-
config.base_path = base_path
|
33
|
-
# uncomment below to test trailing slashes
|
34
|
-
# expect(config.base_url).to eq("https://<vcenter>/rest")
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|