Return-Path: Delivered-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Received: (qmail 33892 invoked from network); 4 Nov 2010 13:51:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 13:51:20 -0000 Received: (qmail 1939 invoked by uid 500); 4 Nov 2010 13:51:51 -0000 Delivered-To: apmail-incubator-deltacloud-dev-archive@incubator.apache.org Received: (qmail 1863 invoked by uid 500); 4 Nov 2010 13:51:50 -0000 Mailing-List: contact deltacloud-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltacloud-dev@incubator.apache.org Delivered-To: mailing list deltacloud-dev@incubator.apache.org Received: (qmail 1855 invoked by uid 99); 4 Nov 2010 13:51:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 13:51:49 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=10.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tcrawley@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; Thu, 04 Nov 2010 13:51:43 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oA4DpM0x018658 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 4 Nov 2010 09:51:22 -0400 Received: from katahdin.redhat.com (vpn-10-73.rdu.redhat.com [10.11.10.73]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id oA4DpL2A008788 for ; Thu, 4 Nov 2010 09:51:22 -0400 From: Tobias Crawley To: deltacloud-dev@incubator.apache.org Subject: [PATCH 0/3] Add capability checking to rabbit and server.rb Date: Thu, 4 Nov 2010 09:51:18 -0400 Message-Id: <1288878681-28334-1-git-send-email-tcrawley@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 This patchset adds backend capability checking to the rabbit dsl, allowing each operation to specify the required capability with: with_capability :some_driver_method If the driver does not respond to :some_driver_method, a 405 will be returned to the client. This has been ACK'ed by mfojtik via #deltacloud. Tobias Crawley (3): Add support files for capability checking. Add capability checking to rabbit and to key management initially. Added capability checking for all operations. server/lib/deltacloud/backend_capability.rb | 21 +++++++++++ server/lib/sinatra/rabbit.rb | 3 ++ server/server.rb | 36 +++++++++++++++---- .../errors/backend_capability_failure.html.haml | 11 ++++++ .../errors/backend_capability_failure.xml.haml | 4 ++ 5 files changed, 67 insertions(+), 8 deletions(-) create mode 100644 server/lib/deltacloud/backend_capability.rb create mode 100644 server/views/errors/backend_capability_failure.html.haml create mode 100644 server/views/errors/backend_capability_failure.xml.haml -- 1.7.2.3