deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core] CIMI: Renamed X-CIMI-Specification-Version header
Date Mon, 27 Aug 2012 16:27:39 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/lib/cimi/helpers.rb                              |    2 +-
 server/tests/cimi/collections/cloud_entry_point_test.rb |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/lib/cimi/helpers.rb b/server/lib/cimi/helpers.rb
index b645fbb..2dba3be 100644
--- a/server/lib/cimi/helpers.rb
+++ b/server/lib/cimi/helpers.rb
@@ -86,7 +86,7 @@ module CIMI::Collections
     end
 
     after do
-      headers 'X-CIMI-Specification-Version' => Deltacloud[:cimi].version
+      headers 'CIMI-Specification-Version' => Deltacloud[:cimi].version
     end
 
     def self.new_route_for(route, &block)
diff --git a/server/tests/cimi/collections/cloud_entry_point_test.rb b/server/tests/cimi/collections/cloud_entry_point_test.rb
index 3a01fb7..ba9764b 100644
--- a/server/tests/cimi/collections/cloud_entry_point_test.rb
+++ b/server/tests/cimi/collections/cloud_entry_point_test.rb
@@ -17,8 +17,8 @@ describe CIMI::Collections::CloudEntryPoint do
 
   it 'set the CIMI-Version header' do
     get root_url
-    headers['X-CIMI-Specification-Version'].wont_be_nil
-    headers['X-CIMI-Specification-Version'].must_equal '1.0.0'
+    headers['CIMI-Specification-Version'].wont_be_nil
+    headers['CIMI-Specification-Version'].must_equal '1.0.0'
   end
 
   it 'advertise CIMI collections in XML format' do
-- 
1.7.10.2


Mime
View raw message