Return-Path: Delivered-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Received: (qmail 32374 invoked from network); 10 Feb 2011 16:00:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Feb 2011 16:00:30 -0000 Received: (qmail 71115 invoked by uid 500); 10 Feb 2011 16:00:30 -0000 Delivered-To: apmail-incubator-deltacloud-dev-archive@incubator.apache.org Received: (qmail 71017 invoked by uid 500); 10 Feb 2011 16:00:28 -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 71007 invoked by uid 99); 10 Feb 2011 16:00:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Feb 2011 16:00:27 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of woodstae@gmail.com designates 209.85.213.47 as permitted sender) Received: from [209.85.213.47] (HELO mail-yw0-f47.google.com) (209.85.213.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Feb 2011 16:00:19 +0000 Received: by ywi6 with SMTP id 6so639463ywi.6 for ; Thu, 10 Feb 2011 07:59:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=hrUEXXzvQLzV1/j8KK7iwkT+EtlpZfgzE3lRsBIOvAA=; b=BI0yf4lyLa3dFXjKcoine00xC5L+aRPp7zrJZ3mzyFFJOIAZVw5O/4muldaqD0XdPz JuB3aUbPmVTYI4n/wPMLNBLFLvD8RqT+8aFkIqf6ODv8u8XpkD7DheqUpWCY+ix1G/OV nOqG2iIWq2RfE//Bm7zpG1dKd1MJsvv+GMd8I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=ETXBEaWpTI/LWrn2ISNofZyPy+yuaV7vLhfjU4TR1TKtd5/Rp6cmp2NV5E4H29kyu7 RIQblKKHmQqo5ETZ3vuO/t9SM2b7DYwOA4dmzY/1SqtuzDg3wYiZx/W/GrkwNm3Rx0zm 4Pcs8b/nPLcBp11ni1LVvgAYHbr5dDN2ZRN6M= Received: by 10.151.84.17 with SMTP id m17mr3594491ybl.261.1297353598605; Thu, 10 Feb 2011 07:59:58 -0800 (PST) Received: from [192.168.1.101] (twdp-174-109-176-061.nc.res.rr.com [174.109.176.61]) by mx.google.com with ESMTPS id v6sm125734ybk.20.2011.02.10.07.59.53 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Feb 2011 07:59:56 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: IBM SBC Driver Available From: Eric Woods In-Reply-To: <1297123533.7782.37.camel@avon.watzmann.net> Date: Thu, 10 Feb 2011 10:59:52 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <8F176878-9B2C-4EA6-8055-CB2F2B5619DF@gmail.com> <1296261888.784.31.camel@avon.watzmann.net> <9D3776E0-B336-4719-B4DC-93E19FA26B7E@gmail.com> <1296602784.10311.72.camel@avon.watzmann.net> <97166B02-25F1-481D-91D9-33A213F276F3@gmail.com> <1296694448.18930.9.camel@avon.watzmann.net> <438A59BE-FCB2-4F94-8F76-2698056A3E1E@gmail.com> <1297123533.7782.37.camel@avon.watzmann.net> To: deltacloud-dev@incubator.apache.org X-Mailer: Apple Mail (2.1082) David, I am able to run the cucumber tests from your advice below. = However, I'm still unable to run the unit tests even after installing = rspec (version 2.5.0) via "sudo gem install rspec" Same error: "no such = file to load -- spec (LoadError)" I see within server/Rakefile that "spec" is initialized as "spec =3D = Gem::Specification.load('deltacloud-core.gemspec')" Could this be = inaccessible to the tests or not run at all when running "rake test" = from the server directory? Here's the full message: (in = /Users/Eric/Development/workspace/deltacloud/110128_1718_deltacloud/server= ) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby = -I"lib" = "/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" = "tests/drivers/mock/api_test.rb" = "tests/drivers/mock/hardware_profiles_test.rb" = "tests/drivers/mock/images_test.rb" = "tests/drivers/mock/instance_states_test.rb" = "tests/drivers/mock/instances_test.rb" = "tests/drivers/mock/realms_test.rb" "tests/drivers/mock/url_for_test.rb" = "tests/rabbit_test.rb"=20 warning: Insecure world writable dir /Users/Eric in PATH, mode 040777 = /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/ru= bygems/custom_require.rb:31:in `gem_original_require': no such file to = load -- spec (LoadError) from = /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/ru= bygems/custom_require.rb:31:in `require' from ./tests/drivers/mock/../../../tests/common.rb:6 from ./tests/drivers/mock/api_test.rb:2:in `require' from ./tests/drivers/mock/api_test.rb:2 from = /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in = `load' from = /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5 from = /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in = `each' from = /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5 rake aborted! Command failed with status (1): = [/System/Library/Frameworks/Ruby.framework/...] Thanks for your help, - Eric W. On Feb 7, 2011, at 7:05 PM, David Lutterkort wrote: > On Mon, 2011-02-07 at 17:15 -0500, Eric Woods wrote: >> I've updated the patch to address your comment = (https://issues.apache.org/jira/browse/DTACLOUD-15). The driver should = be complete and ready to be committed. >>=20 >> Now I'm turning my attention to tests. I'm running into issues when = running either test set: >>=20 >> 1) When I run "rake test" within the server directory, I get no >> output. After inspecting server/Rakefile, I changed the test >> FileList.new(...) to "t.test_files =3D >> FileList.new('tests/**/**/*_test.rb')" to pull in the "mock" >> directory. This triggers common.rb to execute, but I then receive a >> LoadError for "spec." I can't find this gem installed locally or=20 >=20 > The tests pass for me without any changes to the Rakefile (IIRC, '**' > matches directory hierarchies of arbitrary depths) >=20 >=20 >> remotely. I'm trying to install it via "sudo gem install spec." >=20 > The gem is cleverly called 'rspec' >=20 >> 2) When I run "API_DRIVER=3D{ec2, mock} rake cucumber" within top = level >> tests, the rake aborts from not being able to load "rack/test" >=20 > You need to 'gem install rack-test'. There's a Gemfile that should = list > all the dependencies (look in the :test section) If anything is = missing > from that list, we need to add it. >=20 >> Only ec2, mock, and rhevm are supported for cucumber tests, and only >> mock is supported for the unit tests. Have these tests been updated >> recently and we know they should run? Of course I'm new to ruby, so = I >> could be making a trivial mistake. >=20 > Yes, all those tests pass for me - clearly, we need to document the > process of setting up a dev environment better. If you still have it, > can you collect a list of the gems you had to install for this > exercise ? We need to make sure it goes into the Gemfile and the > gemspec. >=20 > David >=20 >=20