Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 69890DABB for ; Mon, 27 Aug 2012 16:27:12 +0000 (UTC) Received: (qmail 70691 invoked by uid 500); 27 Aug 2012 16:27:12 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 70675 invoked by uid 500); 27 Aug 2012 16:27:12 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 70667 invoked by uid 99); 27 Aug 2012 16:27:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2012 16:27:12 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mfojtik@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2012 16:27:04 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7RGQh99008495 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 27 Aug 2012 12:26:43 -0400 Received: from dhcp-29-121.brq.redhat.com (dhcp-29-121.brq.redhat.com [10.34.29.121]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q7RGQgF2018055 for ; Mon, 27 Aug 2012 12:26:43 -0400 From: mfojtik@redhat.com To: dev@deltacloud.apache.org Subject: [PATCH core] CIMI: Renamed X-CIMI-Specification-Version header Date: Mon, 27 Aug 2012 18:27:39 +0200 Message-Id: <1346084859-72726-1-git-send-email-mfojtik@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 From: Michal Fojtik Signed-off-by: Michal fojtik --- 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