fog 2.0.0 → 2.1.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 +5 -5
- data/.github/stale.yml +17 -0
- data/.travis.yml +1 -0
- data/CHANGELOG.md +37 -0
- data/README.md +3 -3
- data/fog.gemspec +6 -6
- data/lib/fog.rb +0 -1
- data/lib/fog/bin.rb +0 -1
- data/lib/fog/bin/brightbox.rb +2 -2
- data/lib/fog/cloudstack/models/compute/server.rb +2 -0
- data/lib/fog/linode/requests/compute/avail_datacenters.rb +1 -0
- data/lib/fog/opennebula/compute.rb +6 -1
- data/lib/fog/opennebula/requests/compute/OpenNebulaVNC.rb +5 -1
- data/lib/fog/version.rb +1 -1
- data/lib/tasks/changelog_task.rb +1 -0
- data/spec/fog/bin/atmos_spec.rb +0 -10
- data/spec/fog/bin/aws_spec.rb +0 -18
- data/spec/fog/bin/baremetalcloud_spec.rb +0 -10
- data/spec/fog/bin/brightbox_spec.rb +2 -2
- data/spec/fog/bin_spec.rb +0 -3
- data/tests/cloudsigma/models/snapshot_tests.rb +2 -0
- data/tests/cloudsigma/models/snapshots_tests.rb +1 -0
- data/tests/cloudsigma/requests/snapshots_tests.rb +1 -0
- data/tests/cloudsigma/requests/volumes_tests.rb +1 -1
- data/tests/cloudstack/compute/models/volume_tests.rb +1 -1
- data/tests/compute/helper.rb +0 -9
- data/tests/dns/helper.rb +0 -6
- data/tests/helpers/mock_helper.rb +0 -2
- data/tests/opennebula/compute_tests.rb +5 -2
- data/tests/opennebula/models/compute/flavor_tests.rb +5 -1
- data/tests/opennebula/models/compute/flavors_tests.rb +5 -2
- data/tests/opennebula/models/compute/group_tests.rb +5 -2
- data/tests/opennebula/models/compute/groups_tests.rb +5 -2
- data/tests/opennebula/models/compute/network_tests.rb +5 -1
- data/tests/opennebula/models/compute/networks_tests.rb +5 -2
- data/tests/opennebula/requests/compute/vm_allocate_tests.rb +5 -1
- data/tests/opennebula/requests/compute/vm_suspend_resume_tests.rb +5 -2
- metadata +26 -375
- data/lib/fog/bin/bluebox.rb +0 -36
- data/lib/fog/bluebox.rb +0 -3
- data/lib/fog/bluebox/blb.rb +0 -82
- data/lib/fog/bluebox/compute.rb +0 -98
- data/lib/fog/bluebox/core.rb +0 -12
- data/lib/fog/bluebox/dns.rb +0 -101
- data/lib/fog/bluebox/models/blb/lb_application.rb +0 -29
- data/lib/fog/bluebox/models/blb/lb_applications.rb +0 -24
- data/lib/fog/bluebox/models/blb/lb_backend.rb +0 -19
- data/lib/fog/bluebox/models/blb/lb_backends.rb +0 -27
- data/lib/fog/bluebox/models/blb/lb_service.rb +0 -32
- data/lib/fog/bluebox/models/blb/lb_services.rb +0 -27
- data/lib/fog/bluebox/models/compute/flavor.rb +0 -41
- data/lib/fog/bluebox/models/compute/flavors.rb +0 -24
- data/lib/fog/bluebox/models/compute/image.rb +0 -30
- data/lib/fog/bluebox/models/compute/images.rb +0 -24
- data/lib/fog/bluebox/models/compute/location.rb +0 -13
- data/lib/fog/bluebox/models/compute/locations.rb +0 -24
- data/lib/fog/bluebox/models/compute/server.rb +0 -121
- data/lib/fog/bluebox/models/compute/servers.rb +0 -32
- data/lib/fog/bluebox/models/dns/record.rb +0 -52
- data/lib/fog/bluebox/models/dns/records.rb +0 -32
- data/lib/fog/bluebox/models/dns/zone.rb +0 -62
- data/lib/fog/bluebox/models/dns/zones.rb +0 -24
- data/lib/fog/bluebox/parsers/dns/create_record.rb +0 -22
- data/lib/fog/bluebox/parsers/dns/create_zone.rb +0 -22
- data/lib/fog/bluebox/parsers/dns/get_record.rb +0 -17
- data/lib/fog/bluebox/parsers/dns/get_records.rb +0 -24
- data/lib/fog/bluebox/parsers/dns/get_zone.rb +0 -22
- data/lib/fog/bluebox/parsers/dns/get_zones.rb +0 -26
- data/lib/fog/bluebox/requests/blb/add_machine_to_lb_application.rb +0 -33
- data/lib/fog/bluebox/requests/blb/add_machine_to_lb_backend.rb +0 -31
- data/lib/fog/bluebox/requests/blb/get_lb_application.rb +0 -32
- data/lib/fog/bluebox/requests/blb/get_lb_applications.rb +0 -30
- data/lib/fog/bluebox/requests/blb/get_lb_backend.rb +0 -35
- data/lib/fog/bluebox/requests/blb/get_lb_backends.rb +0 -35
- data/lib/fog/bluebox/requests/blb/get_lb_machine.rb +0 -34
- data/lib/fog/bluebox/requests/blb/get_lb_machines.rb +0 -34
- data/lib/fog/bluebox/requests/blb/get_lb_service.rb +0 -35
- data/lib/fog/bluebox/requests/blb/get_lb_services.rb +0 -35
- data/lib/fog/bluebox/requests/blb/remove_machine_from_lb_backend.rb +0 -28
- data/lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb +0 -29
- data/lib/fog/bluebox/requests/compute/create_block.rb +0 -44
- data/lib/fog/bluebox/requests/compute/create_template.rb +0 -25
- data/lib/fog/bluebox/requests/compute/destroy_block.rb +0 -24
- data/lib/fog/bluebox/requests/compute/destroy_template.rb +0 -24
- data/lib/fog/bluebox/requests/compute/get_block.rb +0 -24
- data/lib/fog/bluebox/requests/compute/get_blocks.rb +0 -26
- data/lib/fog/bluebox/requests/compute/get_location.rb +0 -24
- data/lib/fog/bluebox/requests/compute/get_locations.rb +0 -22
- data/lib/fog/bluebox/requests/compute/get_product.rb +0 -24
- data/lib/fog/bluebox/requests/compute/get_products.rb +0 -23
- data/lib/fog/bluebox/requests/compute/get_template.rb +0 -24
- data/lib/fog/bluebox/requests/compute/get_templates.rb +0 -24
- data/lib/fog/bluebox/requests/compute/reboot_block.rb +0 -25
- data/lib/fog/bluebox/requests/dns/create_record.rb +0 -44
- data/lib/fog/bluebox/requests/dns/create_zone.rb +0 -48
- data/lib/fog/bluebox/requests/dns/delete_record.rb +0 -27
- data/lib/fog/bluebox/requests/dns/delete_zone.rb +0 -27
- data/lib/fog/bluebox/requests/dns/get_record.rb +0 -36
- data/lib/fog/bluebox/requests/dns/get_records.rb +0 -37
- data/lib/fog/bluebox/requests/dns/get_zone.rb +0 -40
- data/lib/fog/bluebox/requests/dns/get_zones.rb +0 -39
- data/lib/fog/bluebox/requests/dns/update_record.rb +0 -30
- data/lib/fog/bluebox/requests/dns/update_zone.rb +0 -26
- data/lib/fog/ovirt.rb +0 -1
- data/lib/fog/ovirt/requests/compute/activate_volume.rb +0 -22
- data/lib/fog/ovirt/requests/compute/deactivate_volume.rb +0 -22
- data/spec/fog/bin/bluebox_spec.rb +0 -55
- data/spec/fog/compute_spec.rb +0 -19
- data/spec/fog/dns_spec.rb +0 -19
- data/tests/bluebox/requests/blb/helper.rb +0 -64
- data/tests/bluebox/requests/blb/lb_tests.rb +0 -75
- data/tests/bluebox/requests/compute/block_tests.rb +0 -83
- data/tests/bluebox/requests/compute/helper.rb +0 -16
- data/tests/bluebox/requests/compute/location_tests.rb +0 -32
- data/tests/bluebox/requests/compute/product_tests.rb +0 -34
- data/tests/bluebox/requests/compute/template_tests.rb +0 -37
- data/tests/bluebox/requests/dns/dns_tests.rb +0 -258
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 95b9f7c695f3decf7ef8baffd30aa09d3dc6737f5a9c2969990a559681ba7d8a
|
|
4
|
+
data.tar.gz: becfb632718737aa4b72a682731cc2ed4c42eecce48286374d6601e40712b67f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee525a39207685911b2e63c02eb084484bd03d6a66819d52f5ce032a6917bb7e2ee61d6c0aba378cbc94322d2874d750c1e5348a8ffa778ce45a34cf7ff3d98d
|
|
7
|
+
data.tar.gz: 5e2aa711a0131cd58a9e4c7e18e47fd376ef4f1b7640c93f107c4ce31d6b238bf928080949b59d819f45da3778c7715944096ed132274f2b09fda146ea22219d
|
data/.github/stale.yml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Number of days of inactivity before an issue becomes stale
|
|
2
|
+
daysUntilStale: 60
|
|
3
|
+
# Number of days of inactivity before a stale issue is closed
|
|
4
|
+
daysUntilClose: 7
|
|
5
|
+
# Issues with these labels will never be considered stale
|
|
6
|
+
exemptLabels:
|
|
7
|
+
- pinned
|
|
8
|
+
- security
|
|
9
|
+
# Label to use when marking an issue as stale
|
|
10
|
+
staleLabel: wontfix
|
|
11
|
+
# Comment to post when marking an issue as stale. Set to `false` to disable
|
|
12
|
+
markComment: >
|
|
13
|
+
This issue has been automatically marked stale due to inactivity.
|
|
14
|
+
It will be closed if no further activity occurs.
|
|
15
|
+
Thank you for your contributions.
|
|
16
|
+
# Comment to post when closing a stale issue. Set to `false` to disable
|
|
17
|
+
closeComment: false
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
## 2.1.0 11/12/2018
|
|
2
|
+
*Hash* adc3d36e1c47976a1ec2630bd4577e082593c884
|
|
3
|
+
|
|
4
|
+
Statistic | Value
|
|
5
|
+
------------- | --------:
|
|
6
|
+
Collaborators | 2
|
|
7
|
+
Forks | 1545
|
|
8
|
+
Open Issues | 7
|
|
9
|
+
Watchers | 4168
|
|
10
|
+
|
|
11
|
+
**MVP!** Akira Matsuda
|
|
12
|
+
|
|
13
|
+
#### [cloudstack]
|
|
14
|
+
* Allow specifying the size of root volume. thanks Takashi Kokubun
|
|
15
|
+
|
|
16
|
+
#### [misc]
|
|
17
|
+
* GitHub is https by default. thanks Akira Matsuda
|
|
18
|
+
* Remove BlueBox Blocks. thanks Chris Lundquist
|
|
19
|
+
* Add SemVer stability badge to README. thanks Grey Baker
|
|
20
|
+
* Upgrade google dependency. thanks Nat Welch
|
|
21
|
+
* Fix whitespace in gemspec. thanks Nat Welch
|
|
22
|
+
* unpin mime-types. thanks Nat Welch
|
|
23
|
+
* Removing leftovers from extraction of fog-ovirt. thanks Ori Rabin
|
|
24
|
+
* Make CloudSigma snapshot tests pending. thanks Paul Thornthwaite
|
|
25
|
+
* Rescue `opennebula` loading issues. thanks Paul Thornthwaite
|
|
26
|
+
* "Fix" incorrect `Compute` provider credential test. thanks Paul Thornthwaite
|
|
27
|
+
* Tweak CloudSigma testing schema. thanks Paul Thornthwaite
|
|
28
|
+
* Fix Cloudstack `#connection` deprecation warning. thanks Paul Thornthwaite
|
|
29
|
+
* Remove tests for deprecated binary `#[]`. thanks Paul Thornthwaite
|
|
30
|
+
* Enable Ruby 2.5 in CI. thanks Pavel Valena
|
|
31
|
+
* lib/fog/linode: Add Tokyo2 to avail_datacenters. thanks Penny
|
|
32
|
+
* Fix compatibility with fog-brightbox 1.0.0+. thanks t Ondruch
|
|
33
|
+
* v2.0.0. thanks geemus
|
|
34
|
+
* add stale bot config. thanks geemus
|
|
35
|
+
* remove tests around deprecated usage. thanks geemus
|
|
36
|
+
|
|
37
|
+
|
|
1
38
|
## 2.0.0 03/06/2018
|
|
2
39
|
*Hash* ff9fe270cd23627f748dd37e9bf2800640187f60
|
|
3
40
|
|
data/README.md
CHANGED
|
@@ -7,9 +7,9 @@ fog is the Ruby cloud services library, top to bottom:
|
|
|
7
7
|
* Mocks make testing and integrating a breeze.
|
|
8
8
|
|
|
9
9
|
[](http://travis-ci.org/fog/fog)
|
|
10
|
-
[](https://gemnasium.com/fog/fog)
|
|
11
10
|
[](https://codeclimate.com/github/fog/fog)
|
|
12
11
|
[](http://badge.fury.io/rb/fog)
|
|
12
|
+
[](https://dependabot.com/compatibility-score.html?dependency-name=fog&package-manager=bundler&version-scheme=semver)
|
|
13
13
|
|
|
14
14
|
## Dependency Notice
|
|
15
15
|
|
|
@@ -17,10 +17,10 @@ Currently all fog providers are getting separated into metagems to lower the
|
|
|
17
17
|
load time and dependency count.
|
|
18
18
|
|
|
19
19
|
If there's a metagem available for your cloud provider, e.g. `fog-aws`,
|
|
20
|
-
you should be using it instead of requiring the full fog collection to avoid
|
|
20
|
+
you should be using it instead of requiring the full fog collection to avoid
|
|
21
21
|
unnecessary dependencies.
|
|
22
22
|
|
|
23
|
-
'fog' should be required explicitly only if the provider you use doesn't yet
|
|
23
|
+
'fog' should be required explicitly only if the provider you use doesn't yet
|
|
24
24
|
have a metagem available.
|
|
25
25
|
|
|
26
26
|
## Getting Started
|
data/fog.gemspec
CHANGED
|
@@ -11,8 +11,8 @@ Gem::Specification.new do |s|
|
|
|
11
11
|
## If your rubyforge_project name is different, then edit it and comment out
|
|
12
12
|
## the sub! line in the Rakefile
|
|
13
13
|
s.name = "fog"
|
|
14
|
-
s.version = "2.
|
|
15
|
-
s.date = "2018-
|
|
14
|
+
s.version = "2.1.0"
|
|
15
|
+
s.date = "2018-11-11"
|
|
16
16
|
s.rubyforge_project = "fog"
|
|
17
17
|
|
|
18
18
|
## Make sure your summary is short. The description may be as long
|
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|
|
25
25
|
## a custom homepage, consider using your GitHub URL or the like.
|
|
26
26
|
s.authors = ["geemus (Wesley Beary)"]
|
|
27
27
|
s.email = "geemus@gmail.com"
|
|
28
|
-
s.homepage = "
|
|
28
|
+
s.homepage = "https://github.com/fog/fog"
|
|
29
29
|
s.license = "MIT"
|
|
30
30
|
|
|
31
31
|
## This sections is only necessary if you have C extensions.
|
|
@@ -63,7 +63,7 @@ Gem::Specification.new do |s|
|
|
|
63
63
|
s.add_dependency("fog-dnsimple", "~> 1.0")
|
|
64
64
|
s.add_dependency("fog-dynect", "~> 0.0.2")
|
|
65
65
|
s.add_dependency("fog-ecloud", "~> 0.1")
|
|
66
|
-
s.add_dependency("fog-google", "
|
|
66
|
+
s.add_dependency("fog-google", "~> 1.0")
|
|
67
67
|
s.add_dependency("fog-internet-archive")
|
|
68
68
|
s.add_dependency("fog-joyent")
|
|
69
69
|
s.add_dependency("fog-local")
|
|
@@ -86,7 +86,7 @@ Gem::Specification.new do |s|
|
|
|
86
86
|
|
|
87
87
|
s.add_development_dependency("docker-api", ">= 1.13.6")
|
|
88
88
|
s.add_development_dependency("fission")
|
|
89
|
-
s.add_development_dependency("mime-types"
|
|
89
|
+
s.add_development_dependency("mime-types")
|
|
90
90
|
s.add_development_dependency("minitest")
|
|
91
91
|
s.add_development_dependency("minitest-stub-const")
|
|
92
92
|
s.add_development_dependency("opennebula")
|
|
@@ -115,7 +115,7 @@ If there's a metagem available for your cloud provider, e.g. `fog-aws`,
|
|
|
115
115
|
you should be using it instead of requiring the full fog collection to avoid
|
|
116
116
|
unnecessary dependencies.
|
|
117
117
|
|
|
118
|
-
'fog' should be required explicitly only if the provider you use doesn't yet
|
|
118
|
+
'fog' should be required explicitly only if the provider you use doesn't yet
|
|
119
119
|
have a metagem available.
|
|
120
120
|
------------------------------
|
|
121
121
|
POSTINST
|
data/lib/fog.rb
CHANGED
data/lib/fog/bin.rb
CHANGED
data/lib/fog/bin/brightbox.rb
CHANGED
|
@@ -3,9 +3,9 @@ class Brightbox < Fog::Bin
|
|
|
3
3
|
def class_for(key)
|
|
4
4
|
case key
|
|
5
5
|
when :compute
|
|
6
|
-
Fog::Compute
|
|
6
|
+
Fog::Brightbox::Compute
|
|
7
7
|
when :storage
|
|
8
|
-
Fog::Storage
|
|
8
|
+
Fog::Brightbox::Storage
|
|
9
9
|
else
|
|
10
10
|
raise ArgumentError, "Unsupported #{self} service: #{key}"
|
|
11
11
|
end
|
|
@@ -40,6 +40,7 @@ module Fog
|
|
|
40
40
|
attribute :nics, :type => :array, :aliases => 'nic'
|
|
41
41
|
attribute :job_id, :aliases => 'jobid' # only on create
|
|
42
42
|
attribute :size, :type => :integer
|
|
43
|
+
attribute :root_disk_size, :type => :integer
|
|
43
44
|
|
|
44
45
|
attr_accessor :network_ids, :disk_offering_id, :ip_address, :ip_to_network_list
|
|
45
46
|
attr_writer :security_group_ids
|
|
@@ -132,6 +133,7 @@ module Fog
|
|
|
132
133
|
'size' => size,
|
|
133
134
|
}
|
|
134
135
|
|
|
136
|
+
options.merge!('rootdisksize' => root_disk_size) if root_disk_size
|
|
135
137
|
options.merge!('networkids' => network_ids) if network_ids
|
|
136
138
|
options.merge!('securitygroupids' => security_group_ids) unless security_group_ids.empty?
|
|
137
139
|
|
|
@@ -32,6 +32,7 @@ module Fog
|
|
|
32
32
|
{ "LOCATION" => "Tokyo, JP", "DATACENTERID" => 8, "ABBR" => "tokyo" },
|
|
33
33
|
{ "LOCATION" => "Singapore, SGP", "DATACENTERID" => 9, "ABBR" => "singapore" },
|
|
34
34
|
{ "LOCATION" => "Frankfurt, DE", "DATACENTERID" => 10, "ABBR" => "frankfurt" },
|
|
35
|
+
{ "LOCATION" => "Tokyo 2, JP", "DATACENTERID" => 11, "ABBR" => "tokyo2" },
|
|
35
36
|
],
|
|
36
37
|
"ACTION" => "avail.datacenters"
|
|
37
38
|
}
|
|
@@ -98,7 +98,12 @@ module Fog
|
|
|
98
98
|
@opennebula_endpoint = options[:opennebula_endpoint]
|
|
99
99
|
@opennebula_username = options[:opennebula_username]
|
|
100
100
|
@opennebula_password = options[:opennebula_password]
|
|
101
|
-
|
|
101
|
+
|
|
102
|
+
begin
|
|
103
|
+
require "opennebula"
|
|
104
|
+
rescue LoadError
|
|
105
|
+
raise Fog::Errors::LoadError, "To use OpenNebula provider, you must load 'opennebula' gem"
|
|
106
|
+
end
|
|
102
107
|
end
|
|
103
108
|
|
|
104
109
|
def client
|
data/lib/fog/version.rb
CHANGED
data/lib/tasks/changelog_task.rb
CHANGED
data/spec/fog/bin/atmos_spec.rb
CHANGED
|
@@ -20,14 +20,4 @@ describe Atmos do
|
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
|
-
|
|
24
|
-
describe "#[]" do
|
|
25
|
-
describe "when requesting storage service" do
|
|
26
|
-
it "returns instance" do
|
|
27
|
-
Fog::Storage::Atmos.stub(:new, "instance") do
|
|
28
|
-
assert_equal "instance", Atmos[:storage]
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
23
|
end
|
data/spec/fog/bin/aws_spec.rb
CHANGED
|
@@ -77,22 +77,4 @@ describe AWS do
|
|
|
77
77
|
end
|
|
78
78
|
end
|
|
79
79
|
end
|
|
80
|
-
|
|
81
|
-
describe "#[]" do
|
|
82
|
-
describe "when service is recognised" do
|
|
83
|
-
it "returns correct instance" do
|
|
84
|
-
KEY_CLASS_MAPPING.each do |key, klass|
|
|
85
|
-
klass.stub(:new, "#{klass} instance") do
|
|
86
|
-
assert_equal "#{klass} instance", AWS[key]
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
end
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
describe "when service is not recognised" do
|
|
93
|
-
it "raises ArgumentError" do
|
|
94
|
-
assert_raises(ArgumentError) { AWS[:bad_service] }
|
|
95
|
-
end
|
|
96
|
-
end
|
|
97
|
-
end
|
|
98
80
|
end
|
|
@@ -20,14 +20,4 @@ describe BareMetalCloud do
|
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
|
-
|
|
24
|
-
describe "#[]" do
|
|
25
|
-
describe "when requesting compute service" do
|
|
26
|
-
it "returns instance" do
|
|
27
|
-
Fog::Compute::BareMetalCloud.stub(:new, "instance") do
|
|
28
|
-
assert_equal "instance", BareMetalCloud[:compute]
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
23
|
end
|
|
@@ -17,13 +17,13 @@ describe Brightbox do
|
|
|
17
17
|
describe "#class_for" do
|
|
18
18
|
describe "when requesting compute service" do
|
|
19
19
|
it "returns correct class" do
|
|
20
|
-
assert_equal Fog::Compute
|
|
20
|
+
assert_equal Fog::Brightbox::Compute, Brightbox.class_for(:compute)
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
describe "when requesting storage service" do
|
|
25
25
|
it "returns correct class" do
|
|
26
|
-
assert_equal Fog::Storage
|
|
26
|
+
assert_equal Fog::Brightbox::Storage, Brightbox.class_for(:storage)
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
end
|
data/spec/fog/bin_spec.rb
CHANGED
|
@@ -7,7 +7,6 @@ describe Fog do
|
|
|
7
7
|
assert_equal "Atmos", Fog.providers[:atmos]
|
|
8
8
|
assert_equal "AWS", Fog.providers[:aws]
|
|
9
9
|
assert_equal "BareMetalCloud", Fog.providers[:baremetalcloud]
|
|
10
|
-
assert_equal "Bluebox", Fog.providers[:bluebox]
|
|
11
10
|
assert_equal "Brightbox", Fog.providers[:brightbox]
|
|
12
11
|
assert_equal "Clodo", Fog.providers[:clodo]
|
|
13
12
|
assert_equal "CloudSigma", Fog.providers[:cloudsigma]
|
|
@@ -54,7 +53,6 @@ describe Fog do
|
|
|
54
53
|
assert_includes Fog.registered_providers, "Atmos"
|
|
55
54
|
assert_includes Fog.registered_providers, "AWS"
|
|
56
55
|
assert_includes Fog.registered_providers, "BareMetalCloud"
|
|
57
|
-
assert_includes Fog.registered_providers, "Bluebox"
|
|
58
56
|
assert_includes Fog.registered_providers, "Brightbox"
|
|
59
57
|
assert_includes Fog.registered_providers, "Clodo"
|
|
60
58
|
assert_includes Fog.registered_providers, "CloudSigma"
|
|
@@ -101,7 +99,6 @@ describe Fog do
|
|
|
101
99
|
assert_includes Fog.available_providers, "Atmos" if Atmos.available?
|
|
102
100
|
assert_includes Fog.available_providers, "AWS" if AWS.available?
|
|
103
101
|
assert_includes Fog.available_providers, "BareMetalCloud" if BareMetalCloud.available?
|
|
104
|
-
assert_includes Fog.available_providers, "Bluebox" if Bluebox.available?
|
|
105
102
|
assert_includes Fog.available_providers, "Brightbox" if Brightbox.available?
|
|
106
103
|
assert_includes Fog.available_providers, "Clodo" if Clodo.available?
|
|
107
104
|
assert_includes Fog.available_providers, "CloudSigma" if CloudSigma.available?
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
Shindo.tests('Fog::Compute[:cloudsigma] | snapshot model', ['cloudsigma']) do
|
|
2
|
+
pending if Fog.mocking?
|
|
3
|
+
|
|
2
4
|
volume = Fog::Compute[:cloudsigma].volumes.create(:name => 'fogmodeltest', :size => 1024**3, :media => :disk)
|
|
3
5
|
volume.wait_for { available? } unless Fog.mocking?
|
|
4
6
|
|
|
@@ -14,7 +14,7 @@ Shindo.tests('Fog::Compute[:cloudsigma] | volume requests', ['cloudsigma']) do
|
|
|
14
14
|
'resource_uri' => Fog::Nullable::String,
|
|
15
15
|
'size' => Integer,
|
|
16
16
|
'status' => String,
|
|
17
|
-
'storage_type' => String,
|
|
17
|
+
'storage_type' => Fog::Nullable::String,
|
|
18
18
|
'tags' => Array
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -4,7 +4,7 @@ def volume_tests(connection, params, mocks_implemented = true)
|
|
|
4
4
|
@instance.wait_for { ready? }
|
|
5
5
|
end
|
|
6
6
|
|
|
7
|
-
@server = @instance.
|
|
7
|
+
@server = @instance.service.servers.create(params[:server_attributes])
|
|
8
8
|
@server.wait_for { ready? }
|
|
9
9
|
|
|
10
10
|
tests('attach').succeeds do
|
data/tests/compute/helper.rb
CHANGED
|
@@ -4,15 +4,6 @@ def compute_providers
|
|
|
4
4
|
:server_attributes => {},
|
|
5
5
|
:mocked => true
|
|
6
6
|
},
|
|
7
|
-
:bluebox => {
|
|
8
|
-
:server_attributes => {
|
|
9
|
-
:flavor_id => '94fd37a7-2606-47f7-84d5-9000deda52ae', # Block 1GB Virtual Server
|
|
10
|
-
:image_id => 'a8f05200-7638-47d1-8282-2474ef57c4c3', # Scientific Linux 6
|
|
11
|
-
:location_id => '37c2bd9a-3e81-46c9-b6e2-db44a25cc675', # Seattle, WA
|
|
12
|
-
:password => 'chunkybacon'
|
|
13
|
-
},
|
|
14
|
-
:mocked => false
|
|
15
|
-
},
|
|
16
7
|
:cloudstack => {
|
|
17
8
|
:provider_attributes => {
|
|
18
9
|
:cloudstack_host => 'http://host.foo'
|
data/tests/dns/helper.rb
CHANGED
|
@@ -13,8 +13,6 @@ if Fog.mock?
|
|
|
13
13
|
:aws_secret_access_key => 'aws_secret_access_key',
|
|
14
14
|
:ia_access_key_id => 'aws_access_key_id',
|
|
15
15
|
:ia_secret_access_key => 'aws_secret_access_key',
|
|
16
|
-
:bluebox_api_key => 'bluebox_api_key',
|
|
17
|
-
:bluebox_customer_id => 'bluebox_customer_id',
|
|
18
16
|
:brightbox_client_id => 'brightbox_client_id',
|
|
19
17
|
:brightbox_secret => 'brightbox_secret',
|
|
20
18
|
:cloudstack_disk_offering_id => '',
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
Shindo.tests('Fog::Compute[:opennebula]', ['opennebula']) do
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
begin
|
|
3
|
+
compute = Fog::Compute[:opennebula]
|
|
4
|
+
rescue Fog::Errors::LoadError
|
|
5
|
+
pending
|
|
6
|
+
end
|
|
4
7
|
|
|
5
8
|
tests("Compute collections") do
|
|
6
9
|
%w{networks groups}.each do |collection|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
Shindo.tests('Fog::Compute[:opennebula] | flavor model', ['opennebula']) do
|
|
2
|
+
begin
|
|
3
|
+
flavors = Fog::Compute[:opennebula].flavors
|
|
4
|
+
rescue Fog::Errors::LoadError
|
|
5
|
+
pending
|
|
6
|
+
end
|
|
2
7
|
|
|
3
|
-
flavors = Fog::Compute[:opennebula].flavors
|
|
4
8
|
flavor = flavors.get_by_name('fogtest').last
|
|
5
9
|
|
|
6
10
|
tests('The flavor model should') do
|