You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by dk...@apache.org on 2013/05/24 11:37:25 UTC

[1/4] git commit: Tests: skip tests on Windows that rely on fork() as it is not supported

Updated Branches:
  refs/heads/master df53052e4 -> 3ebea1c47


Tests: skip tests on Windows that rely on fork() as it is not supported


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/840d1105
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/840d1105
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/840d1105

Branch: refs/heads/master
Commit: 840d1105c16ca1b5243299361ccb53a9b32a597e
Parents: df53052
Author: Dies Koper <di...@fast.au.fujitsu.com>
Authored: Fri May 24 11:39:38 2013 +1000
Committer: Dies Koper <di...@fast.au.fujitsu.com>
Committed: Fri May 24 19:29:05 2013 +1000

----------------------------------------------------------------------
 server/tests/deltacloud/launcher_test.rb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/840d1105/server/tests/deltacloud/launcher_test.rb
----------------------------------------------------------------------
diff --git a/server/tests/deltacloud/launcher_test.rb b/server/tests/deltacloud/launcher_test.rb
index 12365cb..7ae1bef 100644
--- a/server/tests/deltacloud/launcher_test.rb
+++ b/server/tests/deltacloud/launcher_test.rb
@@ -50,6 +50,7 @@ describe "deltacloudd" do
   end
 
   it 'starts the deltacloud server gracefully' do
+    skip if windows?
     pid = Process.fork
     if pid.nil? then
       Dir.chdir(File.join(File.dirname(__FILE__), '..', '..'))
@@ -64,6 +65,7 @@ describe "deltacloudd" do
   end
 
   it 'starts the deltacloud server gracefully with multiple frontends' do
+    skip if windows?
     pid = Process.fork
     if pid.nil? then
       Dir.chdir(File.join(File.dirname(__FILE__), '..', '..'))
@@ -79,6 +81,7 @@ describe "deltacloudd" do
   end
 
   it 'starts the deltacloud server gracefully when using webrick' do
+    skip if windows?
     pid = Process.fork
     if pid.nil? then
       Dir.chdir(File.join(File.dirname(__FILE__), '..', '..'))


[3/4] git commit: Tests: add 'network_interfaces' to expected attributes in instances

Posted by dk...@apache.org.
Tests: add 'network_interfaces' to expected attributes in instances


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/6889be78
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/6889be78
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/6889be78

Branch: refs/heads/master
Commit: 6889be78880d64dcc5dd996202608c93992df687
Parents: df379d6
Author: Dies Koper <di...@fast.au.fujitsu.com>
Authored: Fri May 24 11:48:22 2013 +1000
Committer: Dies Koper <di...@fast.au.fujitsu.com>
Committed: Fri May 24 19:29:06 2013 +1000

----------------------------------------------------------------------
 .../collections/instances_collection_test.rb       |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/6889be78/server/tests/deltacloud/collections/instances_collection_test.rb
----------------------------------------------------------------------
diff --git a/server/tests/deltacloud/collections/instances_collection_test.rb b/server/tests/deltacloud/collections/instances_collection_test.rb
index a73d1b2..0b15e89 100644
--- a/server/tests/deltacloud/collections/instances_collection_test.rb
+++ b/server/tests/deltacloud/collections/instances_collection_test.rb
@@ -72,7 +72,7 @@ describe Deltacloud::Collections::Instances do
     json['instance'].wont_be_empty
     Deltacloud::Instance.attributes.each do |attr|
       attr = attr.to_s.gsub(/_id$/,'') if attr.to_s =~ /_id$/
-      next if ['launch_time', 'authn_error', 'firewalls', 'keyname', 'username', 'password', 'instance_profile'].include?(attr.to_s)
+      next if ['launch_time', 'authn_error', 'firewalls', 'keyname', 'username', 'password', 'instance_profile', 'network_interfaces'].include?(attr.to_s)
       json['instance'].keys.must_include attr.to_s
       json['instance'].keys.must_include 'create_image'
       json['instance'].keys.must_include 'hardware_profile'


[2/4] git commit: Tests: fix minor typos in readme.

Posted by dk...@apache.org.
Tests: fix minor typos in readme.


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/df379d67
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/df379d67
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/df379d67

Branch: refs/heads/master
Commit: df379d67fdcbf890f9a48249ded79fa756949828
Parents: 840d110
Author: Dies Koper <di...@fast.au.fujitsu.com>
Authored: Fri May 24 11:46:53 2013 +1000
Committer: Dies Koper <di...@fast.au.fujitsu.com>
Committed: Fri May 24 19:29:06 2013 +1000

----------------------------------------------------------------------
 server/tests/README.md |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/df379d67/server/tests/README.md
----------------------------------------------------------------------
diff --git a/server/tests/README.md b/server/tests/README.md
index ca84754..66fa430 100644
--- a/server/tests/README.md
+++ b/server/tests/README.md
@@ -8,7 +8,7 @@ Each test can be run manually using:
 
 $ bundle exec ruby tests/drivers/ec2/realms_test.rb
 
-In addition to manual run, you can use one of there Rake tasks:
+In addition to manual run, you can use one of the Rake tasks:
 
 $ rake test                 # Run all tests
 
@@ -45,7 +45,7 @@ Some driver tests may use VCR gem to record and then mock the real communication
 with the backend server. In that case, the fixtures produced by this recording
 are stored in the 'tests/drivers/DRIVER/fixtures' directory.
 
-For more informations about recording, look into 'tests/drivers/ec2/common.rb'
+For more information about recording, look into 'tests/drivers/ec2/common.rb'
 file.
 
 The 'base' directory contain tests for Deltacloud::Driver class and the Library
@@ -84,7 +84,7 @@ provide Amazon EC2 driver tests.
 
 * cimi/
 
-This directory provides tests for the CIMI frotend. They make sure that
+This directory provides tests for the CIMI frontend. They make sure that
 JSON/XML serialization of the CIMI models works correctly. Also there are tests
 to make sure the output provided by CIMI collections is correct.
 
@@ -108,7 +108,7 @@ Bug/feature in the Deltacloud driver
 
 * Steps:    1. Open 'tests/drivers/ec2/images_tests.rb'
             2. Since the current tests did not capture this bug, go to the end
-               of this file and add yoru code there:
+               of this file and add your code there:
 
                it 'should provide correct output' do
                 # assertions go here
@@ -121,7 +121,7 @@ Bug/feature in the Deltacloud driver
             3. Write all collection operations tests here ^^
 
 
-Bug/feature in the Deltacloud frontnend
+Bug/feature in the Deltacloud frontend
 ------------------------------------
 
 * Scenario: The '/api/images/123/create' operation does not provide correct


[4/4] git commit: Tests: correct number of instances owned by 'mockuser' (inst3's owner is mockuser base64 encoded)

Posted by dk...@apache.org.
Tests: correct number of instances owned by 'mockuser'
(inst3's owner is mockuser base64 encoded)


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/3ebea1c4
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/3ebea1c4
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/3ebea1c4

Branch: refs/heads/master
Commit: 3ebea1c47683780fc18b5106284cd11d47b423ed
Parents: 6889be7
Author: Dies Koper <di...@fast.au.fujitsu.com>
Authored: Fri May 24 13:45:07 2013 +1000
Committer: Dies Koper <di...@fast.au.fujitsu.com>
Committed: Fri May 24 19:29:07 2013 +1000

----------------------------------------------------------------------
 server/tests/drivers/mock/instances_test.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/3ebea1c4/server/tests/drivers/mock/instances_test.rb
----------------------------------------------------------------------
diff --git a/server/tests/drivers/mock/instances_test.rb b/server/tests/drivers/mock/instances_test.rb
index 7e93f31..555019d 100644
--- a/server/tests/drivers/mock/instances_test.rb
+++ b/server/tests/drivers/mock/instances_test.rb
@@ -25,7 +25,7 @@ describe 'MockDriver Instances' do
     @driver.instances(:id => 'inst1').must_be_kind_of Array
     @driver.instances(:id => 'inst1').size.must_equal 1
     @driver.instances(:id => 'inst1').first.id.must_equal 'inst1'
-    @driver.instances(:owner_id => 'mockuser').size.must_equal 2
+    @driver.instances(:owner_id => 'mockuser').size.must_equal 3
     @driver.instances(:owner_id => 'mockuser').first.owner_id.must_equal 'mockuser'
     @driver.instances(:id => 'unknown').must_be_empty
   end