On 03/07/2013 12:49 PM, David Lutterkort wrote: > On Thu, 2013-03-07 at 09:14 -0500, jvlcek wrote: >> On 03/06/2013 08:31 PM, David Lutterkort wrote: >>> Am I the only one who runs into errors running 'rake test' ? I've got a >>> bunch of fixes that I'll send out in a minute, but I still get errors >>> from test:drivers:rhevm - seems like the fixtures need to be rerecorded. >>> >>> Can others run rake test successfully ? >>> >>> David >>> >>> >> I had just re-recorded the fixtures for test:drivers:rhevm a few days >> ago. Do you have the latest bits? > Yes. Part of the problem is that VCR matches on the full URL; the first > patch changes it so that it only matches on method, path and query > params (though I think RHEV-M doesn't use the latter) > > We also leak a good bit of information with our recordings. The second > (untested) patch tries to scrub user, password, and hostname from the > recordings. > > Finally, I also attach the test failures I get with these changes; it's > better than with current HEAD (e884d128). It looks like the failure is > genuinely because we need rerecording. > > BTW, this is with the latest rbovirt (rbovirt-0.0.18) > > David >
The latest bits seem to run fine. See the attached. I believe the issue is the patch: 0001-RHEVM-tests-have-VCR-match-only-on-path-and-query-no.path the match_request_on is not needed. It should use: c.default_cassette_options = { :record => :none } I've discussed the leaking information issue with Michal and Marios. For all future recordings the approach is to use ~/.deltacloud/config to do the recordings. Then to set the user and pass to fakeuser and fakepassword in the recorded fixtures YAML files after doing the recording. Which is much easier to do than it sounds. This will match the returns from the credentials and driver methods in tests/test_helper.rb For existing recordings the credentials on the cloud providers are to be changed so they do not match those that had been used during the recording. This does leave some UUID information for the most part are ephemeral. Joe V
keelhaul % git checkout master Switched to branch 'master' keelhaul % git status # On branch master nothing to commit (working directory clean) keelhaul % git pull Already up-to-date. keelhaul % pwd /exports/bos/jvlcek/GIT/DELTACLOUD_OVIRT/deltacloud/server keelhaul % rake test Remove mock data in /var/tmp/deltacloud-jvlcek/mock Copy mock data to /var/tmp/deltacloud-jvlcek/mock (from ./lib/deltacloud/drivers/mock/data) [ rake test:base ] Loaded Suite Started at 2013-03-07 14:01:19 -0500 w/ seed 6688. Address PASS (0:00:00.000) test_0001_should tell if it is associated to instance Address PASS (0:00:00.000) test_0001_should tell if it is associated to instance BaseModel::initialize PASS (0:00:00.001) test_0001_should properly advertise given attributes PASS (0:00:00.001) test_0002_should report all attributes Deltacloud PASS (0:00:00.001) test_0001_should return the servers configuration PASS (0:00:00.001) test_0002_should be able to require the correct frontned PASS (0:00:00.001) test_0003_should not require already required frontend Deltacloud PASS (0:00:00.002) test_0002_must provide access to collection classes PASS (0:00:00.002) test_0001_must provide list of available collections names Deltacloud API Library PASS (0:00:00.002) test_0004_should allow to set the provider PASS (0:00:00.003) test_0002_should be constructed just using the driver parameter PASS (0:00:00.003) test_0005_should yield the backend driver PASS (0:00:00.034) test_0001_should return the driver configuration PASS (0:00:00.036) test_0003_should allow to set credentials PASS (0:00:00.036) test_0006_should return the API version Deltacloud::API PASS (0:00:00.039) test_0001_has the config set property PASS (0:00:00.219) test_0002_must provide the root_url entrypoint PASS (0:00:00.239) test_0017_must support media type negotiation for HTML format PASS (0:00:00.697) test_0008_must support matrix parameters for changing API driver PASS (0:00:00.741) test_0006_must return list of collections on OPTIONS PASS (0:00:00.825) test_0005_must force authentication when :force_auth param set PASS (0:00:00.834) test_0004_must advertise current API driver in response headers PASS (0:00:00.845) test_0007_must support setting driver and provider using POST PASS (0:00:00.866) test_0011_must change driver back to default when no matrix param set PASS (0:00:00.883) test_0015_must switch provider using X-Deltacloud-Provider HTTP header in request PASS (0:00:00.894) test_0010_must support matrix parameters for changing both API provider and driver PASS (0:00:00.936) test_0018_must support media type negotiation for XML format PASS (0:00:00.945) test_0003_must advertise current API version in response headers PASS (0:00:00.965) test_0014_must switch driver using X-Deltacloud-Driver HTTP header in request PASS (0:00:00.983) test_0012_must change provider back to default when no matrix param set PASS (0:00:00.983) test_0019_must return proper error when unknown media type requested PASS (0:00:00.993) test_0016_must support media type negotiation for JSON format PASS (0:00:01.010) test_0013_must support matrix params when they are part of URL PASS (0:00:01.021) test_0009_must support matrix parameters for changing API provider Deltacloud::BaseDriver::capabilities PASS (0:00:01.022) test_0001_should return if driver has given capability Deltacloud::BaseDriver::features PASS (0:00:01.022) test_0001_should return all defined features PASS (0:00:01.022) test_0002_must have method to check if feature is defined PASS (0:00:01.022) test_0003_must return feature defined constraints Deltacloud::BaseDriver::hardware profiles PASS (0:00:01.023) test_0001_must allow to define custom hardware profiles PASS (0:00:01.023) test_0002_should not allow to create duplicated profile PASS (0:00:01.023) test_0003_should return all defined hardware profiles PASS (0:00:01.023) test_0004_should allow to filter hardware profiles Deltacloud::BaseDriver::instance states PASS (0:00:01.023) test_0001_should return defined instance state machine PASS (0:00:01.024) test_0002_should return actions for given state Deltacloud::BaseDriver::supported driver collections PASS (0:00:01.025) test_0001_provides list of supported collections Deltacloud::BaseDriver::when creating a new driver PASS (0:00:01.026) test_0001_must return the proper driver name Deltacloud::Collections::Base PASS (0:00:01.026) test_0003_has version set correctly PASS (0:00:01.026) test_0002_has root_url set correctly PASS (0:00:01.026) test_0001_has config set correctly Deltacloud::Collections::Buckets PASS (0:00:01.036) test_0004_must support creating a new bucket and destroying it PASS (0:00:01.049) test_0002_provides URL to specify new bucket PASS (0:00:01.105) test_0003_returns list of buckets in various formats with index operation PASS (0:00:01.106) test_0001_has index operation PASS (0:00:01.115) test_0008_properly serialize attributes in JSON PASS (0:00:01.151) test_0007_creates a new blob and then destroy it PASS (0:00:01.172) test_0006_returns blob details on show operation in various formats PASS (0:00:01.179) test_0005_returns blob metadata Deltacloud::Collections::Drivers PASS (0:00:01.200) test_0004_returns details about driver in various formats with show operation PASS (0:00:01.200) test_0002_has show operation PASS (0:00:01.252) test_0003_returns list of drivers in various formats with index operation PASS (0:00:01.253) test_0001_has index operation PASS (0:00:01.258) test_0005_properly serialize attributes in JSON Deltacloud::Collections::HardwareProfiles PASS (0:00:01.268) test_0007_properly serialize attributes in JSON PASS (0:00:01.290) test_0005_returns details for various hardware profile configurations PASS (0:00:01.309) test_0004_returns details about hardware profile in various formats with show operation PASS (0:00:01.310) test_0001_has index operation PASS (0:00:01.310) test_0002_has show operation PASS (0:00:01.316) test_0006_reports 404 when querying non-existing hardware profile PASS (0:00:01.337) test_0003_returns list of hardware profiles in various formats with index operation Deltacloud::Collections::Images PASS (0:00:01.352) test_0005_provides URL to specify new image PASS (0:00:01.445) test_0004_returns details about image in various formats with show operation PASS (0:00:01.445) test_0002_has show operation PASS (0:00:01.453) test_0007_reports 404 when querying non-existing image PASS (0:00:01.467) test_0008_properly serialize attributes in JSON PASS (0:00:01.492) test_0003_returns list of images in various formats with index operation PASS (0:00:01.501) test_0006_allow to create and destroy the new image PASS (0:00:01.501) test_0001_has index operation Deltacloud::Collections::InstanceStates PASS (0:00:01.501) test_0001_has index operation PASS (0:00:01.526) test_0002_returns list of states for current driver in various formats with index operation Deltacloud::Collections::Instances PASS (0:00:01.527) test_0001_has index operation PASS (0:00:01.596) test_0002_provides URL to specify new instance PASS (0:00:01.632) test_0004_returns details about instance in various formats with show operation PASS (0:00:01.659) test_0006_properly serialize attributes in JSON PASS (0:00:01.776) test_0005_allow to create and execute actions on created instance PASS (0:00:01.806) test_0003_returns list of instances in various formats with index operation Deltacloud::Collections::Keys PASS (0:00:01.807) test_0001_has index operation PASS (0:00:01.807) test_0002_has show operation PASS (0:00:01.850) test_0003_returns list of keys in various formats with index operation PASS (0:00:01.863) test_0007_reports 404 when querying non-existing key PASS (0:00:01.919) test_0006_must support creating and destroying keys PASS (0:00:01.929) test_0005_provides URL to create new key PASS (0:00:01.944) test_0008_properly serialize attributes in JSON PASS (0:00:01.969) test_0004_returns details about key in various formats with show operation Deltacloud::Collections::Realms PASS (0:00:01.983) test_0006_properly serialize attributes in JSON PASS (0:00:01.983) test_0002_has show operation PASS (0:00:02.057) test_0004_returns details about key in various formats with show operation PASS (0:00:02.089) test_0003_returns list of realms in various formats with index operation PASS (0:00:02.098) test_0005_reports 404 when querying non-existing key PASS (0:00:02.098) test_0001_has index operation Deltacloud::Collections::StorageSnapshots PASS (0:00:02.099) test_0002_has show operation PASS (0:00:02.135) test_0004_returns details about storage_volume in various formats with show operation PASS (0:00:02.147) test_0005_reports 404 when querying non-existing key PASS (0:00:02.164) test_0006_properly serialize attributes in JSON PASS (0:00:02.240) test_0003_returns list of storage_snapshots in various formats with index operation PASS (0:00:02.240) test_0001_has index operation Deltacloud::Collections::StorageVolumes PASS (0:00:02.261) test_0006_properly serialize attributes in JSON PASS (0:00:02.262) test_0002_has show operation PASS (0:00:02.343) test_0003_returns list of storage_volumes in various formats with index operation PASS (0:00:02.344) test_0001_has index operation PASS (0:00:02.387) test_0004_returns details about storage_volume in various formats with show operation PASS (0:00:02.401) test_0005_reports 404 when querying non-existing key Deltacloud::Deltacloud::Collections PASS (0:00:02.402) test_0001_must return collection by name PASS (0:00:02.402) test_0002_must provide access to Deltacloud Sinatra modules Deltacloud::Deltacloud::Server PASS (0:00:02.402) test_0003_should provide the logger facility PASS (0:00:02.402) test_0002_should provide the correct version PASS (0:00:02.402) test_0001_should provide the correct root_url Deltacloud::Drivers PASS (0:00:02.403) test_0001_must provider access to all drivers configuration PASS (0:00:02.403) test_0002_must provide list of entrypoints for some drivers Deltacloud::Exceptions PASS (0:00:02.403) test_0001_should capture exception when match the exception message PASS (0:00:02.403) test_0002_should capture exception when match the exception class PASS (0:00:02.403) test_0003_should capture exception when no match found Deltacloud::HardwareProfile PASS (0:00:02.404) test_0003_should return the default value for given property PASS (0:00:02.404) test_0004_should return if given value is within property range PASS (0:00:02.404) test_0001_should return proper unit for property PASS (0:00:02.404) test_0002_should properly advertise the properties PASS (0:00:02.404) test_0005_should return query params Deltacloud::Helpers::Application PASS (0:00:02.670) test_0001_provides name for the authentication feature PASS (0:00:02.670) test_0002_provides HTTP methods for instance actions PASS (0:00:02.671) test_0003_provide helper for wrapping text nodes with CDATA PASS (0:00:02.671) test_0004_provide helper to access driver entrypoints Deltacloud::Helpers::Drivers PASS (0:00:02.671) test_0001_should report the current driver as a Symbol PASS (0:00:02.671) test_0004_should provide the path to the current driver PASS (0:00:02.675) test_0007_should throw an exception on unknown driver PASS (0:00:02.675) test_0002_should report the current driver name PASS (0:00:02.675) test_0005_should provide access to the driver instance PASS (0:00:02.675) test_0003_should provide the current driver class name PASS (0:00:02.676) test_0006_should autoload the driver Instance PASS (0:00:02.676) test_0001_advertise if can be used to create image PASS (0:00:02.676) test_0002_advertise the current state using is_state? InstanceAddress PASS (0:00:02.676) test_0001_should properly report address type InstanceProfile PASS (0:00:02.677) test_0001_advertise the overrides Key PASS (0:00:02.677) test_0001_advertise if it is password or key PASS (0:00:02.677) test_0002_cat generate the mock fingerprint PASS (0:00:02.710) test_0003_can generate the mock PEM key Metric PASS (0:00:02.711) test_0001_cat be extended by add_property TestAcceptApp PASS (0:00:02.712) test_0002_should return HTML when Accept header is set by Firefox PASS (0:00:02.713) test_0003_should return XML when Accept header requests XML media type PASS (0:00:02.714) test_0006_should return error when unknown Accept header is set PASS (0:00:02.714) test_0005_should return default media type when no Accept header is set PASS (0:00:02.715) test_0004_should return JSON when Accept header requests JSON media type PASS (0:00:02.716) test_0001_should return HTML when Accept header requests HTML media type TestArray PASS (0:00:02.716) test_expand_opts! PASS (0:00:02.716) test_extract_opts! TestDateApp PASS (0:00:02.717) test_0001_add the Date header to all responses TestDriverApp PASS (0:00:02.719) test_0002_should set the provider correctly when using X-Deltacloud-Provider header PASS (0:00:02.720) test_0001_should set the driver correctly when using X-Deltacloud-Driver request header PASS (0:00:02.720) test_0003_should set both provider and driver TestEtagApp PASS (0:00:02.722) test_0001_add the ETag header to all responses TestHash PASS (0:00:02.722) test_gsub_keys PASS (0:00:02.722) test_symbolize_keys TestInteger PASS (0:00:02.722) test_ordinalize TestMatrixApp PASS (0:00:02.723) test_0001_should set matrix param for entrypoint PASS (0:00:02.724) test_0007_should handle matrix params with wrong syntax PASS (0:00:02.725) test_0003_should set matrix param for first part of URI PASS (0:00:02.725) test_0002_should set multiple matrix params for entrypoint PASS (0:00:02.726) test_0004_should set multiple matrix params for first part of URI PASS (0:00:02.727) test_0006_should set matrix params for multiple parts of URI PASS (0:00:02.728) test_0005_should set matrix params for the last part of URI TestString PASS (0:00:02.728) test_truncate PASS (0:00:02.728) test_camelize PASS (0:00:02.728) test_pluralize PASS (0:00:02.728) test_underscore PASS (0:00:02.728) test_titlecase PASS (0:00:02.728) test_blank? PASS (0:00:02.728) test_upcase_first PASS (0:00:02.728) test_uncapitalize PASS (0:00:02.728) test_it_has_each PASS (0:00:02.728) test_singularize deltacloudd PASS (0:00:03.649) test_0004_lists the available drivers Starting Deltacloud API :: mock :: http://localhost:3011/api => Ctrl-C to shutdown server [2013-03-07 14:01:25] INFO WEBrick 1.3.1 [2013-03-07 14:01:25] INFO ruby 1.9.3 (2013-02-06) [x86_64-linux] [2013-03-07 14:01:25] INFO WEBrick::HTTPServer#start: pid=23673 port=3011 ::1 - - [07/Mar/2013 14:01:26] "GET /api HTTP/1.1" 200 1368 0.0110 ::1 - - [07/Mar/2013 14:01:26] "GET /api HTTP/1.1" 200 1368 0.1070 Sending KILL to 23673 Sending KILL to 23673 PASS (0:00:08.866) test_0003_starts the deltacloud server gracefully when using webrick Starting Deltacloud API :: mock :: http://localhost:3011/api >> Thin web server (v1.5.0 codename Knife) >> Debugging ON >> Maximum connections set to 1024 >> Listening on localhost:3011, CTRL+C to stop 127.0.0.1 - - [07/Mar/2013 14:01:30] "GET /api HTTP/1.1" 200 1368 0.0113 Sending KILL to 23693 Sending KILL to 23693 PASS (0:00:13.121) test_0001_starts the deltacloud server gracefully Starting Deltacloud API :: mock :: http://localhost:3011/api >> Thin web server (v1.5.0 codename Knife) >> Debugging ON >> Maximum connections set to 1024 >> Listening on localhost:3011, CTRL+C to stop 127.0.0.1 - - [07/Mar/2013 14:01:36] "GET /api HTTP/1.1" 200 1368 0.0119 127.0.0.1 - - [07/Mar/2013 14:01:36] "GET /cimi/cloudEntryPoint HTTP/1.1" 200 2011 0.0078 Sending KILL to 23722 Sending KILL to 23722 PASS (0:00:18.491) test_0002_starts the deltacloud server gracefully with multiple frontends Finished in 18.491898 seconds. 182 tests, 182 passed, 0 failures, 0 errors, 0 skips, 717 assertions [ rake test:ec2 ] Loaded Suite Started at 2013-03-07 14:01:39 -0500 w/ seed 45529. Deltacloud::EC2::API PASS (0:00:00.071) test_0002_must do a redirection when no Action parameter PASS (0:00:00.072) test_0003_must set the Connection header to close PASS (0:00:00.073) test_0004_must advertise current API version in response headers PASS (0:00:00.073) test_0001_has the config set property PASS (0:00:00.271) test_0006_must return EC2 exception when authentication failed PASS (0:00:00.275) test_0005_must return EC2 exception when unknown action Deltacloud::EC2::Deltacloud::EC2::ActionHandler PASS (0:00:00.275) test_0001_provides access to mappings Deltacloud::EC2::Deltacloud::EC2::QueryParser PASS (0:00:00.276) test_0003_must provide the Deltacloud method for EC2 action PASS (0:00:00.276) test_0002_must provide verification for actions PASS (0:00:00.276) test_0001_parse request parameters and assign the action Deltacloud::EC2::Deltacloud::EC2::ResultParser PASS (0:00:00.276) test_0001_must perform the EC2 action on Deltacloud driver PASS (0:00:00.280) test_0002_must parse the result of EC2 action to EC2 formatted XML Finished in 0.280343 seconds. 12 tests, 12 passed, 0 failures, 0 errors, 0 skips, 50 assertions [ rake test:cimi ] Loaded Suite Started at 2013-03-07 14:01:42 -0500 w/ seed 44977. CIMI PASS (0:00:00.000) test_0001_generate url helpers for CIMI model PASS (0:00:00.000) test_0002_generate proper url for ResourceMetadata CIMI::Collections::CloudEntryPoint PASS (0:00:00.001) test_0001_has index operation PASS (0:00:00.331) test_0003_advertise CIMI collections in JSON format PASS (0:00:00.337) test_0002_advertise CIMI collections in XML format PASS (0:00:00.379) test_0004_allow to force authentication using force_auth parameter in URI PASS (0:00:00.616) test_0005_advertise only supported CIMI collections by driver CIMI::Collections::MachineImages PASS (0:00:00.626) test_0004_should allow to retrieve the single image PASS (0:00:00.649) test_0003_returns list of images in various formats with index operation PASS (0:00:00.650) test_0001_has index operation PASS (0:00:00.650) test_0002_has show operation CIMI::Collections::MachineImages::filtering with $select PASS (0:00:00.661) test_0001_should filter collection members PASS (0:00:00.675) test_0002_should filter by multiple attributes CIMI::Collections::MachineTemplates PASS (0:00:00.689) test_0004_should return validation error when missing required attribute in XML PASS (0:00:00.695) test_0001_should return bad request creating template with scrambled JSON PASS (0:00:00.736) test_0003_should return bad request creating template with scrambled XML PASS (0:00:00.744) test_0002_should return validation error when missing required attribute in JSON CIMI::Collections::Machines PASS (0:00:00.744) test_0001_has index operation PASS (0:00:00.754) test_0005_should not return non-existing machine PASS (0:00:00.819) test_0003_returns list of machines in various formats with index operation PASS (0:00:00.831) test_0004_should allow to retrieve the single machine PASS (0:00:00.831) test_0002_has show operation CIMI::Collections::Machines::$expand PASS (0:00:00.843) test_0001_should not expand collections when missing PASS (0:00:00.856) test_0002_should expand named collections PASS (0:00:00.872) test_0004_should expand all collections with * PASS (0:00:00.890) test_0003_should expand multiple named collections CIMI::Collections::Machines::$filter PASS (0:00:00.908) test_0001_should filter collection by name attribute PASS (0:00:00.927) test_0002_should filter collection by reverse name attribute CIMI::Collections::Machines::$select PASS (0:00:00.947) test_0001_should return only selected attribute PASS (0:00:00.998) test_0003_should support select on non-expanded subcollection PASS (0:00:01.018) test_0002_should support multiple selected attributes PASS (0:00:01.039) test_0004_should support select on expanded subcollection PASS (0:00:01.060) test_0005_should support select on expanded subcollection and regular attribute CIMI::Collections::SystemTemplates PASS (0:00:01.071) test_0005_should not return non-existing system_template PASS (0:00:01.072) test_0001_has index operation PASS (0:00:01.072) test_0002_has show operation PASS (0:00:01.084) test_0004_should allow to retrieve the single system template PASS (0:00:01.140) test_0003_returns list of system templates in various formats with index operation CIMI::Collections::Systems PASS (0:00:01.141) test_0001_has index operation PASS (0:00:01.151) test_0006_should not return non-existing system PASS (0:00:01.163) test_0004_should allow to retrieve the single system PASS (0:00:01.163) test_0002_has show operation PASS (0:00:01.192) test_0003_returns list of systems in various formats with index operation PASS (0:00:01.209) test_0005_should have legal status Collection class PASS (0:00:01.214) test_0002_deserializes from JSON PASS (0:00:01.223) test_0001_deserializes from XML Collection class::JSON serialization PASS (0:00:01.226) test_0001_empty collection only has href PASS (0:00:01.228) test_0002_contains count of models Collection class::XML serialization PASS (0:00:01.232) test_0001_empty collection only has href PASS (0:00:01.236) test_0002_contains count of models Credential model PASS (0:00:01.342) test_0001_can be constructed from XML and JSON Deltacloud::Database PASS (0:00:01.342) test_0001_has valid database connection PASS (0:00:01.344) test_0003_should allow creation of providers PASS (0:00:01.344) test_0002_creates the database schema PASS (0:00:01.347) test_0005_allow creation of simple entity PASS (0:00:01.348) test_0007_validate presence of required attributes for extended entities PASS (0:00:01.351) test_0006_allow creation of extended entities PASS (0:00:01.351) test_0004_should not allow creation of provider with nil driver Deltacloud::Database::Entity PASS (0:00:01.356) test_0001_newly created entities have valid ent_properties Deltacloud::Helpers::Database PASS (0:00:01.357) test_0001_report if given entity is provided by database PASS (0:00:01.361) test_0006_must delete attributes for entity for given model PASS (0:00:01.367) test_0004_must return entity for given model PASS (0:00:01.372) test_0005_must load attributes for entity for given model PASS (0:00:01.372) test_0003_create provider when it does not exists PASS (0:00:01.373) test_0002_reports the current provider PASS (0:00:01.377) test_0007_must store attributes for a given CIMI::Model Machine model PASS (0:00:01.462) test_0001_can be constructed from XML and JSON PASS (0:00:01.471) test_0002_should parse minimal XML machine PASS (0:00:01.476) test_0003_should parse minimal JSON machine MachineConfiguration model PASS (0:00:01.581) test_0001_can be constructed from XML and JSON MachineCreate model PASS (0:00:01.589) test_0001_can be constructed from XML with template by value PASS (0:00:01.591) test_0002_can be built in code MachineImage model PASS (0:00:01.669) test_0001_can be constructed from XML and JSON MachineTemplate model PASS (0:00:01.756) test_0001_can be constructed from XML and JSON MachineTemplate model::can have an embedded machineConfig PASS (0:00:01.761) test_0002_in JSON PASS (0:00:01.811) test_0001_in XML Resource::required attributes PASS (0:00:01.811) test_0001_should require a value PASS (0:00:01.811) test_0002_should validate numbers Schema PASS (0:00:01.812) test_0001_does not allow adding attributes after being used for conversion Schema::arrays PASS (0:00:01.812) test_0003_should convert arrays from JSON PASS (0:00:01.812) test_0001_should convert missing array from JSON PASS (0:00:01.813) test_0002_should convert empty array from JSON PASS (0:00:01.818) test_0004_should convert arrays from XML Schema::arrays::of references PASS (0:00:01.819) test_0001_should convert from JSON PASS (0:00:01.826) test_0002_should convert from XML Schema::hrefs PASS (0:00:01.832) test_0001_should extract the href attribute from XML PASS (0:00:01.832) test_0002_should extract the href attribute from JSON Schema::scalars PASS (0:00:01.833) test_0003_should allow aliasing the XML and JSON name PASS (0:00:01.833) test_0001_should camel case attribute names for JSON PASS (0:00:01.868) test_0002_should camel case attribute names for XML Schema::structs::JSON conversion PASS (0:00:01.868) test_0001_should convert empty hash PASS (0:00:01.869) test_0002_should convert empty body PASS (0:00:01.869) test_0003_should convert values Schema::structs::XML conversion PASS (0:00:01.874) test_0004_should handle missing attributes PASS (0:00:01.875) test_0002_should convert empty body PASS (0:00:01.875) test_0001_should convert empty hash PASS (0:00:01.880) test_0003_should convert values Volume Configuration model PASS (0:00:01.956) test_0001_can be constructed from XML and JSON Volume Image model PASS (0:00:02.058) test_0001_can be constructed from XML and JSON Volume Template model PASS (0:00:02.149) test_0001_can be constructed from XML and JSON Volume model PASS (0:00:02.226) test_0001_can be constructed from XML and JSON Finished in 2.226450 seconds. 101 tests, 101 passed, 0 failures, 0 errors, 0 skips, 494 assertions [ rake drivers:mock ] Loaded Suite Started at 2013-03-07 14:01:46 -0500 w/ seed 50850. MockDriver Buckets PASS (0:00:00.164) test_0001_must throw error when wrong credentials for buckets PASS (0:00:00.165) test_0002_can create a new bucket MockDriver Images PASS (0:00:00.167) test_0007_must report image creation time PASS (0:00:00.169) test_0006_must allow to destroy created image PASS (0:00:00.187) test_0002_must return list of images PASS (0:00:00.190) test_0004_must allow to retrieve single image PASS (0:00:00.196) test_0005_must allow to create a new image if instance supported PASS (0:00:00.202) test_0003_must allow to filter images PASS (0:00:00.202) test_0001_must throw error when wrong credentials MockDriver Instances PASS (0:00:00.206) test_0002_must return list of instances PASS (0:00:00.206) test_0001_must throw error when wrong credentials PASS (0:00:00.210) test_0008_must allow to stop instance in running state PASS (0:00:00.212) test_0004_must allow to retrieve single instance PASS (0:00:00.222) test_0003_must allow to filter instances PASS (0:00:00.226) test_0009_must allow to start instance in stopped state PASS (0:00:00.233) test_0005_must allow to create a new instance if instance supported PASS (0:00:00.234) test_0007_must allow to destroy created instance PASS (0:00:00.234) test_0006_must respond with proper error when using unknown hardware profile PASS (0:00:00.235) test_0011_must support run_on_instance PASS (0:00:00.241) test_0010_must allow to reboot instance in running state MockDriver Keys PASS (0:00:00.243) test_0003_must allow to filter keys PASS (0:00:00.244) test_0004_must allow to retrieve single key PASS (0:00:00.244) test_0001_must throw error when wrong credentials PASS (0:00:00.266) test_0002_must return list of keys PASS (0:00:00.270) test_0005_must allow to create a new key MockDriver Realms PASS (0:00:00.271) test_0001_must throw error when wrong credentials PASS (0:00:00.271) test_0003_must allow to filter realms PASS (0:00:00.271) test_0002_must return list of realms PASS (0:00:00.272) test_0004_must allow to retrieve single realm MockDriver StorageSnapshots PASS (0:00:00.275) test_0003_must allow to filter storage_snapshots PASS (0:00:00.275) test_0001_must throw error when wrong credentials PASS (0:00:00.276) test_0002_must return list of storage_snapshots PASS (0:00:00.279) test_0004_must allow to retrieve single storage_snapshot MockDriver StorageVolumes PASS (0:00:00.281) test_0005_must allow to create and destroy the storage volume PASS (0:00:00.283) test_0002_must return list of storage_volumes PASS (0:00:00.283) test_0001_must throw error when wrong credentials PASS (0:00:00.287) test_0004_must allow to retrieve single storage_volume PASS (0:00:00.293) test_0003_must allow to filter storage_volumes PASS (0:00:00.303) test_0006_must allow to attach and detach storage volume to instance Finished in 0.303270 seconds. 39 tests, 39 passed, 0 failures, 0 errors, 0 skips, 161 assertions [ rake drivers:ec2 ] Loaded Suite Started at 2013-03-07 14:01:48 -0500 w/ seed 57422. Ec2Driver Buckets PASS (0:00:00.008) test_0001_must throw error when wrong credentials for buckets PASS (0:00:00.064) test_0002_must handle us-east buckets from other regions Ec2Driver Images PASS (0:00:00.085) test_0001_must throw error when wrong credentials PASS (0:00:00.257) test_0003_must allow to filter images PASS (0:00:01.197) test_0002_must return list of images PASS (0:00:01.323) test_0004_must allow to retrieve single image PASS (0:00:01.359) test_0005_must advertise the image storage_type Ec2Driver Instances PASS (0:00:01.562) test_0008_must allow to reboot instance in running state PASS (0:00:01.659) test_0004_must allow to retrieve single instance PASS (0:00:01.712) test_0002_must return list of instances PASS (0:00:01.967) test_0006_must allow to create multiple instances using the "instance_count" parameter /exports/bos/jvlcek/GIT/DELTACLOUD_OVIRT/deltacloud/server/tests/drivers/ec2/instance_test.rb:94: warning: class variable access from toplevel /exports/bos/jvlcek/GIT/DELTACLOUD_OVIRT/deltacloud/server/tests/drivers/ec2/instance_test.rb:94: warning: class variable access from toplevel PASS (0:00:02.018) test_0007_must allow creating instance in a VPC subnet PASS (0:00:02.268) test_0003_must allow to filter instances PASS (0:00:02.288) test_0001_must throw error when wrong credentials PASS (0:00:02.861) test_0005_must allow to create a new instance if instance supported Ec2Driver Keys PASS (0:00:02.887) test_0002_must return list of keys PASS (0:00:02.937) test_0001_must throw error when wrong credentials PASS (0:00:02.990) test_0004_must allow to retrieve single key PASS (0:00:03.076) test_0003_must allow to filter keys PASS (0:00:03.169) test_0005_must allow to create a new key Ec2Driver Realms PASS (0:00:03.231) test_0003_must allow to filter realms /exports/bos/jvlcek/GIT/DELTACLOUD_OVIRT/deltacloud/server/tests/drivers/ec2/realms_test.rb:44: warning: class variable access from toplevel /exports/bos/jvlcek/GIT/DELTACLOUD_OVIRT/deltacloud/server/tests/drivers/ec2/realms_test.rb:44: warning: class variable access from toplevel PASS (0:00:03.290) test_0005_must list VPC subnets as realms PASS (0:00:03.340) test_0004_must allow to retrieve single realm PASS (0:00:03.412) test_0002_must return list of realms PASS (0:00:03.429) test_0001_must throw error when wrong credentials Ec2Driver StorageSnapshots PASS (0:00:03.569) test_0004_must allow to create and destroy the storage snapshot PASS (0:00:06.556) test_0002_must return list of storage snapshots PASS (0:00:06.583) test_0001_must throw error when wrong credentials PASS (0:00:06.649) test_0003_must allow to filter storage snapshots Finished in 6.650195 seconds. 29 tests, 29 passed, 0 failures, 0 errors, 0 skips, 182 assertions [ rake drivers:rhevm ] Loaded Suite Started at 2013-03-07 14:01:56 -0500 w/ seed 897. RHEV-M provider test PASS (0:00:00.146) test_0001_must throw error when using wrong provider PASS (0:00:00.170) test_0002_must support listing of available providers PASS (0:00:00.209) test_0003_must switch realms when switching between different clusters RhevmDriver Images PASS (0:00:00.251) test_0005_must throw proper exception when destroying used image PASS (0:00:00.278) test_0002_must return list of images PASS (0:00:00.344) test_0003_must allow to filter images PASS (0:00:00.367) test_0004_must allow to retrieve single image PASS (0:00:10.395) test_0006_must support destroying images PASS (0:00:10.416) test_0001_must throw error when wrong credentials RhevmDriver Instances output error : string is not in UTF-8 SKIP (0:00:10.742) test_0006_must allow to create a new instance and make it running Skip this test due to RHEVm bug: https://bugzilla.redhat.com/show_bug.cgi?id=910741 @ tests/drivers/rhevm/instance_test.rb:84:in `block (2 levels) in <top (required)>' /usr/bin/testrb:10:in `<main>' PASS (0:00:11.088) test_0002_must return list of instances PASS (0:00:11.101) test_0001_must throw error when wrong credentials PASS (0:00:11.275) test_0003_must allow to filter instances output error : string is not in UTF-8 PASS (0:00:11.823) test_0005_must allow to create a new instance and destroy it PASS (0:00:11.956) test_0004_must allow to retrieve single instance RhevmDriver Realms PASS (0:00:11.962) test_0001_must throw error when wrong credentials PASS (0:00:12.018) test_0002_must return list of realms PASS (0:00:12.077) test_0003_must allow to filter realms PASS (0:00:12.145) test_0004_must allow to retrieve single realm Finished in 12.145209 seconds. 19 tests, 19 passed, 0 failures, 0 errors, 1 skips, 92 assertions [ rake drivers:google ] Loaded Suite Started at 2013-03-07 14:02:10 -0500 w/ seed 39225. Deltacloud API PASS (0:00:00.681) test_0001_can create a new bucket PASS (0:00:00.704) test_0002_can create a new blob with HTTP POST PASS (0:00:00.722) test_0003_can retrieve named bucket details PASS (0:00:00.741) test_0004_can retrieve details of a named blob PASS (0:00:00.753) test_0005_can retrieve named blob metadata PASS (0:00:00.797) test_0006_can update blob metadata PASS (0:00:00.810) test_0007_can delete blob PASS (0:00:00.819) test_0008_can delete bucket Finished in 0.820156 seconds. 8 tests, 8 passed, 0 failures, 0 errors, 0 skips, 32 assertions [ rake drivers:gogrid ] /exports/bos/jvlcek/GIT/DELTACLOUD_OVIRT/deltacloud/server/tests/drivers/gogrid/instances_test.rb:22: warning: class variable access from toplevel /exports/bos/jvlcek/GIT/DELTACLOUD_OVIRT/deltacloud/server/tests/drivers/gogrid/instances_test.rb:24: warning: class variable access from toplevel /exports/bos/jvlcek/GIT/DELTACLOUD_OVIRT/deltacloud/server/tests/drivers/gogrid/instances_test.rb:24: warning: class variable access from toplevel Loaded Suite Started at 2013-03-07 14:02:13 -0500 w/ seed 47186. GoGrid Hardware Profiles PASS (0:00:00.028) test_0001_must throw error when wrong credentials PASS (0:00:00.196) test_0003_must allow to filter hardware profiles PASS (0:00:00.282) test_0002_must return list of hardware profiles PASS (0:00:00.333) test_0004_must allow to retrieve single hardware_profile GoGridDriver Images PASS (0:00:00.602) test_0003_must allow to filter images PASS (0:00:00.683) test_0004_must return an empty array for nonexistent image PASS (0:00:00.705) test_0001_must throw error when wrong credentials PASS (0:00:01.085) test_0002_must return list of images PASS (0:00:01.324) test_0005_must allow to retrieve single image PASS (0:00:01.404) test_0006_must return nil when retrieving a single nonexistent image GoGridDriver Instances /exports/bos/jvlcek/GIT/DELTACLOUD_OVIRT/deltacloud/server/tests/drivers/gogrid/instances_test.rb:55: warning: class variable access from toplevel PASS (0:00:01.473) test_0004_must allow to retrieve single instance PASS (0:00:01.519) test_0002_must return list of instances /exports/bos/jvlcek/GIT/DELTACLOUD_OVIRT/deltacloud/server/tests/drivers/gogrid/instances_test.rb:55: warning: class variable access from toplevel PASS (0:00:01.625) test_0003_must allow to filter instances PASS (0:00:01.643) test_0001_must throw error when wrong credentials GoGridDriver Realms PASS (0:00:01.743) test_0004_must allow to retrieve single realm PASS (0:00:01.760) test_0001_must throw error when wrong credentials PASS (0:00:01.787) test_0002_must return list of realms PASS (0:00:01.895) test_0003_must allow to filter realms Finished in 1.896100 seconds. 18 tests, 18 passed, 0 failures, 0 errors, 0 skips, 86 assertions [ rake drivers:openstack ] Loaded Suite Started at 2013-03-07 14:02:17 -0500 w/ seed 17557. OpenStackDriver HardwareProfiles PASS (0:00:00.041) test_0001_must throw error when wrong credentials PASS (0:00:00.059) test_0002_must return list of hardware_profiles PASS (0:00:00.085) test_0003_must allow to filter hardware_profiles PASS (0:00:00.102) test_0004_must allow to retrieve single hardware_profile OpenStackDriver Images PASS (0:00:00.106) test_0001_must throw error when wrong credentials PASS (0:00:00.140) test_0002_must return list of images PASS (0:00:00.222) test_0003_must allow to filter images PASS (0:00:00.255) test_0004_must allow to retrieve single image OpenStackDriver Instances PASS (0:00:00.350) test_0005_must allow to create and destroy an instance PASS (0:00:00.361) test_0001_must throw error when GET instances with wrong credentials PASS (0:00:00.438) test_0002_must return list of instances PASS (0:00:00.472) test_0004_must allow to retrieve single instance PASS (0:00:00.496) test_0003_must allow to filter instances OpenStackDriver Keys PASS (0:00:00.535) test_0005_must allow to create and destroy key PASS (0:00:00.549) test_0003_must allow to filter keys PASS (0:00:00.553) test_0001_must throw error when wrong credentials PASS (0:00:00.569) test_0004_must allow to retrieve single key PASS (0:00:00.584) test_0002_must return list of keys OpenStackDriver Realms PASS (0:00:00.591) test_0001_must throw error when wrong credentials PASS (0:00:00.634) test_0003_must allow to retrieve single realm PASS (0:00:00.682) test_0002_must return list of realms Finished in 0.682773 seconds. 21 tests, 21 passed, 0 failures, 0 errors, 0 skips, 105 assertions [ rake drivers:fgcp ] Loaded Suite Started at 2013-03-07 14:02:19 -0500 w/ seed 21339. FgcpDriver HardwareProfiles PASS (0:00:00.351) test_0004_must allow to retrieve single hardware_profile PASS (0:00:00.394) test_0002_must return list of hardware_profiles PASS (0:00:00.395) test_0001_must throw error when wrong credentials PASS (0:00:00.423) test_0006_must include at least four profiles PASS (0:00:00.449) test_0005_must include correct attributes PASS (0:00:00.488) test_0003_must allow to filter hardware_profiles FgcpDriver Images PASS (0:00:00.489) test_0001_must throw error when wrong credentials PASS (0:00:00.547) test_0002_must return list of images PASS (0:00:00.660) test_0003_must allow to filter images PASS (0:00:00.794) test_0004_must allow to retrieve single image FgcpDriver Providers PASS (0:00:00.795) test_0001_must support listing of available providers FgcpDriver Realms PASS (0:00:00.795) test_0001_must throw error when wrong credentials PASS (0:00:00.832) test_0002_must return list of realms PASS (0:00:00.867) test_0004_must allow to retrieve single realm PASS (0:00:00.892) test_0003_must allow to filter realms FgcpDriver StorageVolumes PASS (0:00:00.969) test_0003_must allow to filter storage_volumes PASS (0:00:00.969) test_0001_must throw error when wrong credentials PASS (0:00:01.018) test_0002_must return list of storage_volumes PASS (0:00:01.095) test_0004_must allow to retrieve single storage_volume PASS (0:00:01.197) test_0005_must allow to create the storage volume Finished in 1.197371 seconds. 20 tests, 20 passed, 0 failures, 0 errors, 0 skips, 146 assertions