Initial API tests rewrite - these are intended as 'black box' tests,
i.e. to be pointed at a deltacloud API server running somewhere and
interacting only with the API and not with deltacloud internals 
(as described in more detail http://piratepad.net/deltacloud-testing
). Uses RestClient to do the talking.

Things to notice in Patch 1:

* Edit /deltacloud/config.yaml with location of deltacloud server to
be tested and add credentials for the driver you expect to be running
there

* invoke tests with rake test:deltacloud (idea is that a rake test:ec2
and rake test:cimi rake tasks will be added in due course)

* test_setup.rb talks to the URL you configure in config.yaml and
'discovers' the current driver, it's collections (adding the test_files
accordingly, so if only 'buckets' is supported then only buckets_test.rb
will run in the TestTask) and features (so for example if buckets 
collection doesn't have the 'bucket_location' feature, then that specific
test will be skipped).

marios

Reply via email to