From 612dc314891a68fd7b8ab9e91ff9c198fe32b442 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Mon, 17 Oct 2011 18:40:19 +0200 Subject: [PATCH] feature #849: Add OCCI PUT compute tests --- .../remotes/quota/test/quota_spec.rb | 6 +- .../occi/test/fixtures/{ => user}/user.xml | 0 .../fixtures/{ => user}/user_collection.xml | 0 .../test/fixtures/vm_save_as/newcompute.xml | 1 + .../save_a_disk_and_change_state.xml | 1 + .../fixtures/vm_save_as/save_first_disk.xml | 1 + .../fixtures/vm_save_as/save_second_disk.xml | 1 + .../fixtures/vm_save_as/save_two_disks.xml | 1 + src/cloud/occi/test/spec/spec_helper.rb | 4 +- src/cloud/occi/test/spec/user_spec.rb | 4 +- src/cloud/occi/test/spec/vm_saveas_spec.rb | 77 +++++++++++++++++++ src/cloud/occi/test/templates/image1.template | 2 + src/cloud/occi/test/templates/image2.template | 3 + src/cloud/occi/test/templates/vm.template | 10 +++ src/cloud/occi/test/test.sh | 5 +- 15 files changed, 107 insertions(+), 9 deletions(-) rename src/cloud/occi/test/fixtures/{ => user}/user.xml (100%) rename src/cloud/occi/test/fixtures/{ => user}/user_collection.xml (100%) create mode 100644 src/cloud/occi/test/fixtures/vm_save_as/newcompute.xml create mode 100644 src/cloud/occi/test/fixtures/vm_save_as/save_a_disk_and_change_state.xml create mode 100644 src/cloud/occi/test/fixtures/vm_save_as/save_first_disk.xml create mode 100644 src/cloud/occi/test/fixtures/vm_save_as/save_second_disk.xml create mode 100644 src/cloud/occi/test/fixtures/vm_save_as/save_two_disks.xml create mode 100644 src/cloud/occi/test/spec/vm_saveas_spec.rb create mode 100644 src/cloud/occi/test/templates/image1.template create mode 100644 src/cloud/occi/test/templates/image2.template create mode 100644 src/cloud/occi/test/templates/vm.template diff --git a/src/authm_mad/remotes/quota/test/quota_spec.rb b/src/authm_mad/remotes/quota/test/quota_spec.rb index fd6d656f18..cf58842847 100644 --- a/src/authm_mad/remotes/quota/test/quota_spec.rb +++ b/src/authm_mad/remotes/quota/test/quota_spec.rb @@ -31,7 +31,7 @@ describe "Quota testing" do