fog 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +5 -5
  2. data/.github/stale.yml +17 -0
  3. data/.travis.yml +1 -0
  4. data/CHANGELOG.md +37 -0
  5. data/README.md +3 -3
  6. data/fog.gemspec +6 -6
  7. data/lib/fog.rb +0 -1
  8. data/lib/fog/bin.rb +0 -1
  9. data/lib/fog/bin/brightbox.rb +2 -2
  10. data/lib/fog/cloudstack/models/compute/server.rb +2 -0
  11. data/lib/fog/linode/requests/compute/avail_datacenters.rb +1 -0
  12. data/lib/fog/opennebula/compute.rb +6 -1
  13. data/lib/fog/opennebula/requests/compute/OpenNebulaVNC.rb +5 -1
  14. data/lib/fog/version.rb +1 -1
  15. data/lib/tasks/changelog_task.rb +1 -0
  16. data/spec/fog/bin/atmos_spec.rb +0 -10
  17. data/spec/fog/bin/aws_spec.rb +0 -18
  18. data/spec/fog/bin/baremetalcloud_spec.rb +0 -10
  19. data/spec/fog/bin/brightbox_spec.rb +2 -2
  20. data/spec/fog/bin_spec.rb +0 -3
  21. data/tests/cloudsigma/models/snapshot_tests.rb +2 -0
  22. data/tests/cloudsigma/models/snapshots_tests.rb +1 -0
  23. data/tests/cloudsigma/requests/snapshots_tests.rb +1 -0
  24. data/tests/cloudsigma/requests/volumes_tests.rb +1 -1
  25. data/tests/cloudstack/compute/models/volume_tests.rb +1 -1
  26. data/tests/compute/helper.rb +0 -9
  27. data/tests/dns/helper.rb +0 -6
  28. data/tests/helpers/mock_helper.rb +0 -2
  29. data/tests/opennebula/compute_tests.rb +5 -2
  30. data/tests/opennebula/models/compute/flavor_tests.rb +5 -1
  31. data/tests/opennebula/models/compute/flavors_tests.rb +5 -2
  32. data/tests/opennebula/models/compute/group_tests.rb +5 -2
  33. data/tests/opennebula/models/compute/groups_tests.rb +5 -2
  34. data/tests/opennebula/models/compute/network_tests.rb +5 -1
  35. data/tests/opennebula/models/compute/networks_tests.rb +5 -2
  36. data/tests/opennebula/requests/compute/vm_allocate_tests.rb +5 -1
  37. data/tests/opennebula/requests/compute/vm_suspend_resume_tests.rb +5 -2
  38. metadata +26 -375
  39. data/lib/fog/bin/bluebox.rb +0 -36
  40. data/lib/fog/bluebox.rb +0 -3
  41. data/lib/fog/bluebox/blb.rb +0 -82
  42. data/lib/fog/bluebox/compute.rb +0 -98
  43. data/lib/fog/bluebox/core.rb +0 -12
  44. data/lib/fog/bluebox/dns.rb +0 -101
  45. data/lib/fog/bluebox/models/blb/lb_application.rb +0 -29
  46. data/lib/fog/bluebox/models/blb/lb_applications.rb +0 -24
  47. data/lib/fog/bluebox/models/blb/lb_backend.rb +0 -19
  48. data/lib/fog/bluebox/models/blb/lb_backends.rb +0 -27
  49. data/lib/fog/bluebox/models/blb/lb_service.rb +0 -32
  50. data/lib/fog/bluebox/models/blb/lb_services.rb +0 -27
  51. data/lib/fog/bluebox/models/compute/flavor.rb +0 -41
  52. data/lib/fog/bluebox/models/compute/flavors.rb +0 -24
  53. data/lib/fog/bluebox/models/compute/image.rb +0 -30
  54. data/lib/fog/bluebox/models/compute/images.rb +0 -24
  55. data/lib/fog/bluebox/models/compute/location.rb +0 -13
  56. data/lib/fog/bluebox/models/compute/locations.rb +0 -24
  57. data/lib/fog/bluebox/models/compute/server.rb +0 -121
  58. data/lib/fog/bluebox/models/compute/servers.rb +0 -32
  59. data/lib/fog/bluebox/models/dns/record.rb +0 -52
  60. data/lib/fog/bluebox/models/dns/records.rb +0 -32
  61. data/lib/fog/bluebox/models/dns/zone.rb +0 -62
  62. data/lib/fog/bluebox/models/dns/zones.rb +0 -24
  63. data/lib/fog/bluebox/parsers/dns/create_record.rb +0 -22
  64. data/lib/fog/bluebox/parsers/dns/create_zone.rb +0 -22
  65. data/lib/fog/bluebox/parsers/dns/get_record.rb +0 -17
  66. data/lib/fog/bluebox/parsers/dns/get_records.rb +0 -24
  67. data/lib/fog/bluebox/parsers/dns/get_zone.rb +0 -22
  68. data/lib/fog/bluebox/parsers/dns/get_zones.rb +0 -26
  69. data/lib/fog/bluebox/requests/blb/add_machine_to_lb_application.rb +0 -33
  70. data/lib/fog/bluebox/requests/blb/add_machine_to_lb_backend.rb +0 -31
  71. data/lib/fog/bluebox/requests/blb/get_lb_application.rb +0 -32
  72. data/lib/fog/bluebox/requests/blb/get_lb_applications.rb +0 -30
  73. data/lib/fog/bluebox/requests/blb/get_lb_backend.rb +0 -35
  74. data/lib/fog/bluebox/requests/blb/get_lb_backends.rb +0 -35
  75. data/lib/fog/bluebox/requests/blb/get_lb_machine.rb +0 -34
  76. data/lib/fog/bluebox/requests/blb/get_lb_machines.rb +0 -34
  77. data/lib/fog/bluebox/requests/blb/get_lb_service.rb +0 -35
  78. data/lib/fog/bluebox/requests/blb/get_lb_services.rb +0 -35
  79. data/lib/fog/bluebox/requests/blb/remove_machine_from_lb_backend.rb +0 -28
  80. data/lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb +0 -29
  81. data/lib/fog/bluebox/requests/compute/create_block.rb +0 -44
  82. data/lib/fog/bluebox/requests/compute/create_template.rb +0 -25
  83. data/lib/fog/bluebox/requests/compute/destroy_block.rb +0 -24
  84. data/lib/fog/bluebox/requests/compute/destroy_template.rb +0 -24
  85. data/lib/fog/bluebox/requests/compute/get_block.rb +0 -24
  86. data/lib/fog/bluebox/requests/compute/get_blocks.rb +0 -26
  87. data/lib/fog/bluebox/requests/compute/get_location.rb +0 -24
  88. data/lib/fog/bluebox/requests/compute/get_locations.rb +0 -22
  89. data/lib/fog/bluebox/requests/compute/get_product.rb +0 -24
  90. data/lib/fog/bluebox/requests/compute/get_products.rb +0 -23
  91. data/lib/fog/bluebox/requests/compute/get_template.rb +0 -24
  92. data/lib/fog/bluebox/requests/compute/get_templates.rb +0 -24
  93. data/lib/fog/bluebox/requests/compute/reboot_block.rb +0 -25
  94. data/lib/fog/bluebox/requests/dns/create_record.rb +0 -44
  95. data/lib/fog/bluebox/requests/dns/create_zone.rb +0 -48
  96. data/lib/fog/bluebox/requests/dns/delete_record.rb +0 -27
  97. data/lib/fog/bluebox/requests/dns/delete_zone.rb +0 -27
  98. data/lib/fog/bluebox/requests/dns/get_record.rb +0 -36
  99. data/lib/fog/bluebox/requests/dns/get_records.rb +0 -37
  100. data/lib/fog/bluebox/requests/dns/get_zone.rb +0 -40
  101. data/lib/fog/bluebox/requests/dns/get_zones.rb +0 -39
  102. data/lib/fog/bluebox/requests/dns/update_record.rb +0 -30
  103. data/lib/fog/bluebox/requests/dns/update_zone.rb +0 -26
  104. data/lib/fog/ovirt.rb +0 -1
  105. data/lib/fog/ovirt/requests/compute/activate_volume.rb +0 -22
  106. data/lib/fog/ovirt/requests/compute/deactivate_volume.rb +0 -22
  107. data/spec/fog/bin/bluebox_spec.rb +0 -55
  108. data/spec/fog/compute_spec.rb +0 -19
  109. data/spec/fog/dns_spec.rb +0 -19
  110. data/tests/bluebox/requests/blb/helper.rb +0 -64
  111. data/tests/bluebox/requests/blb/lb_tests.rb +0 -75
  112. data/tests/bluebox/requests/compute/block_tests.rb +0 -83
  113. data/tests/bluebox/requests/compute/helper.rb +0 -16
  114. data/tests/bluebox/requests/compute/location_tests.rb +0 -32
  115. data/tests/bluebox/requests/compute/product_tests.rb +0 -34
  116. data/tests/bluebox/requests/compute/template_tests.rb +0 -37
  117. data/tests/bluebox/requests/dns/dns_tests.rb +0 -258
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d4c323f1b54a61a7616f835f688fca78e9f1faa3
4
- data.tar.gz: f0d16a7646b65200a78a21c878e26cf778420e93
2
+ SHA256:
3
+ metadata.gz: 95b9f7c695f3decf7ef8baffd30aa09d3dc6737f5a9c2969990a559681ba7d8a
4
+ data.tar.gz: becfb632718737aa4b72a682731cc2ed4c42eecce48286374d6601e40712b67f
5
5
  SHA512:
6
- metadata.gz: 847119ab1a80024c7a58824901685b859161d602e6f72365585679dc4c92737b4d83c96822ede5f3e895bf4d7fc598817c967af199786d7cc501ad9137aa04db
7
- data.tar.gz: 73d812d207cb3519db6e2f618defc0827c39f579fbaa1c57b724eb977a41892bd5f26e9393fe46207165b897c5204bf17e9336fc04afb7c20ee1e71108e57e25
6
+ metadata.gz: ee525a39207685911b2e63c02eb084484bd03d6a66819d52f5ce032a6917bb7e2ee61d6c0aba378cbc94322d2874d750c1e5348a8ffa778ce45a34cf7ff3d98d
7
+ data.tar.gz: 5e2aa711a0131cd58a9e4c7e18e47fd376ef4f1b7640c93f107c4ce31d6b238bf928080949b59d819f45da3778c7715944096ed132274f2b09fda146ea22219d
@@ -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
@@ -10,6 +10,7 @@ rvm:
10
10
  - 2.2
11
11
  - 2.3
12
12
  - 2.4
13
+ - 2.5
13
14
  - jruby-head
14
15
 
15
16
  gemfile:
@@ -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
  [![Build Status](https://secure.travis-ci.org/fog/fog.svg?branch=master)](http://travis-ci.org/fog/fog)
10
- [![Dependency Status](https://gemnasium.com/fog/fog.svg)](https://gemnasium.com/fog/fog)
11
10
  [![Code Climate](https://codeclimate.com/github/fog/fog/badges/gpa.svg)](https://codeclimate.com/github/fog/fog)
12
11
  [![Gem Version](https://badge.fury.io/rb/fog.svg)](http://badge.fury.io/rb/fog)
12
+ [![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=fog&package-manager=bundler&version-scheme=semver)](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
@@ -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.0.0"
15
- s.date = "2018-03-06"
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 = "http://github.com/fog/fog"
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", "<= 0.1.0")
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", "<=2.99.1")
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
@@ -21,7 +21,6 @@ require 'fog/core/deprecated_connection_accessors'
21
21
  # they all depend on fog/core for shared functionality.
22
22
  require 'fog/atmos'
23
23
  require 'fog/aws'
24
- require 'fog/bluebox'
25
24
  require 'fog/brightbox'
26
25
  require 'fog/cloudstack'
27
26
  require 'fog/clodo'
@@ -53,7 +53,6 @@ end
53
53
 
54
54
  require 'fog/bin/atmos'
55
55
  require 'fog/bin/aws'
56
- require 'fog/bin/bluebox'
57
56
  require 'fog/bin/brightbox'
58
57
  require 'fog/bin/cloudstack'
59
58
  require 'fog/bin/clodo'
@@ -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::Brightbox
6
+ Fog::Brightbox::Compute
7
7
  when :storage
8
- Fog::Storage::Brightbox
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
- require 'opennebula'
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
@@ -20,7 +20,11 @@
20
20
 
21
21
  require 'rubygems'
22
22
  require 'json'
23
- require 'opennebula'
23
+ begin
24
+ require "opennebula"
25
+ rescue LoadError
26
+ raise Fog::Errors::LoadError, "To use OpenNebula provider, you must load 'opennebula' gem"
27
+ end
24
28
 
25
29
 
26
30
  #if !ONE_LOCATION
@@ -1,3 +1,3 @@
1
1
  module Fog
2
- VERSION = '2.0.0'
2
+ VERSION = '2.1.0'
3
3
  end
@@ -103,6 +103,7 @@ Watchers | #{watchers}
103
103
  def former_mvp?(committer)
104
104
  [
105
105
  'Aaron Suggs',
106
+ 'Akira Matsuda',
106
107
  'ller', #"Achim Ledermüller" UTF-8 fail?
107
108
  'Ash Wilson',
108
109
  'Benson Kalahar',
@@ -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
@@ -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::Brightbox, Brightbox.class_for(: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::Brightbox, Brightbox.class_for(:storage)
26
+ assert_equal Fog::Brightbox::Storage, Brightbox.class_for(:storage)
27
27
  end
28
28
  end
29
29
  end
@@ -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
 
@@ -1,4 +1,5 @@
1
1
  Shindo.tests('Fog::Compute[:cloudsigma] | snapshots collection', ['cloudsigma']) do
2
+ pending if Fog.mocking?
2
3
 
3
4
  volume = Fog::Compute[:cloudsigma].volumes.create(:name => 'fogtest', :size => 1024**3, :media => :disk)
4
5
  volume.wait_for { available? } unless Fog.mocking?
@@ -1,4 +1,5 @@
1
1
  Shindo.tests('Fog::Compute[:cloudsigma] | snapshot requests', ['cloudsigma']) do
2
+ pending if Fog.mocking?
2
3
 
3
4
  @snapshot_format = {
4
5
  'uuid' => String,
@@ -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.connection.servers.create(params[:server_attributes])
7
+ @server = @instance.service.servers.create(params[:server_attributes])
8
8
  @server.wait_for { ready? }
9
9
 
10
10
  tests('attach').succeeds do
@@ -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'
@@ -3,12 +3,6 @@ def dns_providers
3
3
  :aws => {
4
4
  :mocked => false
5
5
  },
6
- :bluebox => {
7
- :mocked => false,
8
- :zone_attributes => {
9
- :ttl => 60
10
- }
11
- },
12
6
  :dnsimple => {
13
7
  :mocked => false
14
8
  },
@@ -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
- compute = Fog::Compute[:opennebula]
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