fog-maestrodev 1.18.0.20131206115947 → 1.18.0.20131209090811

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDI2NDMwZWYwYzY1YmNiMTRlMDIwZWMyNjlhNTJiNjk5NDAwNDljOA==
4
+ NTM2NWZjZjMyNjcwM2ViMjQyNTg5ZTNmMzQzOTFlMzg4Y2U4YmE0NA==
5
5
  data.tar.gz: !binary |-
6
- YjM2ZTgyMDA3ZTRmMThmOGVhZjI0MGIwOWNlNWY5Y2M5NGFlNzkxYw==
6
+ MzZmYWI3MGE2YmFmOTI5ZWRlZjcxZTg2M2Q0ZmUwYmZiNGE2YzA2Yg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NjM2ZGZjZDE5MDY0MTIwMDBkZDZhOWFmMGQ1NTlmMWYwZWNiNDkyNzZjYjA0
10
- NjhhMGNjYTVjYmJlY2Q5MDZiMzY4YTk5ZTRlMDg4MjBjYWIyMzNlNDRlMmFk
11
- YWE2OTQ1ZjcxZWIyODY2OWIwNGQ2NmM4NzdlN2FiYTNhMWY4MDE=
9
+ NDczYTVkOTdkNjljOTA4YWQyNWYyZTk5YjZlMWNjMWJmZTFlMjllMDY5ZjAw
10
+ MGI0MmRiMDhhMTNkYjE5NDUzZjI1Nzc2YjhhOTBjNjI5MDZlYzZkNDQ3YTM1
11
+ OTY3MDIxZTRkOTNmYTU5NDhhZDJjZjU2YzcwZTViMDc2YzE1YmU=
12
12
  data.tar.gz: !binary |-
13
- ZWY1ODkyOWEzYjVhZTc3MjEyOGQ5ZjYyMjQ0OGMzZGE2MjNlOWI1ZDY1NDQ2
14
- MTg0MmUxZWFjZmE4NjA3NmU3YjJmMDViZTg4MzMxNWRlMDg2NWE4NWI4Yjlh
15
- YjQ5M2U1ZDgxODBkNzkwNmRmZWM5NWZkMDU2YzRlYThhY2NiY2I=
13
+ N2JiODMxMmUxYTYzMDY2MzIyOTFiYTI0ZWY4MWZlMzkyMjhjYWZkMDQyZGQy
14
+ YTJjMmJiZTgxOTU2NzM4YWUwMzVjMTE2Y2ZiNjY3NTM0ZWE3MGRlZjkxZDkw
15
+ ZjAyOTEwYWEyMTQzMGFlNjhmZWQ4OWY4MGUyYmY0MDI2OTYyMTc=
data/fog.gemspec CHANGED
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
6
6
  ## If your rubyforge_project name is different, then edit it and comment out
7
7
  ## the sub! line in the Rakefile
8
8
  s.name = 'fog-maestrodev'
9
- s.version = '1.18.0.20131206115947'
10
- s.date = '2013-12-06'
9
+ s.version = '1.18.0.20131209090811'
10
+ s.date = '2013-12-09'
11
11
  s.rubyforge_project = 'fog'
12
12
 
13
13
  ## Make sure your summary is short. The description may be as long
@@ -62,8 +62,11 @@ DATA
62
62
  else
63
63
  bucket['LocationConstraint'] = nil
64
64
  end
65
- unless self.data[:buckets][bucket_name]
65
+ if !self.data[:buckets][bucket_name] || self.region == 'us-east-1'
66
66
  self.data[:buckets][bucket_name] = bucket
67
+ else
68
+ response.status = 409
69
+ raise(Excon::Errors.status_error({:expects => 200}, response))
67
70
  end
68
71
  response
69
72
  end
@@ -291,7 +291,7 @@ module Fog
291
291
  @connection_options = options[:connection_options] || {}
292
292
  @host = options[:ecloud_host] || API_URL
293
293
  @persistent = options[:persistent] || false
294
- @version = options[:ecloud_version] || "2012-03-01"
294
+ @version = options[:ecloud_version] || "2013-06-01"
295
295
  @authentication_method = options[:ecloud_authentication_method] || :cloud_api_auth
296
296
  @access_key = options[:ecloud_access_key]
297
297
  @private_key = options[:ecloud_private_key]
@@ -48,6 +48,14 @@ Shindo.tests('Fog::Storage[:aws] | bucket requests', ["aws"]) do
48
48
  @aws_owner = Fog::Storage[:aws].get_bucket_acl(Fog::Storage[:aws].directories.first.key).body['Owner']
49
49
  end
50
50
 
51
+ tests('put existing bucket - default region') do
52
+ Fog::Storage[:aws].put_bucket(@aws_bucket_name)
53
+
54
+ tests("#put_bucket('#{@aws_bucket_name}') existing").succeeds do
55
+ Fog::Storage[:aws].put_bucket(@aws_bucket_name)
56
+ end
57
+ end
58
+
51
59
  tests("#get_service").formats(@service_format) do
52
60
  Fog::Storage[:aws].get_service.body
53
61
  end
@@ -337,6 +345,15 @@ Shindo.tests('Fog::Storage[:aws] | bucket requests', ["aws"]) do
337
345
  Fog::Storage[:aws].put_bucket_website('fognonbucket', 'index.html')
338
346
  end
339
347
 
348
+ tests('put existing bucket - non-default region') do
349
+ storage_eu_endpoint = Fog::Storage[:aws]
350
+ storage_eu_endpoint.region = "eu-west-1"
351
+ storage_eu_endpoint.put_bucket(@aws_bucket_name)
352
+
353
+ tests("#put_bucket('#{@aws_bucket_name}') existing").raises(Excon::Errors::Conflict) do
354
+ storage_eu_endpoint.put_bucket(@aws_bucket_name)
355
+ end
356
+ end
340
357
  end
341
358
 
342
359
  # don't keep the bucket around
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-maestrodev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0.20131206115947
4
+ version: 1.18.0.20131209090811
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus (Wesley Beary)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-06 00:00:00.000000000 Z
11
+ date: 2013-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder