deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: CIMI: Renamed X-CIMI-Specification-Version header
Date Tue, 28 Aug 2012 08:38:28 GMT
Updated Branches:
  refs/heads/master 001018be6 -> eb200c3a8


CIMI: Renamed X-CIMI-Specification-Version header


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

Branch: refs/heads/master
Commit: eb200c3a82a07f57d7901903b2465e20d53879b8
Parents: 001018b
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Mon Aug 27 15:53:40 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Tue Aug 28 10:39:04 2012 +0200

----------------------------------------------------------------------
 server/lib/cimi/helpers.rb                         |    2 +-
 .../cimi/collections/cloud_entry_point_test.rb     |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/eb200c3a/server/lib/cimi/helpers.rb
----------------------------------------------------------------------
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)

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/eb200c3a/server/tests/cimi/collections/cloud_entry_point_test.rb
----------------------------------------------------------------------
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


Mime
View raw message