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 63AD4FA89 for ; Wed, 10 Apr 2013 11:34:23 +0000 (UTC) Received: (qmail 9862 invoked by uid 500); 10 Apr 2013 11:34:23 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 9654 invoked by uid 500); 10 Apr 2013 11:34:18 -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 8103 invoked by uid 99); 10 Apr 2013 11:34:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 11:34:16 +0000 Date: Wed, 10 Apr 2013 11:34:16 +0000 (UTC) From: "Michal Fojtik (JIRA)" To: dev@deltacloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DTACLOUD-540) Unable to mount Deltacloud::API using Rack::MockSession MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DTACLOUD-540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13627690#comment-13627690 ] Michal Fojtik commented on DTACLOUD-540: ---------------------------------------- Problem identified: As we switched to use initializer, in order to load the Mock driver properly you need to use: require "initializers/mock_initialize" which I found **extremely** ugly. For that I created a patch which allows to pass ':mock_initialize => true' option to #require! method. Pull request: https://github.com/deltacloud/core/pull/5 > Unable to mount Deltacloud::API using Rack::MockSession > -------------------------------------------------------- > > Key: DTACLOUD-540 > URL: https://issues.apache.org/jira/browse/DTACLOUD-540 > Project: DeltaCloud > Issue Type: Bug > Reporter: Michal Fojtik > Assignee: Michal Fojtik > Priority: Blocker > > The current (1.1.2) DC cannot be used for 'MockSession' [1] approach. > If you use 1.1.2 gem, the following error is raised: > $ rake console > undefined method `has_feature?' for NilClass:Class > /home/mfojtik/code/deltacloud-client/lib/deltacloud/server.rb:26:in `initialize' > /home/mfojtik/code/deltacloud-client/lib/deltacloud/client/connection.rb:93:in `cache_entrypoint!' > /home/mfojtik/code/deltacloud-client/lib/deltacloud/client/connection.rb:41:in `initialize' > /home/mfojtik/code/deltacloud-client/lib/deltacloud/client.rb:95:in `new' > /home/mfojtik/code/deltacloud-client/lib/deltacloud/client.rb:95:in `Client' > /home/mfojtik/code/deltacloud-client/lib/deltacloud/client.rb:68:in `Connect' > /home/mfojtik/code/deltacloud-client/Rakefile:71:in `block in ' > This error was originally reported by mpovolny. Thanks! -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira