deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: CIMI - tests adding test ordering and task:cimiplan
Date Mon, 03 Dec 2012 16:06:23 GMT
Updated Branches:
  refs/heads/master 63da4da92 -> c70d86238


CIMI - tests adding test ordering and task:cimiplan

TrackedAt: http://tracker.deltacloud.org/patch/d3a130b9cd13d5b826e2c6cf1d3bf92c352b2c93


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

Branch: refs/heads/master
Commit: c70d8623802bcb49644ab7fa00cc0780f22e3745
Parents: 63da4da
Author: Ronelle Landy <rlandy@redhat.com>
Authored: Mon Dec 3 10:57:51 2012 -0500
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Mon Dec 3 17:04:46 2012 +0100

----------------------------------------------------------------------
 tests/Rakefile           |    4 ++++
 tests/cimi/cep_test.rb   |    3 +++
 tests/cimi/part2_test.rb |    3 +++
 tests/cimi/part3_test.rb |    3 +++
 tests/cimi/part4_test.rb |    3 +++
 tests/cimi/part5_test.rb |    3 +++
 6 files changed, 19 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/c70d8623/tests/Rakefile
----------------------------------------------------------------------
diff --git a/tests/Rakefile b/tests/Rakefile
index f276dbb..b196aed 100644
--- a/tests/Rakefile
+++ b/tests/Rakefile
@@ -34,4 +34,8 @@ namespace :test do
     t.test_files = FileList["cimi/*_test.rb"]
   end
 
+  Rake::TestTask.new(:cimiplan) do |t|
+    t.test_files = FileList["cimi/part*_test.rb", "cimi/cep_test.rb"]
+  end
+
 end

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/c70d8623/tests/cimi/cep_test.rb
----------------------------------------------------------------------
diff --git a/tests/cimi/cep_test.rb b/tests/cimi/cep_test.rb
index 3c8149d..7504667 100644
--- a/tests/cimi/cep_test.rb
+++ b/tests/cimi/cep_test.rb
@@ -35,6 +35,9 @@ class CloundEntryPointBehavior < CIMI::Test::Spec
 
   RESOURCE_URI = "http://schemas.dmtf.org/cimi/1/CloudEntryPoint"
 
+  #  Ensure test executes in test plan order
+  i_suck_and_my_tests_are_order_dependent!
+
   # We'd like to call this :cep, but there's already a method by that name
   model :subject, :cache => true do |fmt|
     cep(:accept => fmt)

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/c70d8623/tests/cimi/part2_test.rb
----------------------------------------------------------------------
diff --git a/tests/cimi/part2_test.rb b/tests/cimi/part2_test.rb
index ae26710..c273614 100644
--- a/tests/cimi/part2_test.rb
+++ b/tests/cimi/part2_test.rb
@@ -25,6 +25,9 @@ class CreateNewMachine < CIMI::Test::Spec
 
   MiniTest::Unit.after_tests { teardown(@@created_resources, api.basic_auth) }
 
+  #  Ensure test executes in test plan order
+  i_suck_and_my_tests_are_order_dependent!
+
   # 2.1: Query the CEP
   model :subject, :cache => true do |fmt|
     cep(:accept => fmt)

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/c70d8623/tests/cimi/part3_test.rb
----------------------------------------------------------------------
diff --git a/tests/cimi/part3_test.rb b/tests/cimi/part3_test.rb
index 4b70efe..8915727 100644
--- a/tests/cimi/part3_test.rb
+++ b/tests/cimi/part3_test.rb
@@ -23,6 +23,9 @@ class CreateNewMachineFromMachineTemplate < CIMI::Test::Spec
     "http://schemas.dmtf.org/cimi/1/CloudEntryPoint"
   ROOTS = ["machines", "machineImages", "machineConfigurations"]
 
+  #  Ensure test executes in test plan order
+  i_suck_and_my_tests_are_order_dependent!
+
   model :subject, :cache => true do |fmt|
     cep(:accept => fmt)
   end

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/c70d8623/tests/cimi/part4_test.rb
----------------------------------------------------------------------
diff --git a/tests/cimi/part4_test.rb b/tests/cimi/part4_test.rb
index 056aeff..f065104 100644
--- a/tests/cimi/part4_test.rb
+++ b/tests/cimi/part4_test.rb
@@ -26,6 +26,9 @@ class AddVolumeToMachine < CIMI::Test::Spec
   # Cleanup for resources created for the test
   MiniTest::Unit.after_tests {  teardown(@@created_resources, api.basic_auth) }
 
+  #  Ensure test executes in test plan order
+  i_suck_and_my_tests_are_order_dependent!
+
   # 4.1: Query the CEP
   model :subject, :cache => true do |fmt|
     cep(:accept => fmt)

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/c70d8623/tests/cimi/part5_test.rb
----------------------------------------------------------------------
diff --git a/tests/cimi/part5_test.rb b/tests/cimi/part5_test.rb
index d451a7b..f1ce6c9 100644
--- a/tests/cimi/part5_test.rb
+++ b/tests/cimi/part5_test.rb
@@ -26,6 +26,9 @@ class ManipulateAMachine < CIMI::Test::Spec
 
   MiniTest::Unit.after_tests {  teardown(@@created_resources, api.basic_auth) }
 
+  #  Ensure test executes in test plan order
+  i_suck_and_my_tests_are_order_dependent!
+
   # 2.1: Query the Machine
   # For some providers - need to create a machine before querying it.
   cep_json = cep(:accept => :json)


Mime
View raw message