aws 2.3.5 → 2.3.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.
@@ -21,6 +21,16 @@ class TestRds < Test::Unit::TestCase
21
21
  end
22
22
 
23
23
 
24
+ def test_00_describe_db_instances_empty
25
+ instances = @rds.describe_db_instances
26
+ # puts "instances_result=" + instances_result.inspect
27
+ # instances = instances_result["DescribeDBInstancesResult"]["DBInstances"]["DBInstance"]
28
+ puts "instances count = " + instances.count.to_s
29
+ puts 'instances=' + instances.inspect
30
+ assert instances.size == 0
31
+ end
32
+
33
+
24
34
  def test_01_create_db_instance
25
35
  begin
26
36
  db_instance3 = @rds.create_db_instance('bad_test_key', "db.m1.small", 5, "master", "masterpass")
@@ -64,8 +74,9 @@ class TestRds < Test::Unit::TestCase
64
74
  puts 'instances=' + instances.inspect
65
75
  assert instances.size > 0
66
76
  i_describe = nil
67
- instances.each do |x|
68
- i_describe = x if x[:db_instance_identifier] == @identifier
77
+ instances.each do |rdi|
78
+ puts 'rdi=' + rdi.inspect
79
+ i_describe = rdi if rdi[:db_instance_identifier] == @identifier
69
80
  end
70
81
  assert i_describe
71
82
 
@@ -65,6 +65,7 @@ class TestSqs < Test::Unit::TestCase
65
65
  assert @sqs.send_message(queue_url, RIGHT_MESSAGE_TEXT)
66
66
  assert @sqs.send_message(queue_url, RIGHT_MESSAGE_TEXT)
67
67
  assert @sqs.send_message(queue_url, RIGHT_MESSAGE_TEXT)
68
+ sleep 2
68
69
  end
69
70
 
70
71
  def test_07_get_queue_length
@@ -147,10 +148,12 @@ class TestSqs < Test::Unit::TestCase
147
148
  assert queue.push('a3')
148
149
  assert queue.push('a4')
149
150
  assert queue.push('a5')
151
+ sleep 2
150
152
  # check queue size
151
153
  assert_equal 5, queue.size
152
154
  # send one more
153
155
  assert queue.push('a6')
156
+ sleep 2
154
157
  # check queue size again
155
158
  assert_equal 6, queue.size
156
159
  end
@@ -200,13 +203,4 @@ class TestSqs < Test::Unit::TestCase
200
203
  assert(newsqs.multi_thread)
201
204
  end
202
205
 
203
- def test_29_signature_version_0
204
- sqs = Aws::SqsInterface.new(TestCredentials.aws_access_key_id, TestCredentials.aws_secret_access_key, :signature_version => '0')
205
- assert_nothing_raised do
206
- sqs.list_queues
207
- end
208
- # check that the request has correct signature version
209
- assert sqs.last_request.path.include?('SignatureVersion=0')
210
- end
211
-
212
206
  end
@@ -4,10 +4,10 @@ require 'test_credentials'
4
4
  TestCredentials.get_credentials
5
5
 
6
6
  require 'http_connection'
7
- require 'ec2/test_right_ec2.rb'
7
+ require 'ec2/test_ec2.rb'
8
8
  require 's3/test_s3.rb'
9
9
  require 's3/test_s3_stubbed.rb'
10
- require 'sqs/test_right_sqs.rb'
10
+ require 'sqs/test_sqs.rb'
11
11
  require 'sqs/test_right_sqs_gen2.rb'
12
12
  require 'sdb/test_sdb.rb'
13
- require 'acf/test_right_acf.rb'
13
+ require 'acf/test_acf.rb'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 3
8
- - 5
9
- version: 2.3.5
8
+ - 6
9
+ version: 2.3.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Travis Reeder
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-04-01 00:00:00 -07:00
19
+ date: 2010-04-30 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -113,11 +113,11 @@ signing_key:
113
113
  specification_version: 3
114
114
  summary: AWS Ruby Library for interfacing with Amazon Web Services.
115
115
  test_files:
116
+ - test/acf/test_acf.rb
116
117
  - test/acf/test_helper.rb
117
- - test/acf/test_right_acf.rb
118
+ - test/ec2/test_ec2.rb
118
119
  - test/ec2/test_helper.rb
119
120
  - test/ec2/test_mon.rb
120
- - test/ec2/test_right_ec2.rb
121
121
  - test/elb/test_elb.rb
122
122
  - test/http_connection.rb
123
123
  - test/rds/test_rds.rb
@@ -128,6 +128,6 @@ test_files:
128
128
  - test/sdb/test_helper.rb
129
129
  - test/sdb/test_sdb.rb
130
130
  - test/sqs/test_helper.rb
131
- - test/sqs/test_right_sqs.rb
131
+ - test/sqs/test_sqs.rb
132
132
  - test/test_credentials.rb
133
133
  - test/ts_right_aws.rb