torpedo 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ * Sat Oct 29 2011 Dan Prince <dan.prince@rackspace.com> - 1.0.3
2
+ - Fix issues boolean config file issue with test_create_image,
3
+ test_rebuild_server, and test_resize_server config options.
4
+ - Fix a syntax issue in the get_flavor_ref_resize method.
5
+
1
6
  * Sat Oct 29 2011 Dan Prince <dan.prince@rackspace.com> - 1.0.2
2
7
  - Add missing dependency to gemspec for test-unit-ext.
3
8
 
data/README.md CHANGED
@@ -4,7 +4,7 @@ Torpedo
4
4
  Description
5
5
  -----------
6
6
 
7
- Sink bad code! Ruby Smoke Tests for the OpenStack.
7
+ Fire when ready. Fast Ruby integration tests for OpenStack.
8
8
 
9
9
  Installation
10
10
  ------------
@@ -15,6 +15,11 @@ Installation
15
15
  cat > ~/.torpedo.conf <<"EOF_CAT"
16
16
  # YAML config file for torpedo
17
17
 
18
+ # timeouts
19
+ server_build_timeout: 120
20
+ ping_timeout: 60
21
+ ssh_timeout: 30
22
+
18
23
  # SERVER test settings
19
24
  test_create_image: false
20
25
  test_rebuild_server: false
@@ -28,10 +33,6 @@ Installation
28
33
  #flavor_name:
29
34
  flavor_ref: 4
30
35
 
31
- # TIMEOUTS
32
- #ping_timeout: 60
33
- #ssh_timeout: 30
34
-
35
36
  # SSH KEYS (used to verify images which use an agent)
36
37
  #ssh_private_key:
37
38
  #ssh_public_key:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -71,7 +71,7 @@ module Helper
71
71
  elsif not flavor_ref_resize or flavor_ref_resize.to_s.empty? then
72
72
  # if no flavor ref is specified for resize add one to it
73
73
  flavor_ref = Helper.get_flavor_ref(conn)
74
- flavor_ref_resize = flavor_ref.to_is + 1
74
+ flavor_ref_resize = flavor_ref.to_i + 1
75
75
  end
76
76
 
77
77
  flavor_ref_resize.to_s
@@ -224,7 +224,7 @@ class Servers < Test::Unit::TestCase
224
224
  # Overwrite image_ref to make all subsequent tests use this snapshot
225
225
  @@image_ref = image.id.to_s
226
226
 
227
- end if TEST_CREATE_IMAGE == "true"
227
+ end if TEST_CREATE_IMAGE
228
228
 
229
229
  def test_021_delete_image_metadata_items
230
230
 
@@ -237,7 +237,7 @@ class Servers < Test::Unit::TestCase
237
237
 
238
238
  assert_equal 0, metadata.size
239
239
 
240
- end if TEST_CREATE_IMAGE == "true"
240
+ end if TEST_CREATE_IMAGE
241
241
 
242
242
  def test_022_update_one_image_metadata_item
243
243
 
@@ -251,7 +251,7 @@ class Servers < Test::Unit::TestCase
251
251
 
252
252
  assert_equal 1, metadata.size
253
253
 
254
- end if TEST_CREATE_IMAGE == "true"
254
+ end if TEST_CREATE_IMAGE
255
255
 
256
256
  def test_023_update_some_image_metadata_items
257
257
 
@@ -267,7 +267,7 @@ class Servers < Test::Unit::TestCase
267
267
 
268
268
  assert_equal 2, metadata.size
269
269
 
270
- end if TEST_CREATE_IMAGE == "true"
270
+ end if TEST_CREATE_IMAGE
271
271
 
272
272
  def test_024_set_image_metadata_items
273
273
 
@@ -285,7 +285,7 @@ class Servers < Test::Unit::TestCase
285
285
 
286
286
  assert_equal 3, metadata.size
287
287
 
288
- end if TEST_CREATE_IMAGE == "true"
288
+ end if TEST_CREATE_IMAGE
289
289
 
290
290
  def test_025_clear_image_metadata
291
291
 
@@ -296,7 +296,7 @@ class Servers < Test::Unit::TestCase
296
296
 
297
297
  assert_equal 0, metadata.size
298
298
 
299
- end if TEST_CREATE_IMAGE == "true"
299
+ end if TEST_CREATE_IMAGE
300
300
 
301
301
  def test_030_rebuild_instance
302
302
  # make sure our snapshot boots
@@ -306,7 +306,7 @@ class Servers < Test::Unit::TestCase
306
306
  sleep 15 # sleep a couple seconds until rebuild starts
307
307
  check_server(server, @@image_ref, @@flavor_ref)
308
308
 
309
- end if TEST_REBUILD_SERVER == "true"
309
+ end if TEST_REBUILD_SERVER
310
310
 
311
311
  def test_040_resize_instance
312
312
 
@@ -338,7 +338,7 @@ class Servers < Test::Unit::TestCase
338
338
 
339
339
  check_server(server, @@image_ref, flavor_ref_resize)
340
340
 
341
- end if TEST_RESIZE_SERVER == "true"
341
+ end if TEST_RESIZE_SERVER
342
342
 
343
343
  def test_999_teardown
344
344
  @@servers.each do |server|
data/lib/torpedo.rb CHANGED
@@ -8,9 +8,9 @@ PING_TIMEOUT=(configs['ping_timeout'] || 60).to_i
8
8
  SERVER_BUILD_TIMEOUT=(configs['server_build_timeout'] || 60).to_i
9
9
  SSH_PRIVATE_KEY=configs['ssh_private_key'] || ENV['HOME'] + "/.ssh/id_rsa"
10
10
  SSH_PUBLIC_KEY=configs['ssh_public_key'] || ENV['HOME'] + "/.ssh/id_rsa.pub"
11
- TEST_CREATE_IMAGE=configs['test_create_image'] || "false"
12
- TEST_REBUILD_SERVER=configs['test_rebuild_server'] || "false"
13
- TEST_RESIZE_SERVER=configs['test_resize_server'] || "false"
11
+ TEST_CREATE_IMAGE=configs['test_create_image'] || false
12
+ TEST_REBUILD_SERVER=configs['test_rebuild_server'] || false
13
+ TEST_RESIZE_SERVER=configs['test_resize_server'] || false
14
14
  KEYPAIR=configs['keypair']
15
15
  KEYNAME=configs['keyname']
16
16
 
data/torpedo.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{torpedo}
8
- s.version = "1.0.2"
8
+ s.version = "1.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan Prince"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torpedo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dan Prince