deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1205409 - /deltacloud/trunk/server/spec/cimi/model/machine_spec.rb
Date Wed, 23 Nov 2011 14:15:29 GMT
Author: mfojtik
Date: Wed Nov 23 14:15:28 2011
New Revision: 1205409

URL: http://svn.apache.org/viewvc?rev=1205409&view=rev
Log:
CIMI: Added test to machine_spec to check if Machine schema hold only Machin attributes (inheritation
works ;)

Modified:
    deltacloud/trunk/server/spec/cimi/model/machine_spec.rb

Modified: deltacloud/trunk/server/spec/cimi/model/machine_spec.rb
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/spec/cimi/model/machine_spec.rb?rev=1205409&r1=1205408&r2=1205409&view=diff
==============================================================================
--- deltacloud/trunk/server/spec/cimi/model/machine_spec.rb (original)
+++ deltacloud/trunk/server/spec/cimi/model/machine_spec.rb Wed Nov 23 14:15:28 2011
@@ -20,6 +20,11 @@ describe "Machine model" do
     @json = IO::read(File::join(DATA_DIR, "machine.json"))
   end
 
+  it "should hold just machine schema" do
+    CIMI::Model::Machine.schema.attribute_names.should_not include(:image_location)
+    CIMI::Model::Machine.schema.attribute_names.should include(:meters)
+  end
+
   it "can be constructed from XML" do
     machine = CIMI::Model::Machine.from_xml(@xml)
     machine.should_not be_nil



Mime
View raw message