deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronelle Landy (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (DTACLOUD-159) Deltacloud ruby client tests need to test for '404 eceptions' not 'nil' case
Date Tue, 20 Mar 2012 20:49:39 GMT

     [ https://issues.apache.org/jira/browse/DTACLOUD-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ronelle Landy closed DTACLOUD-159.
----------------------------------

    Resolution: Fixed

Closing this issue as fixed - clean test run from automated client tests in hudson job deltacloud-client
(see hudson/job/deltacloud-client/78/console):

Finished in 11.23 seconds
74 examples, 0 failures

git version tested: 4a3fc20bb532296dfaea0c7c23eb09c3c7190f7c 
                
> Deltacloud ruby client tests need to test for '404 eceptions' not 'nil' case
> ----------------------------------------------------------------------------
>
>                 Key: DTACLOUD-159
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-159
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: Fedora 15, 16
> Deltacloud git commit: 61ac9fef965dd7d1af7c213357ea7d66630d88d7 
>            Reporter: Ronelle Landy
>            Assignee: David Lutterkort
>
> Copying test errors from logs:
>   7) storage snapshot should return nil for unknown storage volume by URI
>      Failure/Error: storage_snapshot = client.fetch_storage_snapshot( API_URL + '/storage_snapshots/bogus'
)
>      DeltaCloud::HTTPError::NotFound:
>        404
>        
>        DeltaCloud::HTTPError::ClientError: Not Found
>      # ./lib/errors.rb:77:in `on'
>      # ./lib/errors.rb:108:in `client_error'
>      # ./lib/errors.rb:72:in `instance_eval'
>      # ./lib/errors.rb:72:in `initialize'
>      # ./lib/errors.rb:103:in `new'
>      # ./lib/errors.rb:103:in `client_error'
>      # ./lib/deltacloud.rb:359:in `response_error'
>      # ./lib/deltacloud.rb:397:in `request'
>      # ./lib/deltacloud.rb:396:in `send'
>      # ./lib/deltacloud.rb:396:in `request'
>      # ./lib/deltacloud.rb:143:in `storage_snapshot'
>      # ./lib/deltacloud.rb:150:in `send'
>      # ./lib/deltacloud.rb:150:in `fetch_storage_snapshot'
>      # ./specs/storage_snapshot_spec.rb:74
>      # ./lib/deltacloud.rb:118:in `connect'
>      # ./specs/storage_snapshot_spec.rb:73
>   8) images should allow retrieval of all images
>      Failure/Error: DeltaCloud.new( API_NAME, API_PASSWORD, entry_point ) do |client|
>      NoMethodError:
>        undefined method `[]' for nil:NilClass
>      # ./lib/deltacloud.rb:269:in `discover_entry_points'
>      # ./lib/deltacloud.rb:398:in `request'
>      # ./lib/deltacloud.rb:396:in `send'
>      # ./lib/deltacloud.rb:396:in `request'
>      # ./lib/deltacloud.rb:267:in `discover_entry_points'
>      # ./lib/deltacloud.rb:78:in `initialize'
>      # ./lib/deltacloud.rb:41:in `new'
>      # ./lib/deltacloud.rb:41:in `new'
>      # ./specs/images_spec.rb:28
>      # ./specs/images_spec.rb:27:in `each'
>      # ./specs/images_spec.rb:27
>   9) instances should allow retrieval of all instances
>      Failure/Error: DeltaCloud.new( API_NAME, API_PASSWORD, entry_point ) do |client|
>      NoMethodError:
>        undefined method `[]' for nil:NilClass
>      # ./lib/deltacloud.rb:269:in `discover_entry_points'
>      # ./lib/deltacloud.rb:398:in `request'
>      # ./lib/deltacloud.rb:396:in `send'
>      # ./lib/deltacloud.rb:396:in `request'
>      # ./lib/deltacloud.rb:267:in `discover_entry_points'
>      # ./lib/deltacloud.rb:78:in `initialize'
>      # ./lib/deltacloud.rb:41:in `new'
>      # ./lib/deltacloud.rb:41:in `new'
>      # ./specs/instances_spec.rb:28
>      # ./specs/instances_spec.rb:27:in `each'
>      # ./specs/instances_spec.rb:27
>  13) realms should allow retrieval of all realms
>      Failure/Error: DeltaCloud.new( API_NAME, API_PASSWORD, entry_point ) do |client|
>      NoMethodError:
>        undefined method `[]' for nil:NilClass
>      # ./lib/deltacloud.rb:269:in `discover_entry_points'
>      # ./lib/deltacloud.rb:398:in `request'
>      # ./lib/deltacloud.rb:396:in `send'
>      # ./lib/deltacloud.rb:396:in `request'
>      # ./lib/deltacloud.rb:267:in `discover_entry_points'
>      # ./lib/deltacloud.rb:78:in `initialize'
>      # ./lib/deltacloud.rb:41:in `new'
>      # ./lib/deltacloud.rb:41:in `new'
>      # ./specs/realms_spec.rb:27
>      # ./specs/realms_spec.rb:26:in `each'
>      # ./specs/realms_spec.rb:26
>   14) initializing the client should discover entry points upon connection
>      Failure/Error: DeltaCloud.new( "name", "password", entry_point ) do |client|
>      NoMethodError:
>        undefined method `[]' for nil:NilClass
>      # ./lib/deltacloud.rb:269:in `discover_entry_points'
>      # ./lib/deltacloud.rb:398:in `request'
>      # ./lib/deltacloud.rb:396:in `send'
>      # ./lib/deltacloud.rb:396:in `request'
>      # ./lib/deltacloud.rb:267:in `discover_entry_points'
>      # ./lib/deltacloud.rb:78:in `initialize'
>      # ./lib/deltacloud.rb:41:in `new'
>      # ./lib/deltacloud.rb:41:in `new'
>      # ./specs/initialization_spec.rb:32
>      # ./specs/initialization_spec.rb:31:in `each'
>      # ./specs/initialization_spec.rb:31

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message