You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Ronelle Landy (Updated) (JIRA)" <ji...@apache.org> on 2012/03/09 17:09:04 UTC
[jira] [Updated] (DTACLOUD-159) Deltacloud ruby client tests need
to test for '404 eceptions' not 'nil' case
[ https://issues.apache.org/jira/browse/DTACLOUD-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ronelle Landy updated DTACLOUD-159:
-----------------------------------
Environment:
Fedora 15, 16
Deltacloud git commit: 61ac9fef965dd7d1af7c213357ea7d66630d88d7
was:
Fedora 15, 16
Deltacloud git commit: a396e78738b58944f8b50f50db3125bd76b752ec (test commit)
> 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